From 170bfc6c89912b7f8f9de641125ba8c9a997d9fd Mon Sep 17 00:00:00 2001 From: adriancampo Date: Wed, 20 Dec 2023 19:26:25 +0100 Subject: [PATCH 01/45] Refs #20165: Created basic communication Signed-off-by: adriancampo rebased Signed-off-by: adriancampo --- .../core/policy/QosPoliciesSerializer.hpp | 5 +- src/cpp/rtps/builtin/data/WriterProxyData.cpp | 1 + test/CMakeLists.txt | 1 + test/dds/xtypes/CMakeLists.txt | 100 +++++++ test/dds/xtypes/TypeLookupPublisher.cpp | 180 +++++++++++++ test/dds/xtypes/TypeLookupPublisher.h | 82 ++++++ test/dds/xtypes/TypeLookupSubscriber.cpp | 208 +++++++++++++++ test/dds/xtypes/TypeLookupSubscriber.h | 87 ++++++ test/dds/xtypes/TypeLookup_main.cpp | 85 ++++++ test/dds/xtypes/idl/XtypesTestsTypes.hpp | 227 ++++++++++++++++ test/dds/xtypes/idl/XtypesTestsTypes.idl | 5 + .../dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp | 46 ++++ .../dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp | 126 +++++++++ .../idl/XtypesTestsTypesPubSubTypes.cxx | 229 ++++++++++++++++ .../xtypes/idl/XtypesTestsTypesPubSubTypes.h | 133 ++++++++++ .../idl/XtypesTestsTypesTypeObjectSupport.cxx | 248 ++++++++++++++++++ .../idl/XtypesTestsTypesTypeObjectSupport.hpp | 54 ++++ test/dds/xtypes/simple_communication.json | 11 + test/dds/xtypes/test_build.py | 161 ++++++++++++ 19 files changed, 1988 insertions(+), 1 deletion(-) create mode 100644 test/dds/xtypes/CMakeLists.txt create mode 100644 test/dds/xtypes/TypeLookupPublisher.cpp create mode 100644 test/dds/xtypes/TypeLookupPublisher.h create mode 100644 test/dds/xtypes/TypeLookupSubscriber.cpp create mode 100644 test/dds/xtypes/TypeLookupSubscriber.h create mode 100644 test/dds/xtypes/TypeLookup_main.cpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypes.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypes.idl create mode 100644 test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h create mode 100644 test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp create mode 100644 test/dds/xtypes/simple_communication.json create mode 100644 test/dds/xtypes/test_build.py diff --git a/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp b/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp index 736a0ab7e8c..2cfaec54e3f 100644 --- a/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp +++ b/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp @@ -1088,8 +1088,11 @@ inline bool QosPoliciesSerializer::read_conten deser >> qos_policy.type_information; qos_policy.assigned(true); } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) + //catch (eprosima::fastcdr::exception::Exception& /*exception*/) + catch (eprosima::fastcdr::exception::Exception& exception) { + //TODO(adelcampo) + std::cout << "read_content_from_cdr_message not assigned: " << exception.what() << std::endl; qos_policy.assigned(false); } diff --git a/src/cpp/rtps/builtin/data/WriterProxyData.cpp b/src/cpp/rtps/builtin/data/WriterProxyData.cpp index 857668b00a9..4e96fd7be72 100644 --- a/src/cpp/rtps/builtin/data/WriterProxyData.cpp +++ b/src/cpp/rtps/builtin/data/WriterProxyData.cpp @@ -576,6 +576,7 @@ bool WriterProxyData::writeToCDRMessage( { return false; } + std::cout << "TypeInformationParameter>::add_to_cdr_message" << std::endl; } if (m_properties.size() > 0) { diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ba0a7b479e0..427936f315a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -61,6 +61,7 @@ if(EPROSIMA_BUILD_TESTS) add_subdirectory(dds/communication) add_subdirectory(dds/communication/security) add_subdirectory(dds/discovery) + add_subdirectory(dds/xtypes) if(UNIX AND NOT APPLE AND STRICT_REALTIME) add_subdirectory(realtime) diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt new file mode 100644 index 00000000000..18d99d2acc8 --- /dev/null +++ b/test/dds/xtypes/CMakeLists.txt @@ -0,0 +1,100 @@ +# Copyright 2019 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. + +find_package(PythonInterp 3) + +add_definitions( + -DBOOST_ASIO_STANDALONE + -DASIO_STANDALONE + ) + +include_directories(${Asio_INCLUDE_DIR}) + +############################################################################### +# Binaries +############################################################################### + +# Standar tests +set(COMMON_SOURCE + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/RTPSDomain.cpp +) + +set(DDS_XTYPES_SOURCE ${COMMON_SOURCE} + TypeLookup_main.cpp + TypeLookupPublisher.cpp + TypeLookupSubscriber.cpp + ) + + +add_executable(DDSXtypesCommunication ${DDS_XTYPES_SOURCE}) +target_compile_definitions(DDSXtypesCommunication PRIVATE + $<$>,$>:__DEBUG> + $<$:__INTERNALDEBUG> # Internal debug activated. + ) +target_include_directories(DDSXtypesCommunication PRIVATE + ${PROJECT_SOURCE_DIR}/test/dds/xtypes +) +target_link_libraries(DDSXtypesCommunication + fastcdr + fastdds + foonathan_memory + ${CMAKE_DL_LIBS} + ) + +############################################################################### +# Necessary files +############################################################################### +# Standard tests +list(APPEND TEST_DEFINITIONS + simple_communication + ) + +# Python file +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_build.py + ${CMAKE_CURRENT_BINARY_DIR}/test_build.py COPYONLY) + +# JSON files +foreach(TEST_FILE IN LISTS TEST_DEFINITIONS) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${TEST_FILE}.json + ${CMAKE_CURRENT_BINARY_DIR}/${TEST_FILE}.json COPYONLY) +endforeach() + +############################################################################### +# Tests specification +############################################################################### +if(PYTHONINTERP_FOUND) + # Standard types test + set(TEST_BUILDER ${BINARY_TEST_DIR}test_build.py) + + foreach(TEST_DEFINITION IN LISTS TEST_DEFINITIONS) + set(TEST_NAME DDSXtypesCommunication_${TEST_DEFINITION}) + add_test( + NAME ${TEST_NAME} + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/${TEST_BUILDER} + ${TEST_DEFINITION}.json + ) + + set_property(TEST ${TEST_NAME} PROPERTY ENVIRONMENT + "DDS_SIMPLE_COMMUNICATION_BIN=$") + + if(WIN32) + string(REPLACE ";" "\\;" WIN_PATH "$ENV{PATH}") + set_property(TEST ${TEST_NAME} APPEND PROPERTY ENVIRONMENT + "PATH=$\\;$\\;${WIN_PATH}") + endif() + endforeach() +endif() diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupPublisher.cpp new file mode 100644 index 00000000000..f939405dddc --- /dev/null +++ b/test/dds/xtypes/TypeLookupPublisher.cpp @@ -0,0 +1,180 @@ +// Copyright 2021 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 TypeLookupPublisher.cpp + */ + +#include "TypeLookupPublisher.h" + +#include +#include +#include +#include + +#include + +#include +#include +#include +#include +#include + +using namespace eprosima::fastdds::dds; +using namespace eprosima::fastrtps::rtps; + +static int DOMAIN_ID_ = 10; + +TypeLookupPublisher::~TypeLookupPublisher() +{ + if (nullptr != writer_) + { + publisher_->delete_datawriter(writer_); + } + + if (nullptr != publisher_) + { + participant_->delete_publisher(publisher_); + } + + if (nullptr != topic_) + { + participant_->delete_topic(topic_); + } + + if (nullptr != participant_) + { + DomainParticipantFactory::get_instance()->delete_participant(participant_); + } +} + +bool TypeLookupPublisher::init() +{ + std::cout << "TypeLookupPublisher::init" << std::endl; + + participant_ = DomainParticipantFactory::get_instance() + ->create_participant(DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this); + + if (participant_ == nullptr) + { + std::cout << "ERROR create_participant" << std::endl; + return false; + } + + if (!create_type()) + { + std::cout << "ERROR create_type" << std::endl; + return false; + } + + return true; +} + +bool TypeLookupPublisher::create_type() +{ + + auto obj = BasicStruct(); + type_.reset(new BasicStructPubSubType()); + type_.register_type(participant_); + + + //CREATE THE PUBLISHER + publisher_ = participant_->create_publisher(PUBLISHER_QOS_DEFAULT, this); + if (publisher_ == nullptr) + { + std::cout << "ERROR create_publisher" << std::endl; + return false; + } + + //CREATE THE TOPIC + std::ostringstream topic_name; + topic_name << "BasicStructPubSubType" << "_" << asio::ip::host_name() << "_" << DOMAIN_ID_; + topic_ = participant_->create_topic(topic_name.str(), type_.get_type_name(), TOPIC_QOS_DEFAULT); + if (topic_ == nullptr) + { + std::cout << "ERROR create_topic" << std::endl; + return false; + } + + //CREATE THE DATAWRITER + DataWriterQos wqos = publisher_->get_default_datawriter_qos(); + writer_ = publisher_->create_datawriter(topic_, wqos, this); + if (writer_ == nullptr) + { + std::cout << "ERROR create_datawriter" << std::endl; + return false; + } + + return true; +} + +void TypeLookupPublisher::wait_discovery( + uint32_t how_many) +{ + std::unique_lock lock(mutex_); + cv_.wait(lock, [&] + { + return matched_ >= how_many; + }); +} + +void TypeLookupPublisher::run( + uint32_t samples) +{ + uint32_t current_sample = 0; + uint16_t index = 0; + void* sample = nullptr; + + while (samples > current_sample) + { + sample = type_.create_data(); + + BasicStruct* data = static_cast(sample); + data->index(index); + data->message("Message" + std::to_string(index)); + + std::cout << "Publisher writting index: " << index << std::endl; + writer_->write(sample); + + ++current_sample; + ++index; + + type_.delete_data(sample); + + std::this_thread::sleep_for(std::chrono::milliseconds(250)); + } +} + +void TypeLookupPublisher::on_publication_matched( + DataWriter* /*publisher*/, + const PublicationMatchedStatus& info) +{ + std::unique_lock lock(mutex_); + if (info.current_count_change == 1) + { + matched_ = info.total_count; + std::cout << "(TypeLookupPublisher) matched." << std::endl; + } + else if (info.current_count_change == -1) + { + matched_ = info.total_count; + std::cout << "(TypeLookupPublisher) unmatched." << std::endl; + } + else + { + std::cout << info.current_count_change + << " is not a valid value for PublicationMatchedStatus current count change" << std::endl; + } + cv_.notify_all(); +} diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupPublisher.h new file mode 100644 index 00000000000..d952423f3b3 --- /dev/null +++ b/test/dds/xtypes/TypeLookupPublisher.h @@ -0,0 +1,82 @@ +// 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 TypeLookupPublisher.h + * + */ + +#ifndef _TEST_PUBLISHER_H_ +#define _TEST_PUBLISHER_H_ + +#include +#include +#include +#include + +#include "idl/XtypesTestsTypesPubSubTypes.h" + +// #include +// #include + +#include +#include + +namespace eprosima { +namespace fastdds { +namespace dds { + +class TypeLookupPublisher + : public DomainParticipantListener +{ +public: + + TypeLookupPublisher() + { + } + + ~TypeLookupPublisher(); + + bool init(); + + bool create_type(); + + void wait_discovery( + uint32_t how_many); + + void run( + uint32_t samples); + + void on_publication_matched( + DataWriter* /*publisher*/, + const PublicationMatchedStatus& info) override; + +private: + + std::mutex mutex_; + std::condition_variable cv_; + unsigned int matched_ = 0; + bool run_ = true; + DomainParticipant* participant_ = nullptr; + TypeSupport type_; + Publisher* publisher_ = nullptr; + DataWriter* writer_ = nullptr; + Topic* topic_ = nullptr; +}; + +} // dds +} // fastdds +} // eprosima + +#endif /* _TEST_PUBLISHER_H_ */ diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupSubscriber.cpp new file mode 100644 index 00000000000..66ed688cd1c --- /dev/null +++ b/test/dds/xtypes/TypeLookupSubscriber.cpp @@ -0,0 +1,208 @@ +// Copyright 2021 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 TypeLookupSubscriber.cpp + * + */ + +#include "TypeLookupSubscriber.h" + +#include +#include +#include +#include + +#include + +#include +#include +#include +#include +#include + +using namespace eprosima::fastdds::dds; +using namespace eprosima::fastrtps::rtps; + +static int DOMAIN_ID_ = 10; + +TypeLookupSubscriber::~TypeLookupSubscriber() +{ + if (nullptr != reader_) + { + subscriber_->delete_datareader(reader_); + } + + if (nullptr != subscriber_) + { + participant_->delete_subscriber(subscriber_); + } + + if (nullptr != topic_) + { + participant_->delete_topic(topic_); + } + + if (nullptr != participant_) + { + DomainParticipantFactory::get_instance()->delete_participant(participant_); + } +} + +bool TypeLookupSubscriber::init() +{ + std::cout << "TypeLookupSubscriber::init" << std::endl; + + StatusMask mask = StatusMask::subscription_matched() + << StatusMask::data_available() + << StatusMask::liveliness_changed(); + + participant_ = DomainParticipantFactory::get_instance() + ->create_participant(DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this, mask); + + if (participant_ == nullptr) + { + std::cout << "ERROR create_participant" << std::endl; + return false; + } + + if (!create_type()) + { + std::cout << "ERROR create_type" << std::endl; + return false; + } + + return true; +} + +bool TypeLookupSubscriber::create_type() +{ + auto obj = BasicStruct(); + type_.reset(new BasicStructPubSubType()); + type_.register_type(participant_); + + //CREATE THE SUBSCRIBER + subscriber_ = participant_->create_subscriber(SUBSCRIBER_QOS_DEFAULT, nullptr); + if (subscriber_ == nullptr) + { + std::cout << "ERROR create_subscriber" << std::endl; + return false; + } + + //CREATE THE TOPIC + std::ostringstream topic_name; + topic_name << "BasicStructPubSubType" << "_" << asio::ip::host_name() << "_" << DOMAIN_ID_; + topic_ = participant_->create_topic(topic_name.str(), type_.get_type_name(), TOPIC_QOS_DEFAULT); + if (topic_ == nullptr) + { + std::cout << "ERROR create_topic" << std::endl; + return false; + } + + //CREATE THE DATAREADER + DataReaderQos rqos = subscriber_->get_default_datareader_qos(); + reader_ = subscriber_->create_datareader(topic_, rqos); + if (reader_ == nullptr) + { + std::cout << "ERROR create_datareader" << std::endl; + return false; + } + + return true; +} + +bool TypeLookupSubscriber::run() +{ + return run_for(std::chrono::seconds(30)); +} + +bool TypeLookupSubscriber::run_for( + const std::chrono::milliseconds& timeout) +{ + bool returned_value = false; + + std::unique_lock lock(mutex_); + returned_value = cv_.wait_for(lock, timeout, [&] + { + if (publishers_ < number_samples_.size()) + { + // Will fail later. + return true; + } + else if (publishers_ > number_samples_.size()) + { + return false; + } + + for (auto& number_samples : number_samples_) + { + if (max_number_samples_ > number_samples.second) + { + return false; + } + } + + return true; + }); + + if (publishers_ < number_samples_.size()) + { + std::cout << "ERROR: detected more than " << publishers_ << " publishers" << std::endl; + returned_value = false; + } + + return returned_value; +} + +void TypeLookupSubscriber::on_subscription_matched( + DataReader* /*reader*/, + const SubscriptionMatchedStatus& info) +{ + if (info.current_count_change == 1) + { + matched_ = info.total_count; + std::cout << "(TypeLookupSubscriber) matched." << std::endl; + } + else if (info.current_count_change == -1) + { + matched_ = info.total_count; + std::cout << "(TypeLookupSubscriber) unmatched." << std::endl; + } + else + { + std::cout << info.current_count_change + << " is not a valid value for SubscriptionMatchedStatus current count change" << std::endl; + } +} + +void TypeLookupSubscriber::on_data_available( + DataReader* reader) +{ + SampleInfo info; + BasicStruct sample; + if (reader->take_next_sample((void*)&sample, &info) == RETCODE_OK) + { + if (info.instance_state == ALIVE_INSTANCE_STATE) + { + std::unique_lock lock(mutex_); + std::cout << "Received sample (" << info.sample_identity.writer_guid().guidPrefix << " - " << + info.sample_identity.sequence_number() << "): index(" << sample.index() << "), message(" + << sample.message() << ")" << std::endl; + if (max_number_samples_ <= ++number_samples_[info.sample_identity.writer_guid()]) + { + cv_.notify_all(); + } + } + } +} diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupSubscriber.h new file mode 100644 index 00000000000..3e29390a93a --- /dev/null +++ b/test/dds/xtypes/TypeLookupSubscriber.h @@ -0,0 +1,87 @@ +// 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 TypeLookupSubscriber.h + * + */ + +#ifndef _TEST_SUBSCRIBER_H_ +#define _TEST_SUBSCRIBER_H_ + +#include +#include +#include +#include + +#include "idl/XtypesTestsTypesPubSubTypes.h" + +#include +#include +#include +#include + +namespace eprosima { +namespace fastdds { +namespace dds { + +class TypeLookupSubscriber + : public DomainParticipantListener +{ +public: + + TypeLookupSubscriber() + { + } + + ~TypeLookupSubscriber(); + + bool init(); + + bool create_type(); + + bool run(); + + bool run_for( + const std::chrono::milliseconds& timeout); + + void on_subscription_matched( + DataReader* /*reader*/, + const SubscriptionMatchedStatus& info) override; + + void on_data_available( + DataReader* reader) override; + +private: + + std::mutex mutex_; + std::condition_variable cv_; + unsigned int matched_ = 0; + const uint32_t publishers_ = 1; + const uint32_t max_number_samples_ = 10; + std::map number_samples_; + bool run_ = true; + DomainParticipant* participant_ = nullptr; + TypeSupport type_; + Subscriber* subscriber_ = nullptr; + DataReader* reader_ = nullptr; + Topic* topic_ = nullptr; +}; + +} // dds +} // fastdds +} // eprosima + + +#endif /* _TEST_SUBSCRIBER_H_ */ diff --git a/test/dds/xtypes/TypeLookup_main.cpp b/test/dds/xtypes/TypeLookup_main.cpp new file mode 100644 index 00000000000..87480777f26 --- /dev/null +++ b/test/dds/xtypes/TypeLookup_main.cpp @@ -0,0 +1,85 @@ +// Copyright 2019 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 TypeLookup_main.cpp + * + */ + +#include "TypeLookupPublisher.h" +#include "TypeLookupSubscriber.h" + +#include + +using namespace eprosima::fastrtps; + +int main( + int argc, + char** argv) +{ + std::cout << "Starting " << std::endl; + int type {1}; + int count {5}; + long sleep {100}; + if (argc > 1) + { + if (strcmp(argv[1], "publisher") == 0) + { + type = 1; + if (argc >= 3) + { + count = atoi(argv[2]); + if (argc == 4) + { + sleep = atoi(argv[3]); + } + } + } + else if (strcmp(argv[1], "subscriber") == 0) + { + type = 2; + } + } + else + { + std::cout << "publisher OR subscriber argument needed" << std::endl; + Log::Reset(); + return 0; + } + + switch (type) + { + case 1: + { + eprosima::fastdds::dds::TypeLookupPublisher mypub; + if (mypub.init()) + { + mypub.wait_discovery(1); + mypub.run(10); + } + break; + } + case 2: + { + eprosima::fastdds::dds::TypeLookupSubscriber mysub; + if (mysub.init()) + { + mysub.run(); + } + break; + } + } + Log::Reset(); + return 0; +} diff --git a/test/dds/xtypes/idl/XtypesTestsTypes.hpp b/test/dds/xtypes/idl/XtypesTestsTypes.hpp new file mode 100644 index 00000000000..57192c6eb29 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypes.hpp @@ -0,0 +1,227 @@ +// 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 XtypesTestsTypes.hpp + * This header file contains the declaration of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPES_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPES_HPP_ + +#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(XTYPESTESTSTYPES_SOURCE) +#define XTYPESTESTSTYPES_DllAPI __declspec( dllexport ) +#else +#define XTYPESTESTSTYPES_DllAPI __declspec( dllimport ) +#endif // XTYPESTESTSTYPES_SOURCE +#else +#define XTYPESTESTSTYPES_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define XTYPESTESTSTYPES_DllAPI +#endif // _WIN32 + +/*! + * @brief This class represents the structure BasicStruct defined by the user in the IDL file. + * @ingroup XtypesTestsTypes + */ +class BasicStruct +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport BasicStruct() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~BasicStruct() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object BasicStruct that will be copied. + */ + eProsima_user_DllExport BasicStruct( + const BasicStruct& x) + { + m_index = x.m_index; + + m_message = x.m_message; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object BasicStruct that will be copied. + */ + eProsima_user_DllExport BasicStruct( + BasicStruct&& x) noexcept + { + m_index = x.m_index; + m_message = std::move(x.m_message); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object BasicStruct that will be copied. + */ + eProsima_user_DllExport BasicStruct& operator =( + const BasicStruct& x) + { + + m_index = x.m_index; + + m_message = x.m_message; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object BasicStruct that will be copied. + */ + eProsima_user_DllExport BasicStruct& operator =( + BasicStruct&& x) noexcept + { + + m_index = x.m_index; + m_message = std::move(x.m_message); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x BasicStruct object to compare. + */ + eProsima_user_DllExport bool operator ==( + const BasicStruct& x) const + { + return (m_index == x.m_index && + m_message == x.m_message); + } + + /*! + * @brief Comparison operator. + * @param x BasicStruct object to compare. + */ + eProsima_user_DllExport bool operator !=( + const BasicStruct& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_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 eprosima::fastcdr::fixed_string<128>& _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( + eprosima::fastcdr::fixed_string<128>&& _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 eprosima::fastcdr::fixed_string<128>& message() const + { + return m_message; + } + + /*! + * @brief This function returns a reference to member message + * @return Reference to member message + */ + eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& message() + { + return m_message; + } + + + +private: + + uint16_t m_index{0}; + eprosima::fastcdr::fixed_string<128> m_message; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPES_HPP_ + + diff --git a/test/dds/xtypes/idl/XtypesTestsTypes.idl b/test/dds/xtypes/idl/XtypesTestsTypes.idl new file mode 100644 index 00000000000..22307109b3b --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypes.idl @@ -0,0 +1,5 @@ +struct BasicStruct +{ + unsigned short index; + string<128> message; +}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp new file mode 100644 index 00000000000..bc324bddde4 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp @@ -0,0 +1,46 @@ +// 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 XtypesTestsTypesCdrAux.hpp + * This source file contains some definitions of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_HPP_ + +#include "XtypesTestsTypes.hpp" + +constexpr uint32_t BasicStruct_max_cdr_typesize {141UL}; +constexpr uint32_t BasicStruct_max_key_cdr_typesize {0UL}; + + +namespace eprosima { +namespace fastcdr { + +class Cdr; +class CdrSizeCalculator; + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const BasicStruct& data); + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_HPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp new file mode 100644 index 00000000000..f3c54b02d0b --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp @@ -0,0 +1,126 @@ +// 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 XtypesTestsTypesCdrAux.ipp + * This source file contains some declarations of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_IPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_IPP_ + +#include "XtypesTestsTypesCdrAux.hpp" + +#include +#include + + +#include +using namespace eprosima::fastcdr::exception; + +namespace eprosima { +namespace fastcdr { + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const BasicStruct& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.message(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const BasicStruct& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(1) << data.message() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + BasicStruct& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + case 1: + dcdr >> data.message(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const BasicStruct& data) +{ + static_cast(scdr); + static_cast(data); +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_IPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx new file mode 100644 index 00000000000..a9e748e390f --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsTypesPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "XtypesTestsTypesPubSubTypes.h" + +#include +#include + +#include "XtypesTestsTypesCdrAux.hpp" +#include "XtypesTestsTypesTypeObjectSupport.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; + +BasicStructPubSubType::BasicStructPubSubType() +{ + setName("BasicStruct"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(BasicStruct::getMaxCdrSerializedSize()); +#else + BasicStruct_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = BasicStruct_max_key_cdr_typesize > 16 ? BasicStruct_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +BasicStructPubSubType::~BasicStructPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool BasicStructPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + BasicStruct* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool BasicStructPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + BasicStruct* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function BasicStructPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* BasicStructPubSubType::createData() +{ + return reinterpret_cast(new BasicStruct()); +} + +void BasicStructPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool BasicStructPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + BasicStruct* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + BasicStruct_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || BasicStruct_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void BasicStructPubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypes_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsTypesCdrAux.ipp" diff --git a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h new file mode 100644 index 00000000000..4bdac34c7ff --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsTypesPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPES_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPES_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "XtypesTestsTypes.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated XtypesTestsTypes is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type BasicStruct defined by the user in the IDL file. + * @ingroup XtypesTestsTypes + */ +class BasicStructPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef BasicStruct type; + + eProsima_user_DllExport BasicStructPubSubType(); + + eProsima_user_DllExport ~BasicStructPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPES_PUBSUBTYPES_H_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx new file mode 100644 index 00000000000..093931f8a8d --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.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 XtypesTestsTypesTypeObjectSupport.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 "XtypesTestsTypesTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "XtypesTestsTypes.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +void register_XtypesTestsTypes_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + register_BasicStruct_type_identifier(); + + }); +} + +void register_BasicStruct_type_identifier() +{ + { + StructTypeFlag struct_flags_BasicStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_BasicStruct; + TypeIdentifierPair type_ids_BasicStruct; + QualifiedTypeName type_name_BasicStruct = "BasicStruct"; + eprosima::fastcdr::optional type_ann_builtin_BasicStruct; + eprosima::fastcdr::optional ann_custom_BasicStruct; + CompleteTypeDetail detail_BasicStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BasicStruct, ann_custom_BasicStruct, type_name_BasicStruct.to_string()); + CompleteStructHeader header_BasicStruct; + header_BasicStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BasicStruct); + CompleteStructMemberSeq member_seq_BasicStruct; + { + return_code_BasicStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_BasicStruct); + + if (return_code_BasicStruct != 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_BasicStruct.type_identifier1()._d() || TK_NONE == type_ids_BasicStruct.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicStruct.type_identifier1()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicStruct.type_identifier1()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_BasicStruct.type_identifier1()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_BasicStruct.type_identifier1()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_BasicStruct.type_identifier1()._d() && + (EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_BasicStruct.type_identifier1()._d() && + (EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_BasicStruct.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_BasicStruct.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicStruct.type_identifier2()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicStruct.type_identifier2()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_BasicStruct.type_identifier2()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_BasicStruct.type_identifier2()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_BasicStruct.type_identifier2()._d() && + (EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_BasicStruct.type_identifier2()._d() && + (EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_BasicStruct.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_BasicStruct.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_BasicStruct); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_BasicStruct, member_index); + } + { + return_code_BasicStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_128", type_ids_BasicStruct); + + if (return_code_BasicStruct != eprosima::fastdds::dds::RETCODE_OK) + { + std::string type_id_kind_anonymous_string_128("TI_STRING8_SMALL"); + if (type_id_kind_anonymous_string_128 == "TI_STRING8_SMALL") + { + SBound bound = static_cast(128); + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_128")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); + } + } + else if (type_id_kind_anonymous_string_128 == "TI_STRING8_LARGE") + { + LBound bound = 128; + 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_128")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128: Unknown String kind."); + return; + } + return_code_BasicStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_128", type_ids_BasicStruct); + if (return_code_BasicStruct != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128: 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_BasicStruct.type_identifier1()._d() || TK_NONE == type_ids_BasicStruct.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicStruct.type_identifier1()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicStruct.type_identifier1()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_BasicStruct.type_identifier1()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_BasicStruct.type_identifier1()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_BasicStruct.type_identifier1()._d() && + (EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_BasicStruct.type_identifier1()._d() && + (EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_BasicStruct.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_BasicStruct.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicStruct.type_identifier2()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicStruct.type_identifier2()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_BasicStruct.type_identifier2()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_BasicStruct.type_identifier2()._d() && + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_BasicStruct.type_identifier2()._d() && + (EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_BasicStruct.type_identifier2()._d() && + (EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_BasicStruct.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_BasicStruct.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_BasicStruct); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_BasicStruct, member_message); + } + CompleteStructType struct_type_BasicStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_BasicStruct, header_BasicStruct, member_seq_BasicStruct); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BasicStruct, type_name_BasicStruct.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "BasicStruct already registered in TypeObjectRegistry for a different type."); + } + return_code_BasicStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BasicStruct", type_ids_BasicStruct); + if (return_code_BasicStruct != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "BasicStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + diff --git a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp new file mode 100644 index 00000000000..2233bb43099 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.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 XtypesTestsTypesTypeObjectSupport.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_XTYPESTESTSTYPES_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPES_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_XtypesTestsTypes_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register BasicStruct 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_BasicStruct_type_identifier(); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPES_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/test/dds/xtypes/simple_communication.json b/test/dds/xtypes/simple_communication.json new file mode 100644 index 00000000000..bcf1feb5e0c --- /dev/null +++ b/test/dds/xtypes/simple_communication.json @@ -0,0 +1,11 @@ +{ + "description": "Simple test to communicate a publisher and a subscriber with default values", + "participants": [ + { + "kind": "subscriber" + }, + { + "kind": "publisher" + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py new file mode 100644 index 00000000000..d28e0c13a71 --- /dev/null +++ b/test/dds/xtypes/test_build.py @@ -0,0 +1,161 @@ +"""Execute a DDS communictaion test following a json definition file.""" +# Copyright 2021 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. + +import glob +import json +import logging +import os +import subprocess +import sys +import time + +script_dir = os.path.dirname(os.path.realpath(__file__)) +seed = str(os.getpid()) + + +def read_json(file_name): + """Read json file with test definition.""" + structure_dic = {} + with open(file_name) as json_file: + structure_dic = json.load(json_file) + return structure_dic + + +def test_definition(file_name): + """Return a list with each test process defined in dictionary.""" + return read_json(file_name)['participants'] + + +def define_args(tests_definition): + """Use list dictionary to get commands args for each test process.""" + sub_args = [] + pub_args = [] + + for test in tests_definition: + + if 'kind' not in test.keys(): + print('ARGUMENT ERROR : ' + 'Test definition requites field for each participant') + continue + + if test['kind'] == 'publisher': + pub_args.append(['publisher']) + + elif test['kind'] == 'subscriber': + sub_args.append(['subscriber']) + + else: + print('ARGUMENT ERROR : ' + ' field can be publisher/subscriber') + + return pub_args, sub_args + + +def define_commands(pub_args, sub_args): + """Create commands for each test addind executable to args.""" + files = glob.glob( + os.path.join( + script_dir, + '**/DDSXtypesCommunication*'), + recursive=True) + pf = iter(files) + command = next(pf, None) + while command and \ + (not os.path.isfile(command) + or not os.access(command, + os.X_OK)): + command = next(pf, None) + + + # Add executable to each command + return ( + [[command] + args for args in pub_args], + [[command] + args for args in sub_args] + ) + + +def execute_command(command): + """Execute command.""" + return subprocess.Popen(command) + + +def execute_commands(pub_commands, sub_commands, logger): + """Get test definitions in command lists and execute each process.""" + pubs_proc = [] + subs_proc = [] + + for subscriber_command in sub_commands: + logger.info(f'Executing subcriber: {subscriber_command}') + subs_proc.append(execute_command(subscriber_command)) + + for publisher_command in pub_commands: + logger.info(f'Executing publisher: {publisher_command}') + pubs_proc.append(execute_command(publisher_command)) + + ret_value = 0 + + for proc in subs_proc: + proc.communicate() + ret_value = ret_value + proc.returncode + + for proc in pubs_proc: + proc.kill() + + return ret_value + + +if __name__ == '__main__': + + logger = logging.getLogger('DDS COMMUNICATION TEST') + logger.setLevel(logging.INFO) + + logger.error("TEST RUNNING") + + args = sys.argv[1:] + + if len(args) != 1: + logger.error('ARGUMENTS ERROR : 1 argument required: ' + 'path to .json file with test definition') + sys.exit(1) + + logger.error("test_definition") + test_definitions = test_definition(args[0]) + + logger.error(test_definitions) + + logger.error("define_args") + pub_args, sub_args = define_args(test_definitions) + + logger.error(pub_args) + logger.error(sub_args) + + logger.error("define_commands") + pub_commands, sub_commands = define_commands(pub_args, sub_args) + + logger.error(pub_commands) + logger.error(sub_commands) + + logger.error("execute_commands") + test_value = execute_commands( + pub_commands, + sub_commands, + logger) + + logger.error(test_value) + + if test_value != 0: + sys.exit(1) + else: + sys.exit(0) From a395be7e41741bfee1d4bbe2d8113b0893648305 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Thu, 11 Jan 2024 15:14:01 +0100 Subject: [PATCH 02/45] Refs #20165: Changes to work with multiple types Signed-off-by: adriancampo --- src/cpp/rtps/builtin/data/WriterProxyData.cpp | 1 - test/dds/xtypes/TypeLookupPublisher.cpp | 139 ++-- test/dds/xtypes/TypeLookupPublisher.h | 31 +- test/dds/xtypes/TypeLookupSubscriber.cpp | 131 ++-- test/dds/xtypes/TypeLookupSubscriber.h | 35 +- test/dds/xtypes/TypeLookup_main.cpp | 61 +- test/dds/xtypes/idl/XtypesTestsTypes.hpp | 380 ++++++++++- test/dds/xtypes/idl/XtypesTestsTypes.idl | 14 +- .../dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp | 20 +- .../dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp | 176 ++++- .../idl/XtypesTestsTypesPubSubTypes.cxx | 430 ++++++++++++- .../xtypes/idl/XtypesTestsTypesPubSubTypes.h | 192 +++++- .../idl/XtypesTestsTypesTypeObjectSupport.cxx | 606 +++++++++++++++--- .../idl/XtypesTestsTypesTypeObjectSupport.hpp | 18 +- test/dds/xtypes/simple_communication.json | 19 +- test/dds/xtypes/test_build.py | 143 ++--- 16 files changed, 1993 insertions(+), 403 deletions(-) diff --git a/src/cpp/rtps/builtin/data/WriterProxyData.cpp b/src/cpp/rtps/builtin/data/WriterProxyData.cpp index 4e96fd7be72..857668b00a9 100644 --- a/src/cpp/rtps/builtin/data/WriterProxyData.cpp +++ b/src/cpp/rtps/builtin/data/WriterProxyData.cpp @@ -576,7 +576,6 @@ bool WriterProxyData::writeToCDRMessage( { return false; } - std::cout << "TypeInformationParameter>::add_to_cdr_message" << std::endl; } if (m_properties.size() > 0) { diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupPublisher.cpp index f939405dddc..975187f8f71 100644 --- a/test/dds/xtypes/TypeLookupPublisher.cpp +++ b/test/dds/xtypes/TypeLookupPublisher.cpp @@ -1,4 +1,4 @@ -// Copyright 2021 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. @@ -20,6 +20,9 @@ #include #include +#include +#include +#include #include #include @@ -38,19 +41,11 @@ static int DOMAIN_ID_ = 10; TypeLookupPublisher::~TypeLookupPublisher() { - if (nullptr != writer_) + for (auto it = known_types_.begin(); it != known_types_.end(); ++it) { - publisher_->delete_datawriter(writer_); - } - - if (nullptr != publisher_) - { - participant_->delete_publisher(publisher_); - } - - if (nullptr != topic_) - { - participant_->delete_topic(topic_); + it->second.publisher_->delete_datawriter(it->second.writer_); + participant_->delete_publisher(it->second.publisher_); + participant_->delete_topic(it->second.topic_); } if (nullptr != participant_) @@ -59,63 +54,105 @@ TypeLookupPublisher::~TypeLookupPublisher() } } -bool TypeLookupPublisher::init() +bool TypeLookupPublisher::init( + std::vector known_types) { - std::cout << "TypeLookupPublisher::init" << std::endl; - participant_ = DomainParticipantFactory::get_instance() ->create_participant(DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this); - if (participant_ == nullptr) { std::cout << "ERROR create_participant" << std::endl; return false; } - if (!create_type()) + for (const auto& type : known_types) { - std::cout << "ERROR create_type" << std::endl; - return false; + if (type == "Type1") + { + if (!create_known_type(type)) + { + std::cout << "ERROR create_known_type: " << type << std::endl; + return false; + } + } + else if (type == "Type2") + { + if (!create_known_type(type)) + { + std::cout << "ERROR create_known_type: " << type << std::endl; + return false; + } + } + else if (type == "Type3") + { + if (!create_known_type(type)) + { + std::cout << "ERROR create_known_type: " << type << std::endl; + return false; + } + } + else + { + std::cout << "ERROR TypeLookupPublisher::init uknown type: " << type << std::endl; + return false; + } } - return true; } -bool TypeLookupPublisher::create_type() +template +bool TypeLookupPublisher::create_known_type( + const std::string& type) { + // Check if the type is already created + if (known_types_.find(type) != known_types_.end()) + { + std::cout << "Type " << type << " is already created." << std::endl; + return true; + } - auto obj = BasicStruct(); - type_.reset(new BasicStructPubSubType()); - type_.register_type(participant_); - + // Create a new PubKnownType for the given type + PubKnownType a_type; + a_type.obj_ = new Type(); + a_type.type_.reset(new TypePubSubType()); + a_type.type_.register_type(participant_); - //CREATE THE PUBLISHER - publisher_ = participant_->create_publisher(PUBLISHER_QOS_DEFAULT, this); - if (publisher_ == nullptr) + // CREATE THE PUBLISHER + a_type.publisher_ = participant_->create_publisher(PUBLISHER_QOS_DEFAULT, this); + if (a_type.publisher_ == nullptr) { - std::cout << "ERROR create_publisher" << std::endl; + std::cout << "ERROR create_publisher: " << type << std::endl; return false; } - //CREATE THE TOPIC + // CREATE THE TOPIC std::ostringstream topic_name; - topic_name << "BasicStructPubSubType" << "_" << asio::ip::host_name() << "_" << DOMAIN_ID_; - topic_ = participant_->create_topic(topic_name.str(), type_.get_type_name(), TOPIC_QOS_DEFAULT); - if (topic_ == nullptr) + topic_name << type << "_" << asio::ip::host_name() << "_" << DOMAIN_ID_; + a_type.topic_ = participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); + if (a_type.topic_ == nullptr) { - std::cout << "ERROR create_topic" << std::endl; + std::cout << "ERROR create_topic: " << type << std::endl; return false; } - //CREATE THE DATAWRITER - DataWriterQos wqos = publisher_->get_default_datawriter_qos(); - writer_ = publisher_->create_datawriter(topic_, wqos, this); - if (writer_ == nullptr) + // CREATE THE DATAWRITER + DataWriterQos wqos = a_type.publisher_->get_default_datawriter_qos(); + a_type.writer_ = a_type.publisher_->create_datawriter(a_type.topic_, wqos, this); + if (a_type.writer_ == nullptr) { std::cout << "ERROR create_datawriter" << std::endl; return false; } + // CREATE CALLBACK + a_type.callback_ = [](void* data, int current_sample) + { + Type* typed_data = static_cast(data); + typed_data->index(current_sample); + typed_data->message("Message" + std::to_string(current_sample)); + }; + + known_types_.emplace(type, a_type); return true; } @@ -133,26 +170,24 @@ void TypeLookupPublisher::run( uint32_t samples) { uint32_t current_sample = 0; - uint16_t index = 0; void* sample = nullptr; while (samples > current_sample) { - sample = type_.create_data(); + for (auto it = known_types_.begin(); it != known_types_.end(); ++it) + { + sample = it->second.type_.create_data(); - BasicStruct* data = static_cast(sample); - data->index(index); - data->message("Message" + std::to_string(index)); + it->second.callback_(sample, current_sample); - std::cout << "Publisher writting index: " << index << std::endl; - writer_->write(sample); + std::cout << "Publisher " << it->second.type_.get_type_name() << + " writting sample: " << current_sample << std::endl; + it->second.writer_->write(sample); + it->second.type_.delete_data(sample); + std::this_thread::sleep_for(std::chrono::milliseconds(250)); + } ++current_sample; - ++index; - - type_.delete_data(sample); - - std::this_thread::sleep_for(std::chrono::milliseconds(250)); } } @@ -177,4 +212,4 @@ void TypeLookupPublisher::on_publication_matched( << " is not a valid value for PublicationMatchedStatus current count change" << std::endl; } cv_.notify_all(); -} +} \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupPublisher.h index d952423f3b3..d49ff736754 100644 --- a/test/dds/xtypes/TypeLookupPublisher.h +++ b/test/dds/xtypes/TypeLookupPublisher.h @@ -1,4 +1,4 @@ -// Copyright 2016 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. @@ -37,6 +37,20 @@ namespace eprosima { namespace fastdds { namespace dds { + + +struct PubKnownType +{ + TypeSupport type_; + void* obj_; + void* type_sup_; + Publisher* publisher_ = nullptr; + DataWriter* writer_ = nullptr; + Topic* topic_ = nullptr; + + std::function callback_; +}; + class TypeLookupPublisher : public DomainParticipantListener { @@ -48,9 +62,12 @@ class TypeLookupPublisher ~TypeLookupPublisher(); - bool init(); + bool init( + std::vector known_types); - bool create_type(); + template + bool create_known_type( + const std::string& type); void wait_discovery( uint32_t how_many); @@ -69,14 +86,12 @@ class TypeLookupPublisher unsigned int matched_ = 0; bool run_ = true; DomainParticipant* participant_ = nullptr; - TypeSupport type_; - Publisher* publisher_ = nullptr; - DataWriter* writer_ = nullptr; - Topic* topic_ = nullptr; + + std::map known_types_; }; } // dds } // fastdds } // eprosima -#endif /* _TEST_PUBLISHER_H_ */ +#endif /* _TEST_PUBLISHER_H_ */ \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupSubscriber.cpp index 66ed688cd1c..97e27515314 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupSubscriber.cpp @@ -1,4 +1,4 @@ -// Copyright 2021 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. @@ -39,19 +39,11 @@ static int DOMAIN_ID_ = 10; TypeLookupSubscriber::~TypeLookupSubscriber() { - if (nullptr != reader_) + for (auto it = known_types_.begin(); it != known_types_.end(); ++it) { - subscriber_->delete_datareader(reader_); - } - - if (nullptr != subscriber_) - { - participant_->delete_subscriber(subscriber_); - } - - if (nullptr != topic_) - { - participant_->delete_topic(topic_); + it->second.subscriber_->delete_datareader(it->second.reader_); + participant_->delete_subscriber(it->second.subscriber_); + participant_->delete_topic(it->second.topic_); } if (nullptr != participant_) @@ -60,41 +52,75 @@ TypeLookupSubscriber::~TypeLookupSubscriber() } } -bool TypeLookupSubscriber::init() +bool TypeLookupSubscriber::init( + std::vector known_types) { - std::cout << "TypeLookupSubscriber::init" << std::endl; - StatusMask mask = StatusMask::subscription_matched() << StatusMask::data_available() << StatusMask::liveliness_changed(); participant_ = DomainParticipantFactory::get_instance() ->create_participant(DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this, mask); - if (participant_ == nullptr) { std::cout << "ERROR create_participant" << std::endl; return false; } - if (!create_type()) + for (const auto& type : known_types) { - std::cout << "ERROR create_type" << std::endl; - return false; + if (type == "Type1") + { + if (!create_known_type(type)) + { + std::cout << "ERROR create_known_type: " << type << std::endl; + return false; + } + } + else if (type == "Type2") + { + if (!create_known_type(type)) + { + std::cout << "ERROR create_known_type: " << type << std::endl; + return false; + } + } + else if (type == "Type3") + { + if (!create_known_type(type)) + { + std::cout << "ERROR create_known_type: " << type << std::endl; + return false; + } + } + else + { + std::cout << "ERROR TypeLookupSubscriber::init uknown type: " << type << std::endl; + return false; + } } - return true; } -bool TypeLookupSubscriber::create_type() +template +bool TypeLookupSubscriber::create_known_type( + const std::string& type) { - auto obj = BasicStruct(); - type_.reset(new BasicStructPubSubType()); - type_.register_type(participant_); + // Check if the type is already created + if (known_types_.find(type) != known_types_.end()) + { + std::cout << "Type " << type << " is already created." << std::endl; + return true; + } + + SubKnownType a_type; + a_type.obj_ = new Type(); + a_type.type_.reset(new TypePubSubType()); + a_type.type_.register_type(participant_); //CREATE THE SUBSCRIBER - subscriber_ = participant_->create_subscriber(SUBSCRIBER_QOS_DEFAULT, nullptr); - if (subscriber_ == nullptr) + a_type.subscriber_ = participant_->create_subscriber(SUBSCRIBER_QOS_DEFAULT, nullptr); + if (a_type.subscriber_ == nullptr) { std::cout << "ERROR create_subscriber" << std::endl; return false; @@ -102,29 +128,38 @@ bool TypeLookupSubscriber::create_type() //CREATE THE TOPIC std::ostringstream topic_name; - topic_name << "BasicStructPubSubType" << "_" << asio::ip::host_name() << "_" << DOMAIN_ID_; - topic_ = participant_->create_topic(topic_name.str(), type_.get_type_name(), TOPIC_QOS_DEFAULT); - if (topic_ == nullptr) + topic_name << type << "_" << asio::ip::host_name() << "_" << DOMAIN_ID_; + a_type.topic_ = participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); + if (a_type.topic_ == nullptr) { std::cout << "ERROR create_topic" << std::endl; return false; } //CREATE THE DATAREADER - DataReaderQos rqos = subscriber_->get_default_datareader_qos(); - reader_ = subscriber_->create_datareader(topic_, rqos); - if (reader_ == nullptr) + DataReaderQos rqos = a_type.subscriber_->get_default_datareader_qos(); + a_type.reader_ = a_type.subscriber_->create_datareader(a_type.topic_, rqos); + if (a_type.reader_ == nullptr) { std::cout << "ERROR create_datareader" << std::endl; return false; } + // CREATE CALLBACK + a_type.callback_ = [](void* data) + { + Type* sample = static_cast(data); + std::cout << "index(" << sample->index() << "), message(" << sample->message() << ")" << std::endl; + }; + + known_types_.emplace(type, a_type); return true; } -bool TypeLookupSubscriber::run() +bool TypeLookupSubscriber::run( + int seconds) { - return run_for(std::chrono::seconds(30)); + return run_for(std::chrono::seconds(seconds)); } bool TypeLookupSubscriber::run_for( @@ -135,12 +170,12 @@ bool TypeLookupSubscriber::run_for( std::unique_lock lock(mutex_); returned_value = cv_.wait_for(lock, timeout, [&] { - if (publishers_ < number_samples_.size()) + if (known_types_.size() < number_samples_.size()) { // Will fail later. return true; } - else if (publishers_ > number_samples_.size()) + else if (known_types_.size() > number_samples_.size()) { return false; } @@ -156,9 +191,9 @@ bool TypeLookupSubscriber::run_for( return true; }); - if (publishers_ < number_samples_.size()) + if (known_types_.size() < number_samples_.size()) { - std::cout << "ERROR: detected more than " << publishers_ << " publishers" << std::endl; + std::cout << "ERROR: detected more than " << known_types_.size() << " publishers" << std::endl; returned_value = false; } @@ -190,19 +225,23 @@ void TypeLookupSubscriber::on_data_available( DataReader* reader) { SampleInfo info; - BasicStruct sample; - if (reader->take_next_sample((void*)&sample, &info) == RETCODE_OK) + void* sample_data = known_types_[reader->type().get_type_name()].obj_; + + if (reader->take_next_sample(sample_data, &info) == RETCODE_OK) { if (info.instance_state == ALIVE_INSTANCE_STATE) { - std::unique_lock lock(mutex_); - std::cout << "Received sample (" << info.sample_identity.writer_guid().guidPrefix << " - " << - info.sample_identity.sequence_number() << "): index(" << sample.index() << "), message(" - << sample.message() << ")" << std::endl; + + std::cout << "Subscriber " << reader->type().get_type_name() << + " received sample: " << info.sample_identity.sequence_number() << " -> "; + + // Call the callback function to process the received data + known_types_[reader->type().get_type_name()].callback_(sample_data); + if (max_number_samples_ <= ++number_samples_[info.sample_identity.writer_guid()]) { cv_.notify_all(); } } } -} +} \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupSubscriber.h index 3e29390a93a..a8a52f92ff0 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.h +++ b/test/dds/xtypes/TypeLookupSubscriber.h @@ -1,4 +1,4 @@ -// Copyright 2016 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. @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -36,6 +37,19 @@ namespace eprosima { namespace fastdds { namespace dds { + +struct SubKnownType +{ + TypeSupport type_; + void* obj_; + void* type_sup_; + Subscriber* subscriber_ = nullptr; + DataReader* reader_ = nullptr; + Topic* topic_ = nullptr; + + std::function callback_; +}; + class TypeLookupSubscriber : public DomainParticipantListener { @@ -47,11 +61,15 @@ class TypeLookupSubscriber ~TypeLookupSubscriber(); - bool init(); + bool init( + std::vector known_types); - bool create_type(); + template + bool create_known_type( + const std::string& type); - bool run(); + bool run( + int seconds); bool run_for( const std::chrono::milliseconds& timeout); @@ -68,15 +86,12 @@ class TypeLookupSubscriber std::mutex mutex_; std::condition_variable cv_; unsigned int matched_ = 0; - const uint32_t publishers_ = 1; const uint32_t max_number_samples_ = 10; std::map number_samples_; bool run_ = true; DomainParticipant* participant_ = nullptr; - TypeSupport type_; - Subscriber* subscriber_ = nullptr; - DataReader* reader_ = nullptr; - Topic* topic_ = nullptr; + + std::map known_types_; }; } // dds @@ -84,4 +99,4 @@ class TypeLookupSubscriber } // eprosima -#endif /* _TEST_SUBSCRIBER_H_ */ +#endif /* _TEST_SUBSCRIBER_H_ */ \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookup_main.cpp b/test/dds/xtypes/TypeLookup_main.cpp index 87480777f26..ebe4421734b 100644 --- a/test/dds/xtypes/TypeLookup_main.cpp +++ b/test/dds/xtypes/TypeLookup_main.cpp @@ -1,4 +1,4 @@ -// Copyright 2019 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. @@ -22,34 +22,53 @@ #include +#include +#include +#include +#include +#include + + using namespace eprosima::fastrtps; int main( int argc, char** argv) { - std::cout << "Starting " << std::endl; - int type {1}; - int count {5}; - long sleep {100}; + // Seed for random number generation + std::random_device rd; + std::mt19937 gen(rd()); + std::uniform_int_distribution<> distr(1, 10); + int randomSeconds = distr(gen); + // Sleep for the random duration + std::this_thread::sleep_for(std::chrono::seconds(randomSeconds)); + + std::cout << "Starting " << randomSeconds << std::endl; + // Print all command-line arguments + std::cout << "Command-line arguments:" << std::endl; + for (int i = 0; i < argc; ++i) + { + std::cout << "argv[" << i << "]: " << argv[i] << std::endl; + } + + int type = 0; + std::vector known_types; + if (argc > 1) { if (strcmp(argv[1], "publisher") == 0) { type = 1; - if (argc >= 3) - { - count = atoi(argv[2]); - if (argc == 4) - { - sleep = atoi(argv[3]); - } - } } else if (strcmp(argv[1], "subscriber") == 0) { type = 2; } + + for (int i = 2; i < argc; ++i) + { + known_types.push_back(argv[i]); + } } else { @@ -62,23 +81,25 @@ int main( { case 1: { - eprosima::fastdds::dds::TypeLookupPublisher mypub; - if (mypub.init()) + eprosima::fastdds::dds::TypeLookupPublisher pub; + if (pub.init(known_types)) { - mypub.wait_discovery(1); - mypub.run(10); + pub.wait_discovery(1); + pub.run(10); } break; } case 2: { - eprosima::fastdds::dds::TypeLookupSubscriber mysub; - if (mysub.init()) + eprosima::fastdds::dds::TypeLookupSubscriber sub; + if (sub.init(known_types)) { - mysub.run(); + sub.run(30); } break; } + default: + std::cout << "publisher OR subscriber argument needed" << std::endl; } Log::Reset(); return 0; diff --git a/test/dds/xtypes/idl/XtypesTestsTypes.hpp b/test/dds/xtypes/idl/XtypesTestsTypes.hpp index 57192c6eb29..9001a942144 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypes.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypes.hpp @@ -52,33 +52,33 @@ #endif // _WIN32 /*! - * @brief This class represents the structure BasicStruct defined by the user in the IDL file. + * @brief This class represents the structure Type1 defined by the user in the IDL file. * @ingroup XtypesTestsTypes */ -class BasicStruct +class Type1 { public: /*! * @brief Default constructor. */ - eProsima_user_DllExport BasicStruct() + eProsima_user_DllExport Type1() { } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~BasicStruct() + eProsima_user_DllExport ~Type1() { } /*! * @brief Copy constructor. - * @param x Reference to the object BasicStruct that will be copied. + * @param x Reference to the object Type1 that will be copied. */ - eProsima_user_DllExport BasicStruct( - const BasicStruct& x) + eProsima_user_DllExport Type1( + const Type1& x) { m_index = x.m_index; @@ -88,10 +88,10 @@ class BasicStruct /*! * @brief Move constructor. - * @param x Reference to the object BasicStruct that will be copied. + * @param x Reference to the object Type1 that will be copied. */ - eProsima_user_DllExport BasicStruct( - BasicStruct&& x) noexcept + eProsima_user_DllExport Type1( + Type1&& x) noexcept { m_index = x.m_index; m_message = std::move(x.m_message); @@ -99,10 +99,10 @@ class BasicStruct /*! * @brief Copy assignment. - * @param x Reference to the object BasicStruct that will be copied. + * @param x Reference to the object Type1 that will be copied. */ - eProsima_user_DllExport BasicStruct& operator =( - const BasicStruct& x) + eProsima_user_DllExport Type1& operator =( + const Type1& x) { m_index = x.m_index; @@ -114,10 +114,10 @@ class BasicStruct /*! * @brief Move assignment. - * @param x Reference to the object BasicStruct that will be copied. + * @param x Reference to the object Type1 that will be copied. */ - eProsima_user_DllExport BasicStruct& operator =( - BasicStruct&& x) noexcept + eProsima_user_DllExport Type1& operator =( + Type1&& x) noexcept { m_index = x.m_index; @@ -127,10 +127,10 @@ class BasicStruct /*! * @brief Comparison operator. - * @param x BasicStruct object to compare. + * @param x Type1 object to compare. */ eProsima_user_DllExport bool operator ==( - const BasicStruct& x) const + const Type1& x) const { return (m_index == x.m_index && m_message == x.m_message); @@ -138,10 +138,10 @@ class BasicStruct /*! * @brief Comparison operator. - * @param x BasicStruct object to compare. + * @param x Type1 object to compare. */ eProsima_user_DllExport bool operator !=( - const BasicStruct& x) const + const Type1& x) const { return !(*this == x); } @@ -220,6 +220,346 @@ class BasicStruct uint16_t m_index{0}; eprosima::fastcdr::fixed_string<128> m_message; +}; +/*! + * @brief This class represents the structure Type2 defined by the user in the IDL file. + * @ingroup XtypesTestsTypes + */ +class Type2 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type2() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type2() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2( + const Type2& x) + { + m_index = x.m_index; + + m_message = x.m_message; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2( + Type2&& x) noexcept + { + m_index = x.m_index; + m_message = std::move(x.m_message); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2& operator =( + const Type2& x) + { + + m_index = x.m_index; + + m_message = x.m_message; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2& operator =( + Type2&& x) noexcept + { + + m_index = x.m_index; + m_message = std::move(x.m_message); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type2 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type2& x) const + { + return (m_index == x.m_index && + m_message == x.m_message); + } + + /*! + * @brief Comparison operator. + * @param x Type2 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type2& 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( + int16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport int16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport int16_t& index() + { + return m_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 eprosima::fastcdr::fixed_string<128>& _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( + eprosima::fastcdr::fixed_string<128>&& _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 eprosima::fastcdr::fixed_string<128>& message() const + { + return m_message; + } + + /*! + * @brief This function returns a reference to member message + * @return Reference to member message + */ + eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& message() + { + return m_message; + } + + + +private: + + int16_t m_index{0}; + eprosima::fastcdr::fixed_string<128> m_message; + +}; +/*! + * @brief This class represents the structure Type3 defined by the user in the IDL file. + * @ingroup XtypesTestsTypes + */ +class Type3 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type3() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type3() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3( + const Type3& x) + { + m_index = x.m_index; + + m_message = x.m_message; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3( + Type3&& x) noexcept + { + m_index = x.m_index; + m_message = std::move(x.m_message); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3& operator =( + const Type3& x) + { + + m_index = x.m_index; + + m_message = x.m_message; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3& operator =( + Type3&& x) noexcept + { + + m_index = x.m_index; + m_message = std::move(x.m_message); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type3 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type3& x) const + { + return (m_index == x.m_index && + m_message == x.m_message); + } + + /*! + * @brief Comparison operator. + * @param x Type3 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type3& 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( + int32_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport int32_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport int32_t& index() + { + return m_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 eprosima::fastcdr::fixed_string<128>& _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( + eprosima::fastcdr::fixed_string<128>&& _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 eprosima::fastcdr::fixed_string<128>& message() const + { + return m_message; + } + + /*! + * @brief This function returns a reference to member message + * @return Reference to member message + */ + eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& message() + { + return m_message; + } + + + +private: + + int32_t m_index{0}; + eprosima::fastcdr::fixed_string<128> m_message; + }; #endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPES_HPP_ diff --git a/test/dds/xtypes/idl/XtypesTestsTypes.idl b/test/dds/xtypes/idl/XtypesTestsTypes.idl index 22307109b3b..2ad0b9e41c0 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypes.idl +++ b/test/dds/xtypes/idl/XtypesTestsTypes.idl @@ -1,5 +1,17 @@ -struct BasicStruct +struct Type1 { unsigned short index; string<128> message; }; + +struct Type2 +{ + short index; + string<128> message; +}; + +struct Type3 +{ + long index; + string<128> message; +}; \ No newline at end of file diff --git a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp index bc324bddde4..2efe45f6f58 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp @@ -24,8 +24,14 @@ #include "XtypesTestsTypes.hpp" -constexpr uint32_t BasicStruct_max_cdr_typesize {141UL}; -constexpr uint32_t BasicStruct_max_key_cdr_typesize {0UL}; +constexpr uint32_t Type2_max_cdr_typesize {141UL}; +constexpr uint32_t Type2_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type3_max_cdr_typesize {141UL}; +constexpr uint32_t Type3_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type1_max_cdr_typesize {141UL}; +constexpr uint32_t Type1_max_key_cdr_typesize {0UL}; namespace eprosima { @@ -36,7 +42,15 @@ class CdrSizeCalculator; eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, - const BasicStruct& data); + const Type1& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type2& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type3& data); } // namespace fastcdr diff --git a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp index f3c54b02d0b..5f50b27247a 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp @@ -37,7 +37,7 @@ namespace fastcdr { template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, - const BasicStruct& data, + const Type1& data, size_t& current_alignment) { static_cast(data); @@ -65,7 +65,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( template<> eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, - const BasicStruct& data) + const Type1& data) { eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, @@ -83,7 +83,7 @@ eProsima_user_DllExport void serialize( template<> eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, - BasicStruct& data) + Type1& data) { cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : @@ -111,7 +111,175 @@ eProsima_user_DllExport void deserialize( void serialize_key( eprosima::fastcdr::Cdr& scdr, - const BasicStruct& data) + const Type1& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type2& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.message(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type2& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(1) << data.message() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type2& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + case 1: + dcdr >> data.message(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type2& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type3& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.message(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type3& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(1) << data.message() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type3& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + case 1: + dcdr >> data.message(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type3& data) { static_cast(scdr); static_cast(data); diff --git a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx index a9e748e390f..602c8ff1214 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx @@ -31,24 +31,24 @@ using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; -BasicStructPubSubType::BasicStructPubSubType() +Type1PubSubType::Type1PubSubType() { - setName("BasicStruct"); + setName("Type1"); uint32_t type_size = #if FASTCDR_VERSION_MAJOR == 1 - static_cast(BasicStruct::getMaxCdrSerializedSize()); + static_cast(Type1::getMaxCdrSerializedSize()); #else - BasicStruct_max_cdr_typesize; + Type1_max_cdr_typesize; #endif type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ m_typeSize = type_size + 4; /*encapsulation*/ m_isGetKeyDefined = false; - uint32_t keyLength = BasicStruct_max_key_cdr_typesize > 16 ? BasicStruct_max_key_cdr_typesize : 16; + uint32_t keyLength = Type1_max_key_cdr_typesize > 16 ? Type1_max_key_cdr_typesize : 16; m_keyBuffer = reinterpret_cast(malloc(keyLength)); memset(m_keyBuffer, 0, keyLength); } -BasicStructPubSubType::~BasicStructPubSubType() +Type1PubSubType::~Type1PubSubType() { if (m_keyBuffer != nullptr) { @@ -56,12 +56,12 @@ BasicStructPubSubType::~BasicStructPubSubType() } } -bool BasicStructPubSubType::serialize( +bool Type1PubSubType::serialize( void* data, SerializedPayload_t* payload, DataRepresentationId_t data_representation) { - BasicStruct* p_type = static_cast(data); + Type1* p_type = static_cast(data); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); @@ -98,14 +98,14 @@ bool BasicStructPubSubType::serialize( return true; } -bool BasicStructPubSubType::deserialize( +bool Type1PubSubType::deserialize( SerializedPayload_t* payload, void* data) { try { // Convert DATA to pointer of your type - BasicStruct* p_type = static_cast(data); + Type1* p_type = static_cast(data); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); @@ -132,7 +132,7 @@ bool BasicStructPubSubType::deserialize( return true; } -std::function BasicStructPubSubType::getSerializedSizeProvider( +std::function Type1PubSubType::getSerializedSizeProvider( void* data, DataRepresentationId_t data_representation) { @@ -140,7 +140,7 @@ std::function BasicStructPubSubType::getSerializedSizeProvider( { #if FASTCDR_VERSION_MAJOR == 1 static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + 4u /*encapsulation*/; #else try @@ -150,7 +150,7 @@ std::function BasicStructPubSubType::getSerializedSizeProvider( eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); size_t current_alignment {0}; return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + + *static_cast(data), current_alignment)) + 4u /*encapsulation*/; } catch (eprosima::fastcdr::exception::Exception& /*exception*/) @@ -161,18 +161,18 @@ std::function BasicStructPubSubType::getSerializedSizeProvider( }; } -void* BasicStructPubSubType::createData() +void* Type1PubSubType::createData() { - return reinterpret_cast(new BasicStruct()); + return reinterpret_cast(new Type1()); } -void BasicStructPubSubType::deleteData( +void Type1PubSubType::deleteData( void* data) { - delete(reinterpret_cast(data)); + delete(reinterpret_cast(data)); } -bool BasicStructPubSubType::getKey( +bool Type1PubSubType::getKey( void* data, InstanceHandle_t* handle, bool force_md5) @@ -182,11 +182,11 @@ bool BasicStructPubSubType::getKey( return false; } - BasicStruct* p_type = static_cast(data); + Type1* p_type = static_cast(data); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), - BasicStruct_max_key_cdr_typesize); + Type1_max_key_cdr_typesize); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); @@ -195,7 +195,7 @@ bool BasicStructPubSubType::getKey( #else eprosima::fastcdr::serialize_key(ser, *p_type); #endif // FASTCDR_VERSION_MAJOR == 1 - if (force_md5 || BasicStruct_max_key_cdr_typesize > 16) + if (force_md5 || Type1_max_key_cdr_typesize > 16) { m_md5.init(); #if FASTCDR_VERSION_MAJOR == 1 @@ -219,7 +219,393 @@ bool BasicStructPubSubType::getKey( return true; } -void BasicStructPubSubType::register_type_object_representation() const +void Type1PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypes_type_objects(); +} + +Type2PubSubType::Type2PubSubType() +{ + setName("Type2"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type2::getMaxCdrSerializedSize()); +#else + Type2_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type2_max_key_cdr_typesize > 16 ? Type2_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type2PubSubType::~Type2PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type2PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type2* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type2PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type2* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type2PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type2PubSubType::createData() +{ + return reinterpret_cast(new Type2()); +} + +void Type2PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type2PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type2* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type2_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type2_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type2PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypes_type_objects(); +} + +Type3PubSubType::Type3PubSubType() +{ + setName("Type3"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type3::getMaxCdrSerializedSize()); +#else + Type3_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type3_max_key_cdr_typesize > 16 ? Type3_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type3PubSubType::~Type3PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type3PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type3* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type3PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type3* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type3PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type3PubSubType::createData() +{ + return reinterpret_cast(new Type3()); +} + +void Type3PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type3PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type3* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type3_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type3_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type3PubSubType::register_type_object_representation() const { register_XtypesTestsTypes_type_objects(); } diff --git a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h index 4bdac34c7ff..a3c1c00999e 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h +++ b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h @@ -39,18 +39,200 @@ /*! - * @brief This class represents the TopicDataType of the type BasicStruct defined by the user in the IDL file. + * @brief This class represents the TopicDataType of the type Type1 defined by the user in the IDL file. * @ingroup XtypesTestsTypes */ -class BasicStructPubSubType : public eprosima::fastdds::dds::TopicDataType +class Type1PubSubType : public eprosima::fastdds::dds::TopicDataType { public: - typedef BasicStruct type; + typedef Type1 type; - eProsima_user_DllExport BasicStructPubSubType(); + eProsima_user_DllExport Type1PubSubType(); - eProsima_user_DllExport ~BasicStructPubSubType() override; + eProsima_user_DllExport ~Type1PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type2 defined by the user in the IDL file. + * @ingroup XtypesTestsTypes + */ +class Type2PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type2 type; + + eProsima_user_DllExport Type2PubSubType(); + + eProsima_user_DllExport ~Type2PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type3 defined by the user in the IDL file. + * @ingroup XtypesTestsTypes + */ +class Type3PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type3 type; + + eProsima_user_DllExport Type3PubSubType(); + + eProsima_user_DllExport ~Type3PubSubType() override; eProsima_user_DllExport bool serialize( void* data, diff --git a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx index 093931f8a8d..5ebee64403e 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx @@ -43,31 +43,429 @@ void register_XtypesTestsTypes_type_objects() static std::once_flag once_flag; std::call_once(once_flag, []() { - register_BasicStruct_type_identifier(); + register_Type1_type_identifier(); + + register_Type2_type_identifier(); + + register_Type3_type_identifier(); }); } -void register_BasicStruct_type_identifier() +void register_Type1_type_identifier() +{ + { + StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type1; + TypeIdentifierPair type_ids_Type1; + QualifiedTypeName type_name_Type1 = "Type1"; + eprosima::fastcdr::optional type_ann_builtin_Type1; + eprosima::fastcdr::optional ann_custom_Type1; + CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); + CompleteStructHeader header_Type1; + header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); + CompleteStructMemberSeq member_seq_Type1; + { + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type1); + + if (return_code_Type1 != 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.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_Type1.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); + } + { + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_128", type_ids_Type1); + + if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + { + std::string type_id_kind_anonymous_string_128("TI_STRING8_SMALL"); + if (type_id_kind_anonymous_string_128 == "TI_STRING8_SMALL") + { + SBound bound = static_cast(128); + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_128")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); + } + } + else if (type_id_kind_anonymous_string_128 == "TI_STRING8_LARGE") + { + LBound bound = 128; + 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_128")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128: Unknown String kind."); + return; + } + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_128", type_ids_Type1); + if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128: 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type1.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type1.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_Type1.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Type1); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_message); + } + CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_Type1); + if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type2_type_identifier() +{ + { + StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type2; + TypeIdentifierPair type_ids_Type2; + QualifiedTypeName type_name_Type2 = "Type2"; + eprosima::fastcdr::optional type_ann_builtin_Type2; + eprosima::fastcdr::optional ann_custom_Type2; + CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); + CompleteStructHeader header_Type2; + header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); + CompleteStructMemberSeq member_seq_Type2; + { + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_Type2); + + if (return_code_Type2 != 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.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_Type2.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); + } + { + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_128", type_ids_Type2); + + if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + { + std::string type_id_kind_anonymous_string_128("TI_STRING8_SMALL"); + if (type_id_kind_anonymous_string_128 == "TI_STRING8_SMALL") + { + SBound bound = static_cast(128); + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_128")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); + } + } + else if (type_id_kind_anonymous_string_128 == "TI_STRING8_LARGE") + { + LBound bound = 128; + 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_128")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128: Unknown String kind."); + return; + } + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_128", type_ids_Type2); + if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_128: 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type2.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_Type2.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Type2); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_message); + } + CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_Type2); + if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type3_type_identifier() { { - StructTypeFlag struct_flags_BasicStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - ReturnCode_t return_code_BasicStruct; - TypeIdentifierPair type_ids_BasicStruct; - QualifiedTypeName type_name_BasicStruct = "BasicStruct"; - eprosima::fastcdr::optional type_ann_builtin_BasicStruct; - eprosima::fastcdr::optional ann_custom_BasicStruct; - CompleteTypeDetail detail_BasicStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BasicStruct, ann_custom_BasicStruct, type_name_BasicStruct.to_string()); - CompleteStructHeader header_BasicStruct; - header_BasicStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BasicStruct); - CompleteStructMemberSeq member_seq_BasicStruct; + ReturnCode_t return_code_Type3; + TypeIdentifierPair type_ids_Type3; + QualifiedTypeName type_name_Type3 = "Type3"; + eprosima::fastcdr::optional type_ann_builtin_Type3; + eprosima::fastcdr::optional ann_custom_Type3; + CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); + CompleteStructHeader header_Type3; + header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); + CompleteStructMemberSeq member_seq_Type3; { - return_code_BasicStruct = + return_code_Type3 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_BasicStruct); + "_int32_t", type_ids_Type3); - if (return_code_BasicStruct != eprosima::fastdds::dds::RETCODE_OK) + if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); @@ -77,41 +475,41 @@ void register_BasicStruct_type_identifier() false, false, false, false); CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_BasicStruct.type_identifier1()._d() || TK_NONE == type_ids_BasicStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BasicStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BasicStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BasicStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BasicStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_BasicStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BasicStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BasicStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BasicStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BasicStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BasicStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_BasicStruct.type_identifier2()); + if (EK_COMPLETE == type_ids_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier2()); } else { @@ -121,17 +519,17 @@ void register_BasicStruct_type_identifier() } MemberName name_index = "index"; eprosima::fastcdr::optional member_ann_builtin_index; - ann_custom_BasicStruct.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_BasicStruct); + ann_custom_Type3.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_BasicStruct, member_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); } { - return_code_BasicStruct = + return_code_Type3 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_BasicStruct); + "anonymous_string_128", type_ids_Type3); - if (return_code_BasicStruct != eprosima::fastdds::dds::RETCODE_OK) + if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) { std::string type_id_kind_anonymous_string_128("TI_STRING8_SMALL"); if (type_id_kind_anonymous_string_128 == "TI_STRING8_SMALL") @@ -164,10 +562,10 @@ void register_BasicStruct_type_identifier() "anonymous_string_128: Unknown String kind."); return; } - return_code_BasicStruct = + return_code_Type3 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_BasicStruct); - if (return_code_BasicStruct != eprosima::fastdds::dds::RETCODE_OK) + "anonymous_string_128", type_ids_Type3); + if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_128: Given String TypeIdentifier unknown to TypeObjectRegistry."); @@ -178,41 +576,41 @@ void register_BasicStruct_type_identifier() false, false, false, false); CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_BasicStruct.type_identifier1()._d() || TK_NONE == type_ids_BasicStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BasicStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BasicStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BasicStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BasicStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_BasicStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BasicStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BasicStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BasicStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BasicStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BasicStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_BasicStruct.type_identifier2()); + if (EK_COMPLETE == type_ids_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type3.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type3.type_identifier2()); } else { @@ -222,25 +620,25 @@ void register_BasicStruct_type_identifier() } MemberName name_message = "message"; eprosima::fastcdr::optional member_ann_builtin_message; - ann_custom_BasicStruct.reset(); - CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_BasicStruct); + ann_custom_Type3.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Type3); CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); - TypeObjectUtils::add_complete_struct_member(member_seq_BasicStruct, member_message); + TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_message); } - CompleteStructType struct_type_BasicStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_BasicStruct, header_BasicStruct, member_seq_BasicStruct); + CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BasicStruct, type_name_BasicStruct.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BasicStruct already registered in TypeObjectRegistry for a different type."); + "Type3 already registered in TypeObjectRegistry for a different type."); } - return_code_BasicStruct = + return_code_Type3 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BasicStruct", type_ids_BasicStruct); - if (return_code_BasicStruct != eprosima::fastdds::dds::RETCODE_OK) + "Type3", type_ids_Type3); + if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BasicStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); return; } } diff --git a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp index 2233bb43099..387da0e1505 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp @@ -41,12 +41,26 @@ eProsima_user_DllExport void register_XtypesTestsTypes_type_objects(); #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** - * @brief Register BasicStruct related TypeIdentifier. + * @brief Register Type1 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_BasicStruct_type_identifier(); +eProsima_user_DllExport void register_Type1_type_identifier(); +/** + * @brief Register Type2 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_Type2_type_identifier(); +/** + * @brief Register Type3 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_Type3_type_identifier(); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds/xtypes/simple_communication.json b/test/dds/xtypes/simple_communication.json index bcf1feb5e0c..22f924ecc38 100644 --- a/test/dds/xtypes/simple_communication.json +++ b/test/dds/xtypes/simple_communication.json @@ -2,10 +2,25 @@ "description": "Simple test to communicate a publisher and a subscriber with default values", "participants": [ { - "kind": "subscriber" + "kind": "subscriber", + "known_types": [ + "Type1", + "Type2" + ] }, { - "kind": "publisher" + "kind": "publisher", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "known_types": [ + "Type1", + "Type2" + ] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index d28e0c13a71..279a94f9248 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -1,28 +1,11 @@ -"""Execute a DDS communictaion test following a json definition file.""" -# Copyright 2021 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. - -import glob +import shutil import json import logging import os import subprocess import sys -import time script_dir = os.path.dirname(os.path.realpath(__file__)) -seed = str(os.getpid()) def read_json(file_name): @@ -33,125 +16,79 @@ def read_json(file_name): return structure_dic -def test_definition(file_name): - """Return a list with each test process defined in dictionary.""" +def participants_definition(file_name): + """Return a list with each participant defined in dictionary.""" return read_json(file_name)['participants'] -def define_args(tests_definition): - """Use list dictionary to get commands args for each test process.""" - sub_args = [] - pub_args = [] +def define_args(participant): + """Use dictionary to get command args for each participant.""" + args = [participant['kind'].lower()] - for test in tests_definition: - - if 'kind' not in test.keys(): - print('ARGUMENT ERROR : ' - 'Test definition requites field for each participant') - continue - - if test['kind'] == 'publisher': - pub_args.append(['publisher']) - - elif test['kind'] == 'subscriber': - sub_args.append(['subscriber']) + if 'known_types' in participant and isinstance(participant['known_types'], list): + args.extend(participant['known_types']) + else: + print(f'ARGUMENT ERROR: For {participant["kind"]}s, should be a list of types') - else: - print('ARGUMENT ERROR : ' - ' field can be publisher/subscriber') + return args - return pub_args, sub_args +def find_executable(executable_name): + """Find the full path of an executable file by name.""" + executable_path = shutil.which(executable_name) + if not executable_path or not os.path.isfile(executable_path) or not os.access(executable_path, os.X_OK): + # Try looking in the current working directory + executable_path = os.path.join(os.getcwd(), executable_name) + if not os.path.isfile(executable_path) or not os.access(executable_path, os.X_OK): + return None + return executable_path -def define_commands(pub_args, sub_args): - """Create commands for each test addind executable to args.""" - files = glob.glob( - os.path.join( - script_dir, - '**/DDSXtypesCommunication*'), - recursive=True) - pf = iter(files) - command = next(pf, None) - while command and \ - (not os.path.isfile(command) - or not os.access(command, - os.X_OK)): - command = next(pf, None) - - # Add executable to each command - return ( - [[command] + args for args in pub_args], - [[command] + args for args in sub_args] - ) +def define_commands(participants): + """Create commands for each participant adding executable to args.""" + executable_path = find_executable('DDSXtypesCommunication') + if not executable_path: + print("ERROR: Executable 'DDSXtypesCommunication' not found in the system PATH or is not executable.") + sys.exit(1) + commands = [[executable_path] + define_args(participant) for participant in participants] -def execute_command(command): - """Execute command.""" - return subprocess.Popen(command) + return commands -def execute_commands(pub_commands, sub_commands, logger): +def execute_commands(commands, logger): """Get test definitions in command lists and execute each process.""" - pubs_proc = [] - subs_proc = [] - - for subscriber_command in sub_commands: - logger.info(f'Executing subcriber: {subscriber_command}') - subs_proc.append(execute_command(subscriber_command)) + processes = [] - for publisher_command in pub_commands: - logger.info(f'Executing publisher: {publisher_command}') - pubs_proc.append(execute_command(publisher_command)) + for command in commands: + logger.info(f'Executing: {command}') + processes.append(subprocess.Popen(command)) ret_value = 0 - for proc in subs_proc: + for proc in processes: proc.communicate() - ret_value = ret_value + proc.returncode - - for proc in pubs_proc: - proc.kill() + ret_value += proc.returncode return ret_value if __name__ == '__main__': - logger = logging.getLogger('DDS COMMUNICATION TEST') + logger = logging.getLogger('XTYPES COMMUNICATION TEST') logger.setLevel(logging.INFO) - logger.error("TEST RUNNING") - args = sys.argv[1:] if len(args) != 1: - logger.error('ARGUMENTS ERROR : 1 argument required: ' - 'path to .json file with test definition') + logger.error('ARGUMENTS ERROR : 1 argument required: path to .json file with test definition') sys.exit(1) - logger.error("test_definition") - test_definitions = test_definition(args[0]) - - logger.error(test_definitions) - - logger.error("define_args") - pub_args, sub_args = define_args(test_definitions) - - logger.error(pub_args) - logger.error(sub_args) - - logger.error("define_commands") - pub_commands, sub_commands = define_commands(pub_args, sub_args) + participants = participants_definition(args[0]) - logger.error(pub_commands) - logger.error(sub_commands) + commands = define_commands(participants) - logger.error("execute_commands") - test_value = execute_commands( - pub_commands, - sub_commands, - logger) + test_value = execute_commands(commands, logger) logger.error(test_value) From 053d80f30ca58b5fd7ce866ff79a757bae9f8028 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Sun, 14 Jan 2024 14:02:47 +0100 Subject: [PATCH 03/45] Refs #20165: Renamed discovery methods. Improved typelookup tests. Signed-off-by: adriancampo --- test/dds/xtypes/TypeLookupPublisher.cpp | 170 ++++++++++++++-------- test/dds/xtypes/TypeLookupPublisher.h | 40 +++-- test/dds/xtypes/TypeLookupSubscriber.cpp | 148 ++++++++++--------- test/dds/xtypes/TypeLookupSubscriber.h | 36 +++-- test/dds/xtypes/TypeLookup_main.cpp | 139 +++++++++++------- test/dds/xtypes/simple_communication.json | 21 ++- test/dds/xtypes/test_build.py | 13 +- 7 files changed, 345 insertions(+), 222 deletions(-) diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupPublisher.cpp index 975187f8f71..6220d7e0c00 100644 --- a/test/dds/xtypes/TypeLookupPublisher.cpp +++ b/test/dds/xtypes/TypeLookupPublisher.cpp @@ -37,7 +37,8 @@ using namespace eprosima::fastdds::dds; using namespace eprosima::fastrtps::rtps; -static int DOMAIN_ID_ = 10; +static int PUB_DOMAIN_ID_ = 10; +static int PUB_MAX_TIMEOUT_ = 10; TypeLookupPublisher::~TypeLookupPublisher() { @@ -58,7 +59,7 @@ bool TypeLookupPublisher::init( std::vector known_types) { participant_ = DomainParticipantFactory::get_instance() - ->create_participant(DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this); + ->create_participant(PUB_DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this); if (participant_ == nullptr) { std::cout << "ERROR create_participant" << std::endl; @@ -67,43 +68,43 @@ bool TypeLookupPublisher::init( for (const auto& type : known_types) { - if (type == "Type1") - { - if (!create_known_type(type)) - { - std::cout << "ERROR create_known_type: " << type << std::endl; - return false; - } - } - else if (type == "Type2") - { - if (!create_known_type(type)) - { - std::cout << "ERROR create_known_type: " << type << std::endl; - return false; - } - } - else if (type == "Type3") - { - if (!create_known_type(type)) - { - std::cout << "ERROR create_known_type: " << type << std::endl; - return false; - } - } - else - { - std::cout << "ERROR TypeLookupPublisher::init uknown type: " << type << std::endl; - return false; - } + create_known_type(type, true); } return true; } -template bool TypeLookupPublisher::create_known_type( - const std::string& type) + const std::string& type, + bool register_type) +{ + bool type_created = false; + + if (type == "Type1") + { + type_created = create_known_type_impl(type, register_type); + } + else if (type == "Type2") + { + type_created = create_known_type_impl(type, register_type); + } + else if (type == "Type3") + { + type_created = create_known_type_impl(type, register_type); + } + else + { + std::cout << "ERROR TypeLookupPublisher::init uknown type: " << type << std::endl; + } + + return type_created; +} + +template +bool TypeLookupPublisher::create_known_type_impl( + const std::string& type, + bool register_type) { + std::lock_guard lock(known_types_mutex_); // Check if the type is already created if (known_types_.find(type) != known_types_.end()) { @@ -115,7 +116,11 @@ bool TypeLookupPublisher::create_known_type( PubKnownType a_type; a_type.obj_ = new Type(); a_type.type_.reset(new TypePubSubType()); - a_type.type_.register_type(participant_); + + if (register_type) + { + a_type.type_.register_type(participant_); + } // CREATE THE PUBLISHER a_type.publisher_ = participant_->create_publisher(PUBLISHER_QOS_DEFAULT, this); @@ -127,7 +132,7 @@ bool TypeLookupPublisher::create_known_type( // CREATE THE TOPIC std::ostringstream topic_name; - topic_name << type << "_" << asio::ip::host_name() << "_" << DOMAIN_ID_; + topic_name << type << "_" << asio::ip::host_name() << "_" << PUB_DOMAIN_ID_; a_type.topic_ = participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); if (a_type.topic_ == nullptr) { @@ -145,50 +150,78 @@ bool TypeLookupPublisher::create_known_type( } // CREATE CALLBACK - a_type.callback_ = [](void* data, int current_sample) + a_type.callback_ = [type](void* data, int current_sample) { Type* typed_data = static_cast(data); typed_data->index(current_sample); - typed_data->message("Message" + std::to_string(current_sample)); + typed_data->message("Message " + type + ": " + std::to_string(current_sample)); }; known_types_.emplace(type, a_type); return true; } -void TypeLookupPublisher::wait_discovery( - uint32_t how_many) +bool TypeLookupPublisher::wait_discovery( + uint32_t expected_match, + uint32_t timeout) { std::unique_lock lock(mutex_); - cv_.wait(lock, [&] - { - return matched_ >= how_many; - }); + bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() + { + return matched_ == expected_match; + }); + return result; } -void TypeLookupPublisher::run( +bool TypeLookupPublisher::run( uint32_t samples) { - uint32_t current_sample = 0; - void* sample = nullptr; + expected_samples_ = samples; - while (samples > current_sample) - { - for (auto it = known_types_.begin(); it != known_types_.end(); ++it) - { - sample = it->second.type_.create_data(); + bool returned_value = false; + std::unique_lock lock(mutex_); + returned_value = cv_.wait_for(lock, std::chrono::seconds(PUB_MAX_TIMEOUT_), [&] + { + uint32_t current_sample = 0; + void* sample = nullptr; + + while (expected_samples_ > current_sample) + { + for (auto it = known_types_.begin(); it != known_types_.end(); ++it) + { + sample = it->second.type_.create_data(); + + it->second.callback_(sample, current_sample); - it->second.callback_(sample, current_sample); + std::cout << "Publisher " << it->second.type_.get_type_name() << + " writting sample: " << current_sample << std::endl; + it->second.writer_->write(sample); + it->second.type_.delete_data(sample); - std::cout << "Publisher " << it->second.type_.get_type_name() << - " writting sample: " << current_sample << std::endl; - it->second.writer_->write(sample); - it->second.type_.delete_data(sample); + ++sent_samples_[it->second.writer_->guid()]; - std::this_thread::sleep_for(std::chrono::milliseconds(250)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + ++current_sample; + } + return true; + }); + + if (known_types_.size() != sent_samples_.size()) + { + std::cout << "ERROR: known_types_.size() != sent_samples_.size()" << std::endl; + returned_value = false; + } + + for (auto& sent_sample : sent_samples_) + { + if (expected_samples_ != sent_sample.second ) + { + returned_value = false; + break; } - ++current_sample; } + return returned_value; } void TypeLookupPublisher::on_publication_matched( @@ -198,12 +231,12 @@ void TypeLookupPublisher::on_publication_matched( std::unique_lock lock(mutex_); if (info.current_count_change == 1) { - matched_ = info.total_count; + ++matched_; std::cout << "(TypeLookupPublisher) matched." << std::endl; } else if (info.current_count_change == -1) { - matched_ = info.total_count; + --matched_; std::cout << "(TypeLookupPublisher) unmatched." << std::endl; } else @@ -212,4 +245,21 @@ void TypeLookupPublisher::on_publication_matched( << " is not a valid value for PublicationMatchedStatus current count change" << std::endl; } cv_.notify_all(); +} + +void TypeLookupPublisher::on_data_reader_discovery( + eprosima::fastdds::dds::DomainParticipant* /*participant*/, + eprosima::fastrtps::rtps::ReaderDiscoveryInfo&& info) +{ + // xtypes::TypeIdentifier type_id; + // type_id = info.info.type_information().type_information.complete().typeid_with_size().type_id(); + // xtypes::TypeObject type_obj; + + // auto ret_code = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() + // .get_type_object(type_id, type_obj); + + // std::cout << "TypeLookupPublisher::on_data_reader_discovery:" << + // info.info.typeName() << " result: " << ret_code << std::endl; + + create_known_type(info.info.typeName().to_string(), false); } \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupPublisher.h index d49ff736754..e330e738ba1 100644 --- a/test/dds/xtypes/TypeLookupPublisher.h +++ b/test/dds/xtypes/TypeLookupPublisher.h @@ -17,8 +17,8 @@ * */ -#ifndef _TEST_PUBLISHER_H_ -#define _TEST_PUBLISHER_H_ +#ifndef _TYPELOOKUPTEST_PUBLISHER_H_ +#define _TYPELOOKUPTEST_PUBLISHER_H_ #include #include @@ -27,9 +27,6 @@ #include "idl/XtypesTestsTypesPubSubTypes.h" -// #include -// #include - #include #include @@ -37,8 +34,6 @@ namespace eprosima { namespace fastdds { namespace dds { - - struct PubKnownType { TypeSupport type_; @@ -65,28 +60,45 @@ class TypeLookupPublisher bool init( std::vector known_types); - template bool create_known_type( - const std::string& type); + const std::string& type, + bool register_type); + + template + bool create_known_type_impl( + const std::string& type, + bool register_type); - void wait_discovery( - uint32_t how_many); + bool wait_discovery( + uint32_t expected_match, + uint32_t timeout); - void run( + bool run( uint32_t samples); + bool run_for( + const std::chrono::seconds& timeout); + void on_publication_matched( DataWriter* /*publisher*/, const PublicationMatchedStatus& info) override; + void on_data_reader_discovery( + eprosima::fastdds::dds::DomainParticipant* participant, + eprosima::fastrtps::rtps::ReaderDiscoveryInfo&& info) override; + private: std::mutex mutex_; std::condition_variable cv_; unsigned int matched_ = 0; - bool run_ = true; + + uint32_t expected_samples_ = 0; + std::map sent_samples_; + DomainParticipant* participant_ = nullptr; + std::mutex known_types_mutex_; std::map known_types_; }; @@ -94,4 +106,4 @@ class TypeLookupPublisher } // fastdds } // eprosima -#endif /* _TEST_PUBLISHER_H_ */ \ No newline at end of file +#endif /* _TYPELOOKUPTEST_PUBLISHER_H_ */ \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupSubscriber.cpp index 97e27515314..ab5e207790e 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupSubscriber.cpp @@ -35,7 +35,8 @@ using namespace eprosima::fastdds::dds; using namespace eprosima::fastrtps::rtps; -static int DOMAIN_ID_ = 10; +static int SUB_DOMAIN_ID_ = 10; +static int SUB_MAX_TIMEOUT_ = 10; TypeLookupSubscriber::~TypeLookupSubscriber() { @@ -60,52 +61,53 @@ bool TypeLookupSubscriber::init( << StatusMask::liveliness_changed(); participant_ = DomainParticipantFactory::get_instance() - ->create_participant(DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this, mask); + ->create_participant(SUB_DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this, mask); if (participant_ == nullptr) { std::cout << "ERROR create_participant" << std::endl; return false; } - for (const auto& type : known_types) { - if (type == "Type1") - { - if (!create_known_type(type)) - { - std::cout << "ERROR create_known_type: " << type << std::endl; - return false; - } - } - else if (type == "Type2") - { - if (!create_known_type(type)) - { - std::cout << "ERROR create_known_type: " << type << std::endl; - return false; - } - } - else if (type == "Type3") - { - if (!create_known_type(type)) - { - std::cout << "ERROR create_known_type: " << type << std::endl; - return false; - } - } - else - { - std::cout << "ERROR TypeLookupSubscriber::init uknown type: " << type << std::endl; - return false; - } + + create_known_type(type, true); + } return true; } -template bool TypeLookupSubscriber::create_known_type( - const std::string& type) + const std::string& type, + bool register_type) +{ + bool type_created = false; + + if (type == "Type1") + { + type_created = create_known_type_impl(type, register_type); + } + else if (type == "Type2") + { + type_created = create_known_type_impl(type, register_type); + } + else if (type == "Type3") + { + type_created = create_known_type_impl(type, register_type); + } + else + { + std::cout << "ERROR TypeLookupSubscriber::init uknown type: " << type << std::endl; + } + + return type_created; +} + +template +bool TypeLookupSubscriber::create_known_type_impl( + const std::string& type, + bool register_type) { + std::lock_guard lock(known_types_mutex_); // Check if the type is already created if (known_types_.find(type) != known_types_.end()) { @@ -116,7 +118,11 @@ bool TypeLookupSubscriber::create_known_type( SubKnownType a_type; a_type.obj_ = new Type(); a_type.type_.reset(new TypePubSubType()); - a_type.type_.register_type(participant_); + + if (register_type) + { + a_type.type_.register_type(participant_); + } //CREATE THE SUBSCRIBER a_type.subscriber_ = participant_->create_subscriber(SUBSCRIBER_QOS_DEFAULT, nullptr); @@ -128,7 +134,7 @@ bool TypeLookupSubscriber::create_known_type( //CREATE THE TOPIC std::ostringstream topic_name; - topic_name << type << "_" << asio::ip::host_name() << "_" << DOMAIN_ID_; + topic_name << type << "_" << asio::ip::host_name() << "_" << SUB_DOMAIN_ID_; a_type.topic_ = participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); if (a_type.topic_ == nullptr) { @@ -156,47 +162,44 @@ bool TypeLookupSubscriber::create_known_type( return true; } -bool TypeLookupSubscriber::run( - int seconds) +bool TypeLookupSubscriber::wait_discovery( + uint32_t expected_match, + uint32_t timeout) { - return run_for(std::chrono::seconds(seconds)); + + std::unique_lock lock(mutex_); + bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() + { + return matched_ == expected_match; + }); + + return result; } -bool TypeLookupSubscriber::run_for( - const std::chrono::milliseconds& timeout) +bool TypeLookupSubscriber::run( + uint32_t samples) { + expected_samples_ = samples; bool returned_value = false; std::unique_lock lock(mutex_); - returned_value = cv_.wait_for(lock, timeout, [&] + returned_value = cv_.wait_for(lock, std::chrono::seconds(SUB_MAX_TIMEOUT_), [&] { - if (known_types_.size() < number_samples_.size()) - { - // Will fail later. - return true; - } - else if (known_types_.size() > number_samples_.size()) + for (auto& received_sample_ : received_samples_) { - return false; - } - - for (auto& number_samples : number_samples_) - { - if (max_number_samples_ > number_samples.second) + if (expected_samples_ != received_sample_.second) { return false; } } - return true; }); - if (known_types_.size() < number_samples_.size()) + if (known_types_.size() != received_samples_.size()) { - std::cout << "ERROR: detected more than " << known_types_.size() << " publishers" << std::endl; + std::cout << "ERROR: known_types_.size() != received_samples_.size()" << std::endl; returned_value = false; } - return returned_value; } @@ -206,12 +209,12 @@ void TypeLookupSubscriber::on_subscription_matched( { if (info.current_count_change == 1) { - matched_ = info.total_count; + ++matched_; std::cout << "(TypeLookupSubscriber) matched." << std::endl; } else if (info.current_count_change == -1) { - matched_ = info.total_count; + --matched_; std::cout << "(TypeLookupSubscriber) unmatched." << std::endl; } else @@ -231,17 +234,30 @@ void TypeLookupSubscriber::on_data_available( { if (info.instance_state == ALIVE_INSTANCE_STATE) { - std::cout << "Subscriber " << reader->type().get_type_name() << " received sample: " << info.sample_identity.sequence_number() << " -> "; - // Call the callback function to process the received data known_types_[reader->type().get_type_name()].callback_(sample_data); - if (max_number_samples_ <= ++number_samples_[info.sample_identity.writer_guid()]) - { - cv_.notify_all(); - } + ++received_samples_[info.sample_identity.writer_guid()]; + cv_.notify_all(); } } +} + +void TypeLookupSubscriber::on_data_writer_discovery( + eprosima::fastdds::dds::DomainParticipant* /*participant*/, + eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info) +{ + // xtypes::TypeIdentifier type_id; + // type_id = info.info.type_information().type_information.complete().typeid_with_size().type_id(); + // xtypes::TypeObject type_obj; + + // auto ret_code = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() + // .get_type_object(type_id, type_obj); + + // std::cout << "TypeLookupSubscriber::on_data_reader_discovery:" << + // info.info.typeName() << " result: " << ret_code << std::endl; + + create_known_type(info.info.typeName().to_string(), false); } \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupSubscriber.h index a8a52f92ff0..8393cd63a5f 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.h +++ b/test/dds/xtypes/TypeLookupSubscriber.h @@ -17,8 +17,8 @@ * */ -#ifndef _TEST_SUBSCRIBER_H_ -#define _TEST_SUBSCRIBER_H_ +#ifndef _TYPELOOKUPTEST_SUBSCRIBER_H_ +#define _TYPELOOKUPTEST_SUBSCRIBER_H_ #include #include @@ -37,7 +37,6 @@ namespace eprosima { namespace fastdds { namespace dds { - struct SubKnownType { TypeSupport type_; @@ -64,15 +63,24 @@ class TypeLookupSubscriber bool init( std::vector known_types); - template bool create_known_type( - const std::string& type); + const std::string& type, + bool register_type); + + template + bool create_known_type_impl( + const std::string& type, + bool register_type); + + bool wait_discovery( + uint32_t expected_match, + uint32_t timeout); bool run( - int seconds); + uint32_t samples); bool run_for( - const std::chrono::milliseconds& timeout); + const std::chrono::seconds& timeout); void on_subscription_matched( DataReader* /*reader*/, @@ -81,16 +89,22 @@ class TypeLookupSubscriber void on_data_available( DataReader* reader) override; + void on_data_writer_discovery( + eprosima::fastdds::dds::DomainParticipant* participant, + eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info) override; + private: std::mutex mutex_; std::condition_variable cv_; unsigned int matched_ = 0; - const uint32_t max_number_samples_ = 10; - std::map number_samples_; - bool run_ = true; + + uint32_t expected_samples_ = 0; + std::map received_samples_; + DomainParticipant* participant_ = nullptr; + std::mutex known_types_mutex_; std::map known_types_; }; @@ -99,4 +113,4 @@ class TypeLookupSubscriber } // eprosima -#endif /* _TEST_SUBSCRIBER_H_ */ \ No newline at end of file +#endif /* _TYPELOOKUPTEST_SUBSCRIBER_H_ */ \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookup_main.cpp b/test/dds/xtypes/TypeLookup_main.cpp index ebe4421734b..1cfb10f9cd7 100644 --- a/test/dds/xtypes/TypeLookup_main.cpp +++ b/test/dds/xtypes/TypeLookup_main.cpp @@ -20,87 +20,116 @@ #include "TypeLookupPublisher.h" #include "TypeLookupSubscriber.h" -#include - -#include #include -#include -#include -#include - +#include +#include +#include using namespace eprosima::fastrtps; -int main( +struct CommandLineArgs +{ + int kind; + int samples; + int timeout; + int expected_types; + std::vector known_types; +}; + +CommandLineArgs parse_args( int argc, char** argv) { - // Seed for random number generation - std::random_device rd; - std::mt19937 gen(rd()); - std::uniform_int_distribution<> distr(1, 10); - int randomSeconds = distr(gen); - // Sleep for the random duration - std::this_thread::sleep_for(std::chrono::seconds(randomSeconds)); + CommandLineArgs args = {0, 0, 0, 0, {}}; - std::cout << "Starting " << randomSeconds << std::endl; - // Print all command-line arguments - std::cout << "Command-line arguments:" << std::endl; - for (int i = 0; i < argc; ++i) + for (int i = 1; i < argc; ++i) { - std::cout << "argv[" << i << "]: " << argv[i] << std::endl; - } + std::string arg = argv[i]; + std::stringstream ss(arg); - int type = 0; - std::vector known_types; + std::string key, value; + std::getline(ss, key, '='); + std::getline(ss, value, '='); - if (argc > 1) - { - if (strcmp(argv[1], "publisher") == 0) + if (key == "kind") { - type = 1; + if (value == "publisher") + { + args.kind = 1; + } + else if (value == "subscriber") + { + args.kind = 2; + } } - else if (strcmp(argv[1], "subscriber") == 0) + else if (key == "samples") { - type = 2; + args.samples = std::stoi(value); } - - for (int i = 2; i < argc; ++i) + else if (key == "timeout") + { + args.timeout = std::stoi(value); + } + else if (key == "expected_types") + { + args.expected_types = std::stoi(value); + } + else if (key == "known_types") { - known_types.push_back(argv[i]); + std::replace(value.begin(), value.end(), ',', ' '); + std::stringstream types_ss(value); + std::string type; + while (types_ss >> type) + { + args.known_types.push_back(type); + } } } - else + + return args; +} + +int main( + int argc, + char** argv) +{ + // Print all command-line arguments + std::cout << "Command-line arguments:" << std::endl; + for (int i = 0; i < argc; ++i) { - std::cout << "publisher OR subscriber argument needed" << std::endl; - Log::Reset(); - return 0; + std::cout << "argv[" << i << "]: " << argv[i] << std::endl; } - switch (type) + CommandLineArgs args = parse_args(argc, argv); + + if (args.kind == 0 || args.samples == 0 || args.timeout == 0 || + args.expected_types == 0 || args.known_types.empty()) { - case 1: - { + std::cout << "Invalid command-line arguments. Usage: " << + "./DDSXtypesCommunication " << + "kind= " << + "samples= " << + "expected_types= " << + "timeout= " << + "known_types=" << std::endl; + return -1; + } + + switch (args.kind){ + case 1: { eprosima::fastdds::dds::TypeLookupPublisher pub; - if (pub.init(known_types)) - { - pub.wait_discovery(1); - pub.run(10); - } - break; + return (pub.init(args.known_types) && + pub.wait_discovery(args.expected_types, args.timeout) && + pub.run(args.samples)) ? 0 : -1; } - case 2: - { + case 2: { eprosima::fastdds::dds::TypeLookupSubscriber sub; - if (sub.init(known_types)) - { - sub.run(30); - } - break; + return (sub.init(args.known_types) && + sub.wait_discovery(args.expected_types, args.timeout) && + sub.run(args.samples)) ? 0 : -1; } default: - std::cout << "publisher OR subscriber argument needed" << std::endl; + std::cout << "Invalid participant type. Use 'publisher' or 'subscriber'." << std::endl; + return -1; } - Log::Reset(); - return 0; } diff --git a/test/dds/xtypes/simple_communication.json b/test/dds/xtypes/simple_communication.json index 22f924ecc38..60c90ca5618 100644 --- a/test/dds/xtypes/simple_communication.json +++ b/test/dds/xtypes/simple_communication.json @@ -1,25 +1,22 @@ { - "description": "Simple test to communicate a publisher and a subscriber with default values", + "description": "Simple test to communicate a publisher and a subscriber starting with the same known type.", "participants": [ { "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "1", "known_types": [ - "Type1", - "Type2" + "Type1" ] }, { "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "1", "known_types": [ - "Type1", - "Type2" - ] - }, - { - "kind": "publisher", - "known_types": [ - "Type1", - "Type2" + "Type1" ] } ] diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 279a94f9248..3223110ec09 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -1,9 +1,10 @@ -import shutil import json import logging import os +import shutil import subprocess import sys +import time script_dir = os.path.dirname(os.path.realpath(__file__)) @@ -23,16 +24,19 @@ def participants_definition(file_name): def define_args(participant): """Use dictionary to get command args for each participant.""" - args = [participant['kind'].lower()] + args = [] + args.extend([f"kind={participant.get('kind')}"]) + args.extend([f"samples={participant.get('samples', 10)}"]) + args.extend([f"timeout={participant.get('timeout', 10)}"]) + args.extend([f"expected_types={participant.get('expected_types', 1)}"]) if 'known_types' in participant and isinstance(participant['known_types'], list): - args.extend(participant['known_types']) + args.append(f'known_types={",".join(participant["known_types"])}') else: print(f'ARGUMENT ERROR: For {participant["kind"]}s, should be a list of types') return args - def find_executable(executable_name): """Find the full path of an executable file by name.""" executable_path = shutil.which(executable_name) @@ -63,6 +67,7 @@ def execute_commands(commands, logger): for command in commands: logger.info(f'Executing: {command}') processes.append(subprocess.Popen(command)) + time.sleep(0.25) # Delay for consistency ret_value = 0 From 730a90d70448f338445a6d19108af41a732d6f54 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Tue, 16 Jan 2024 08:48:51 +0100 Subject: [PATCH 04/45] Refs #20165: Added check_registered_type. Created idl file for each type. Signed-off-by: adriancampo --- test/dds/xtypes/CMakeLists.txt | 32 +- .../{simple_communication.json => Case1.json} | 2 +- test/dds/xtypes/Case10.json | 34 + test/dds/xtypes/Case11.json | 24 + test/dds/xtypes/Case12.json | 24 + test/dds/xtypes/Case13.json | 24 + test/dds/xtypes/Case14.json | 24 + test/dds/xtypes/Case2.json | 24 + test/dds/xtypes/Case3.json | 23 + test/dds/xtypes/Case4.json | 25 + test/dds/xtypes/Case5.json | 25 + test/dds/xtypes/Case6.json | 24 + test/dds/xtypes/Case7.json | 24 + test/dds/xtypes/Case8.json | 61 ++ test/dds/xtypes/Case9.json | 33 + test/dds/xtypes/TypeLookupPublisher.cpp | 171 +++-- test/dds/xtypes/TypeLookupPublisher.h | 40 +- test/dds/xtypes/TypeLookupSubscriber.cpp | 154 +++-- test/dds/xtypes/TypeLookupSubscriber.h | 38 +- test/dds/xtypes/TypeLookup_main.cpp | 39 +- test/dds/xtypes/idl/XtypesTestsType1.hpp | 178 +++++ test/dds/xtypes/idl/XtypesTestsType1.idl | 4 + ...sCdrAux.hpp => XtypesTestsType1CdrAux.hpp} | 26 +- .../dds/xtypes/idl/XtypesTestsType1CdrAux.ipp | 118 ++++ .../idl/XtypesTestsType1PubSubTypes.cxx | 229 +++++++ .../xtypes/idl/XtypesTestsType1PubSubTypes.h | 133 ++++ .../idl/XtypesTestsType1TypeObjectSupport.cxx | 147 ++++ ... => XtypesTestsType1TypeObjectSupport.hpp} | 24 +- test/dds/xtypes/idl/XtypesTestsType2.hpp | 178 +++++ test/dds/xtypes/idl/XtypesTestsType2.idl | 4 + .../dds/xtypes/idl/XtypesTestsType2CdrAux.hpp | 46 ++ .../dds/xtypes/idl/XtypesTestsType2CdrAux.ipp | 118 ++++ .../idl/XtypesTestsType2PubSubTypes.cxx | 229 +++++++ .../xtypes/idl/XtypesTestsType2PubSubTypes.h | 133 ++++ .../idl/XtypesTestsType2TypeObjectSupport.cxx | 147 ++++ .../idl/XtypesTestsType2TypeObjectSupport.hpp | 54 ++ test/dds/xtypes/idl/XtypesTestsType3.hpp | 178 +++++ test/dds/xtypes/idl/XtypesTestsType3.idl | 4 + .../dds/xtypes/idl/XtypesTestsType3CdrAux.hpp | 46 ++ .../dds/xtypes/idl/XtypesTestsType3CdrAux.ipp | 118 ++++ .../idl/XtypesTestsType3PubSubTypes.cxx | 229 +++++++ .../xtypes/idl/XtypesTestsType3PubSubTypes.h | 133 ++++ .../idl/XtypesTestsType3TypeObjectSupport.cxx | 147 ++++ .../idl/XtypesTestsType3TypeObjectSupport.hpp | 54 ++ test/dds/xtypes/idl/XtypesTestsTypeBig.hpp | 285 ++++++++ test/dds/xtypes/idl/XtypesTestsTypeBig.idl | 10 + .../xtypes/idl/XtypesTestsTypeBigCdrAux.hpp | 47 ++ .../xtypes/idl/XtypesTestsTypeBigCdrAux.ipp | 134 ++++ .../idl/XtypesTestsTypeBigPubSubTypes.cxx | 229 +++++++ .../idl/XtypesTestsTypeBigPubSubTypes.h | 136 ++++ .../XtypesTestsTypeBigTypeObjectSupport.cxx | 554 +++++++++++++++ .../XtypesTestsTypeBigTypeObjectSupport.hpp | 57 ++ test/dds/xtypes/idl/XtypesTestsTypeDep.hpp | 285 ++++++++ test/dds/xtypes/idl/XtypesTestsTypeDep.idl | 10 + .../xtypes/idl/XtypesTestsTypeDepCdrAux.hpp | 47 ++ .../xtypes/idl/XtypesTestsTypeDepCdrAux.ipp | 134 ++++ .../idl/XtypesTestsTypeDepPubSubTypes.cxx | 229 +++++++ .../idl/XtypesTestsTypeDepPubSubTypes.h | 136 ++++ .../XtypesTestsTypeDepTypeObjectSupport.cxx | 554 +++++++++++++++ .../XtypesTestsTypeDepTypeObjectSupport.hpp | 57 ++ test/dds/xtypes/idl/XtypesTestsTypes.hpp | 567 --------------- test/dds/xtypes/idl/XtypesTestsTypes.idl | 17 - .../dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp | 294 -------- .../idl/XtypesTestsTypesPubSubTypes.cxx | 615 ----------------- .../xtypes/idl/XtypesTestsTypesPubSubTypes.h | 315 --------- .../idl/XtypesTestsTypesTypeObjectSupport.cxx | 646 ------------------ 66 files changed, 6178 insertions(+), 2702 deletions(-) rename test/dds/xtypes/{simple_communication.json => Case1.json} (80%) create mode 100644 test/dds/xtypes/Case10.json create mode 100644 test/dds/xtypes/Case11.json create mode 100644 test/dds/xtypes/Case12.json create mode 100644 test/dds/xtypes/Case13.json create mode 100644 test/dds/xtypes/Case14.json create mode 100644 test/dds/xtypes/Case2.json create mode 100644 test/dds/xtypes/Case3.json create mode 100644 test/dds/xtypes/Case4.json create mode 100644 test/dds/xtypes/Case5.json create mode 100644 test/dds/xtypes/Case6.json create mode 100644 test/dds/xtypes/Case7.json create mode 100644 test/dds/xtypes/Case8.json create mode 100644 test/dds/xtypes/Case9.json create mode 100644 test/dds/xtypes/idl/XtypesTestsType1.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsType1.idl rename test/dds/xtypes/idl/{XtypesTestsTypesCdrAux.hpp => XtypesTestsType1CdrAux.hpp} (59%) create mode 100644 test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp create mode 100644 test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.h create mode 100644 test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx rename test/dds/xtypes/idl/{XtypesTestsTypesTypeObjectSupport.hpp => XtypesTestsType1TypeObjectSupport.hpp} (62%) create mode 100644 test/dds/xtypes/idl/XtypesTestsType2.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsType2.idl create mode 100644 test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp create mode 100644 test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.h create mode 100644 test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsType3.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsType3.idl create mode 100644 test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp create mode 100644 test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.h create mode 100644 test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeBig.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeBig.idl create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeDep.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeDep.idl create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.h create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp delete mode 100644 test/dds/xtypes/idl/XtypesTestsTypes.hpp delete mode 100644 test/dds/xtypes/idl/XtypesTestsTypes.idl delete mode 100644 test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp delete mode 100644 test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx delete mode 100644 test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h delete mode 100644 test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index 18d99d2acc8..57b3aef1a29 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -27,8 +27,16 @@ include_directories(${Asio_INCLUDE_DIR}) # Standar tests set(COMMON_SOURCE - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/RTPSDomain.cpp ) @@ -39,7 +47,6 @@ set(DDS_XTYPES_SOURCE ${COMMON_SOURCE} TypeLookupSubscriber.cpp ) - add_executable(DDSXtypesCommunication ${DDS_XTYPES_SOURCE}) target_compile_definitions(DDSXtypesCommunication PRIVATE $<$>,$>:__DEBUG> @@ -60,7 +67,20 @@ target_link_libraries(DDSXtypesCommunication ############################################################################### # Standard tests list(APPEND TEST_DEFINITIONS - simple_communication + Case1 + Case2 + Case3 + Case4 + Case5 + Case6 + Case7 + Case8 + Case9 + Case10 + Case11 + Case12 + Case13 + Case14 ) # Python file @@ -88,8 +108,8 @@ if(PYTHONINTERP_FOUND) ${TEST_DEFINITION}.json ) - set_property(TEST ${TEST_NAME} PROPERTY ENVIRONMENT - "DDS_SIMPLE_COMMUNICATION_BIN=$") + # set_property(TEST ${TEST_NAME} PROPERTY ENVIRONMENT + # "DDS_XTYPES_COMMUNICATION_BIN=$") if(WIN32) string(REPLACE ";" "\\;" WIN_PATH "$ENV{PATH}") diff --git a/test/dds/xtypes/simple_communication.json b/test/dds/xtypes/Case1.json similarity index 80% rename from test/dds/xtypes/simple_communication.json rename to test/dds/xtypes/Case1.json index 60c90ca5618..4f1653379a8 100644 --- a/test/dds/xtypes/simple_communication.json +++ b/test/dds/xtypes/Case1.json @@ -1,5 +1,5 @@ { - "description": "Simple test to communicate a publisher and a subscriber starting with the same known type.", + "description": "Case 1: Subscriber knows Type1, Publisher knows Type1.", "participants": [ { "kind": "subscriber", diff --git a/test/dds/xtypes/Case10.json b/test/dds/xtypes/Case10.json new file mode 100644 index 00000000000..3f9b5307913 --- /dev/null +++ b/test/dds/xtypes/Case10.json @@ -0,0 +1,34 @@ +{ + "description": "Case 10: Subscriber knows Type1 and Type2, Publisher1 knows Type1 and Type2, Publisher2 knows Type1.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case11.json b/test/dds/xtypes/Case11.json new file mode 100644 index 00000000000..d3a11592395 --- /dev/null +++ b/test/dds/xtypes/Case11.json @@ -0,0 +1,24 @@ +{ + "description": "Case 11: Test to communicate a publisher and a subscriber, with a malformed request.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case12.json b/test/dds/xtypes/Case12.json new file mode 100644 index 00000000000..b9102a0359a --- /dev/null +++ b/test/dds/xtypes/Case12.json @@ -0,0 +1,24 @@ +{ + "description": "Case 12: Test to communicate a publisher and a subscriber, where the is no response.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case13.json b/test/dds/xtypes/Case13.json new file mode 100644 index 00000000000..021535832ed --- /dev/null +++ b/test/dds/xtypes/Case13.json @@ -0,0 +1,24 @@ +{ + "description": "Case 13: Test to communicate a publisher and a subscriber, where no TypeInformation is sent.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case14.json b/test/dds/xtypes/Case14.json new file mode 100644 index 00000000000..08d73493bb7 --- /dev/null +++ b/test/dds/xtypes/Case14.json @@ -0,0 +1,24 @@ +{ + "description": "Case 14: Test to communicate a publisher and a subscriber, with TypeObject.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case2.json b/test/dds/xtypes/Case2.json new file mode 100644 index 00000000000..646cf4ab883 --- /dev/null +++ b/test/dds/xtypes/Case2.json @@ -0,0 +1,24 @@ +{ + "description": "Case 2: Subscriber knows Type1 and Type2, Publisher knows Type1.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case3.json b/test/dds/xtypes/Case3.json new file mode 100644 index 00000000000..668165c95ac --- /dev/null +++ b/test/dds/xtypes/Case3.json @@ -0,0 +1,23 @@ +{ + "description": "Case 3: Subscriber knows Type1, Publisher knows Type2.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type2" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case4.json b/test/dds/xtypes/Case4.json new file mode 100644 index 00000000000..caef8fa1014 --- /dev/null +++ b/test/dds/xtypes/Case4.json @@ -0,0 +1,25 @@ +{ + "description": "Case 4: Subscriber knows Type1 and Type2, Publisher knows Type1 and Type3.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "3", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "3", + "known_types": [ + "Type1", + "Type3" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case5.json b/test/dds/xtypes/Case5.json new file mode 100644 index 00000000000..af6e66acc99 --- /dev/null +++ b/test/dds/xtypes/Case5.json @@ -0,0 +1,25 @@ +{ + "description": "Case 5: Subscriber knows Type1 and Type2, Publisher knows Type1 and Type2.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case6.json b/test/dds/xtypes/Case6.json new file mode 100644 index 00000000000..55dd90bbcfc --- /dev/null +++ b/test/dds/xtypes/Case6.json @@ -0,0 +1,24 @@ +{ + "description": "Case 6: Subscriber knows Type1 and TypeDep, Publisher knows Type1 ", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "TypeDep" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case7.json b/test/dds/xtypes/Case7.json new file mode 100644 index 00000000000..d6b8feb2056 --- /dev/null +++ b/test/dds/xtypes/Case7.json @@ -0,0 +1,24 @@ +{ + "description": "Case 7: Subscriber knows Type1 and TypeBig, Publisher knows Type1 ", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "TypeBig" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/Case8.json new file mode 100644 index 00000000000..8b2522f9798 --- /dev/null +++ b/test/dds/xtypes/Case8.json @@ -0,0 +1,61 @@ +{ + "description": "Case 8: Subscriber from Type1 to Type39, Publisher knows Type1 ", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "39", + "known_types": [ + "Type1", + "Type2", + "Type3", + "Type4", + "Type5", + "Type6", + "Type7", + "Type8", + "Type9", + "Type10", + "Type11", + "Type12", + "Type13", + "Type14", + "Type15", + "Type16", + "Type17", + "Type18", + "Type19", + "Type20", + "Type21", + "Type22", + "Type23", + "Type24", + "Type25", + "Type26", + "Type27", + "Type28", + "Type29", + "Type30", + "Type31", + "Type32", + "Type33", + "Type34", + "Type35", + "Type36", + "Type37", + "Type38", + "Type39" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "39", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case9.json b/test/dds/xtypes/Case9.json new file mode 100644 index 00000000000..bd204db62d9 --- /dev/null +++ b/test/dds/xtypes/Case9.json @@ -0,0 +1,33 @@ +{ + "description": "Case 9: Subscriber knows Type1 and Type2, Publisher1 knows Type1, Publisher2 knows Type1.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_types": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupPublisher.cpp index 6220d7e0c00..9239e2ab22e 100644 --- a/test/dds/xtypes/TypeLookupPublisher.cpp +++ b/test/dds/xtypes/TypeLookupPublisher.cpp @@ -34,6 +34,7 @@ #include #include + using namespace eprosima::fastdds::dds; using namespace eprosima::fastrtps::rtps; @@ -44,9 +45,18 @@ TypeLookupPublisher::~TypeLookupPublisher() { for (auto it = known_types_.begin(); it != known_types_.end(); ++it) { - it->second.publisher_->delete_datawriter(it->second.writer_); - participant_->delete_publisher(it->second.publisher_); - participant_->delete_topic(it->second.topic_); + if (nullptr != it->second.writer_) + { + it->second.publisher_->delete_datawriter(it->second.writer_); + } + if (nullptr != it->second.publisher_) + { + participant_->delete_publisher(it->second.publisher_); + } + if (nullptr != it->second.topic_) + { + participant_->delete_topic(it->second.topic_); + } } if (nullptr != participant_) @@ -58,42 +68,50 @@ TypeLookupPublisher::~TypeLookupPublisher() bool TypeLookupPublisher::init( std::vector known_types) { + LibrarySettings settings; + settings.intraprocess_delivery = INTRAPROCESS_OFF; + DomainParticipantFactory::get_instance()->set_library_settings(settings); + participant_ = DomainParticipantFactory::get_instance() ->create_participant(PUB_DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this); if (participant_ == nullptr) { - std::cout << "ERROR create_participant" << std::endl; + std::cout << "ERROR TypeLookupSubscriber: create_participant" << std::endl; return false; } for (const auto& type : known_types) { - create_known_type(type, true); + create_known_type(type); } return true; } bool TypeLookupPublisher::create_known_type( - const std::string& type, - bool register_type) + const std::string& type) { - bool type_created = false; + // Check if the type is already created + if (nullptr != participant_->find_type(type)) + { + return true; + } + bool type_created = false; if (type == "Type1") { - type_created = create_known_type_impl(type, register_type); + type_created = create_known_type_impl(type); } else if (type == "Type2") { - type_created = create_known_type_impl(type, register_type); + type_created = create_known_type_impl(type); } else if (type == "Type3") { - type_created = create_known_type_impl(type, register_type); + type_created = create_known_type_impl(type); } else { - std::cout << "ERROR TypeLookupPublisher::init uknown type: " << type << std::endl; + std::cout << "ERROR TypeLookupSubscriber: init uknown type: " << type << std::endl; } return type_created; @@ -101,32 +119,20 @@ bool TypeLookupPublisher::create_known_type( template bool TypeLookupPublisher::create_known_type_impl( - const std::string& type, - bool register_type) + const std::string& type) { - std::lock_guard lock(known_types_mutex_); - // Check if the type is already created - if (known_types_.find(type) != known_types_.end()) - { - std::cout << "Type " << type << " is already created." << std::endl; - return true; - } - // Create a new PubKnownType for the given type PubKnownType a_type; a_type.obj_ = new Type(); a_type.type_.reset(new TypePubSubType()); + a_type.type_.register_type(participant_); - if (register_type) - { - a_type.type_.register_type(participant_); - } // CREATE THE PUBLISHER a_type.publisher_ = participant_->create_publisher(PUBLISHER_QOS_DEFAULT, this); if (a_type.publisher_ == nullptr) { - std::cout << "ERROR create_publisher: " << type << std::endl; + std::cout << "ERROR TypeLookupSubscriber: create_publisher: " << type << std::endl; return false; } @@ -136,16 +142,20 @@ bool TypeLookupPublisher::create_known_type_impl( a_type.topic_ = participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); if (a_type.topic_ == nullptr) { - std::cout << "ERROR create_topic: " << type << std::endl; + std::cout << "ERROR TypeLookupSubscriber: create_topic: " << type << std::endl; return false; } // CREATE THE DATAWRITER DataWriterQos wqos = a_type.publisher_->get_default_datawriter_qos(); + wqos.liveliness().lease_duration = 3; + wqos.liveliness().announcement_period = 1; + wqos.liveliness().kind = AUTOMATIC_LIVELINESS_QOS; + a_type.writer_ = a_type.publisher_->create_datawriter(a_type.topic_, wqos, this); if (a_type.writer_ == nullptr) { - std::cout << "ERROR create_datawriter" << std::endl; + std::cout << "ERROR TypeLookupSubscriber: create_datawriter" << std::endl; return false; } @@ -154,13 +164,20 @@ bool TypeLookupPublisher::create_known_type_impl( { Type* typed_data = static_cast(data); typed_data->index(current_sample); - typed_data->message("Message " + type + ": " + std::to_string(current_sample)); }; known_types_.emplace(type, a_type); return true; } +bool TypeLookupPublisher::check_registered_type( + const xtypes::TypeInformationParameter& type_info) +{ + xtypes::TypeObject type_obj; + return RETCODE_OK == DomainParticipantFactory::get_instance()->type_object_registry().get_type_object( + type_info.type_information.complete().typeid_with_size().type_id(), type_obj); +} + bool TypeLookupPublisher::wait_discovery( uint32_t expected_match, uint32_t timeout) @@ -176,90 +193,70 @@ bool TypeLookupPublisher::wait_discovery( bool TypeLookupPublisher::run( uint32_t samples) { - expected_samples_ = samples; - - bool returned_value = false; std::unique_lock lock(mutex_); - returned_value = cv_.wait_for(lock, std::chrono::seconds(PUB_MAX_TIMEOUT_), [&] - { - uint32_t current_sample = 0; - void* sample = nullptr; - - while (expected_samples_ > current_sample) - { - for (auto it = known_types_.begin(); it != known_types_.end(); ++it) - { - sample = it->second.type_.create_data(); - - it->second.callback_(sample, current_sample); + return cv_.wait_for( + lock, std::chrono::seconds(PUB_MAX_TIMEOUT_), [&] + { + uint32_t current_sample = 0; + void* sample = nullptr; - std::cout << "Publisher " << it->second.type_.get_type_name() << - " writting sample: " << current_sample << std::endl; - it->second.writer_->write(sample); - it->second.type_.delete_data(sample); + while (samples > current_sample) + { + for (auto it = known_types_.begin(); it != known_types_.end(); ++it) + { + sample = it->second.type_.create_data(); - ++sent_samples_[it->second.writer_->guid()]; + it->second.callback_(sample, current_sample); - std::this_thread::sleep_for(std::chrono::milliseconds(100)); - } - ++current_sample; - } - return true; - }); + std::cout << "Publisher " << it->second.type_.get_type_name() << + " writting sample: " << current_sample << std::endl; + it->second.writer_->write(sample); + it->second.type_.delete_data(sample); - if (known_types_.size() != sent_samples_.size()) - { - std::cout << "ERROR: known_types_.size() != sent_samples_.size()" << std::endl; - returned_value = false; - } + ++sent_samples_[it->second.writer_->guid()]; - for (auto& sent_sample : sent_samples_) - { - if (expected_samples_ != sent_sample.second ) - { - returned_value = false; - break; - } - } - return returned_value; + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + ++current_sample; + } + return true; + }); } void TypeLookupPublisher::on_publication_matched( - DataWriter* /*publisher*/, + DataWriter* /*writer*/, const PublicationMatchedStatus& info) { std::unique_lock lock(mutex_); if (info.current_count_change == 1) { ++matched_; - std::cout << "(TypeLookupPublisher) matched." << std::endl; } else if (info.current_count_change == -1) { --matched_; - std::cout << "(TypeLookupPublisher) unmatched." << std::endl; } else { - std::cout << info.current_count_change - << " is not a valid value for PublicationMatchedStatus current count change" << std::endl; + std::cout << "ERROR TypeLookupSubscriber: info.current_count_change" << std::endl; } cv_.notify_all(); } void TypeLookupPublisher::on_data_reader_discovery( eprosima::fastdds::dds::DomainParticipant* /*participant*/, - eprosima::fastrtps::rtps::ReaderDiscoveryInfo&& info) + eprosima::fastrtps::rtps::ReaderDiscoveryInfo&& info, + bool& should_be_ignored) { - // xtypes::TypeIdentifier type_id; - // type_id = info.info.type_information().type_information.complete().typeid_with_size().type_id(); - // xtypes::TypeObject type_obj; + should_be_ignored = false; + xtypes::TypeInformationParameter type_info = info.info.type_information(); - // auto ret_code = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() - // .get_type_object(type_id, type_obj); - - // std::cout << "TypeLookupPublisher::on_data_reader_discovery:" << - // info.info.typeName() << " result: " << ret_code << std::endl; - - create_known_type(info.info.typeName().to_string(), false); -} \ No newline at end of file + if (check_registered_type(type_info)) + { + create_known_type(info.info.typeName().to_string()); + } + else + { + throw TypeLookupPublisherTypeNotRegisteredException(info.info.typeName().to_string()); + } +} diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupPublisher.h index e330e738ba1..61ff670b6d3 100644 --- a/test/dds/xtypes/TypeLookupPublisher.h +++ b/test/dds/xtypes/TypeLookupPublisher.h @@ -25,15 +25,30 @@ #include #include -#include "idl/XtypesTestsTypesPubSubTypes.h" +#include "idl/XtypesTestsType1PubSubTypes.h" +#include "idl/XtypesTestsType2PubSubTypes.h" +#include "idl/XtypesTestsType3PubSubTypes.h" #include #include +#include namespace eprosima { namespace fastdds { namespace dds { +class TypeLookupPublisherTypeNotRegisteredException : public std::runtime_error +{ +public: + + TypeLookupPublisherTypeNotRegisteredException( + std::string type_name) + : std::runtime_error("Type: " + type_name + " not registered in TypeLookupPublisher") + { + } + +}; + struct PubKnownType { TypeSupport type_; @@ -61,13 +76,14 @@ class TypeLookupPublisher std::vector known_types); bool create_known_type( - const std::string& type, - bool register_type); + const std::string& type); template bool create_known_type_impl( - const std::string& type, - bool register_type); + const std::string& type); + + bool check_registered_type( + const xtypes::TypeInformationParameter& type_info); bool wait_discovery( uint32_t expected_match, @@ -76,16 +92,14 @@ class TypeLookupPublisher bool run( uint32_t samples); - bool run_for( - const std::chrono::seconds& timeout); - void on_publication_matched( - DataWriter* /*publisher*/, + DataWriter* /*writer*/, const PublicationMatchedStatus& info) override; void on_data_reader_discovery( - eprosima::fastdds::dds::DomainParticipant* participant, - eprosima::fastrtps::rtps::ReaderDiscoveryInfo&& info) override; + eprosima::fastdds::dds::DomainParticipant* /*participant*/, + eprosima::fastrtps::rtps::ReaderDiscoveryInfo&& info, + bool& should_be_ignored) override; private: @@ -93,12 +107,10 @@ class TypeLookupPublisher std::condition_variable cv_; unsigned int matched_ = 0; - uint32_t expected_samples_ = 0; std::map sent_samples_; DomainParticipant* participant_ = nullptr; - std::mutex known_types_mutex_; std::map known_types_; }; @@ -106,4 +118,4 @@ class TypeLookupPublisher } // fastdds } // eprosima -#endif /* _TYPELOOKUPTEST_PUBLISHER_H_ */ \ No newline at end of file +#endif /* _TYPELOOKUPTEST_PUBLISHER_H_ */ diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupSubscriber.cpp index ab5e207790e..ec1d718445b 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupSubscriber.cpp @@ -42,9 +42,18 @@ TypeLookupSubscriber::~TypeLookupSubscriber() { for (auto it = known_types_.begin(); it != known_types_.end(); ++it) { - it->second.subscriber_->delete_datareader(it->second.reader_); - participant_->delete_subscriber(it->second.subscriber_); - participant_->delete_topic(it->second.topic_); + if (nullptr != it->second.reader_) + { + it->second.subscriber_->delete_datareader(it->second.reader_); + } + if (nullptr != it->second.subscriber_) + { + participant_->delete_subscriber(it->second.subscriber_); + } + if (nullptr != it->second.topic_) + { + participant_->delete_topic(it->second.topic_); + } } if (nullptr != participant_) @@ -56,6 +65,10 @@ TypeLookupSubscriber::~TypeLookupSubscriber() bool TypeLookupSubscriber::init( std::vector known_types) { + LibrarySettings settings; + settings.intraprocess_delivery = INTRAPROCESS_OFF; + DomainParticipantFactory::get_instance()->set_library_settings(settings); + StatusMask mask = StatusMask::subscription_matched() << StatusMask::data_available() << StatusMask::liveliness_changed(); @@ -64,39 +77,42 @@ bool TypeLookupSubscriber::init( ->create_participant(SUB_DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this, mask); if (participant_ == nullptr) { - std::cout << "ERROR create_participant" << std::endl; + std::cout << "ERROR TypeLookupSubscriber: create_participant" << std::endl; return false; } for (const auto& type : known_types) { - - create_known_type(type, true); - + create_known_type(type); } + return true; } bool TypeLookupSubscriber::create_known_type( - const std::string& type, - bool register_type) + const std::string& type) { - bool type_created = false; + // Check if the type is already created + if (nullptr != participant_->find_type(type)) + { + return true; + } + bool type_created = false; if (type == "Type1") { - type_created = create_known_type_impl(type, register_type); + type_created = create_known_type_impl(type); } else if (type == "Type2") { - type_created = create_known_type_impl(type, register_type); + type_created = create_known_type_impl(type); } else if (type == "Type3") { - type_created = create_known_type_impl(type, register_type); + type_created = create_known_type_impl(type); } else { - std::cout << "ERROR TypeLookupSubscriber::init uknown type: " << type << std::endl; + std::cout << "ERROR TypeLookupSubscriber: init uknown type: " << type << std::endl; } return type_created; @@ -104,31 +120,19 @@ bool TypeLookupSubscriber::create_known_type( template bool TypeLookupSubscriber::create_known_type_impl( - const std::string& type, - bool register_type) + const std::string& type) { - std::lock_guard lock(known_types_mutex_); - // Check if the type is already created - if (known_types_.find(type) != known_types_.end()) - { - std::cout << "Type " << type << " is already created." << std::endl; - return true; - } - + // Create a new PubKnownType for the given type SubKnownType a_type; a_type.obj_ = new Type(); a_type.type_.reset(new TypePubSubType()); - - if (register_type) - { - a_type.type_.register_type(participant_); - } + a_type.type_.register_type(participant_); //CREATE THE SUBSCRIBER a_type.subscriber_ = participant_->create_subscriber(SUBSCRIBER_QOS_DEFAULT, nullptr); if (a_type.subscriber_ == nullptr) { - std::cout << "ERROR create_subscriber" << std::endl; + std::cout << "ERROR TypeLookupSubscriber: create_subscriber" << std::endl; return false; } @@ -138,7 +142,7 @@ bool TypeLookupSubscriber::create_known_type_impl( a_type.topic_ = participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); if (a_type.topic_ == nullptr) { - std::cout << "ERROR create_topic" << std::endl; + std::cout << "ERROR TypeLookupSubscriber: create_topic" << std::endl; return false; } @@ -147,7 +151,7 @@ bool TypeLookupSubscriber::create_known_type_impl( a_type.reader_ = a_type.subscriber_->create_datareader(a_type.topic_, rqos); if (a_type.reader_ == nullptr) { - std::cout << "ERROR create_datareader" << std::endl; + std::cout << "ERROR TypeLookupSubscriber: create_datareader" << std::endl; return false; } @@ -155,18 +159,26 @@ bool TypeLookupSubscriber::create_known_type_impl( a_type.callback_ = [](void* data) { Type* sample = static_cast(data); - std::cout << "index(" << sample->index() << "), message(" << sample->message() << ")" << std::endl; + std::cout << "index(" << sample->index() << ")" << std::endl; }; known_types_.emplace(type, a_type); + return true; } +bool TypeLookupSubscriber::check_registered_type( + const xtypes::TypeInformationParameter& type_info) +{ + xtypes::TypeObject type_obj; + return RETCODE_OK == DomainParticipantFactory::get_instance()->type_object_registry().get_type_object( + type_info.type_information.complete().typeid_with_size().type_id(), type_obj); +} + bool TypeLookupSubscriber::wait_discovery( uint32_t expected_match, uint32_t timeout) { - std::unique_lock lock(mutex_); bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() { @@ -179,49 +191,45 @@ bool TypeLookupSubscriber::wait_discovery( bool TypeLookupSubscriber::run( uint32_t samples) { - expected_samples_ = samples; - bool returned_value = false; - std::unique_lock lock(mutex_); - returned_value = cv_.wait_for(lock, std::chrono::seconds(SUB_MAX_TIMEOUT_), [&] - { - for (auto& received_sample_ : received_samples_) - { - if (expected_samples_ != received_sample_.second) - { - return false; - } - } - return true; - }); + return cv_.wait_for( + lock, std::chrono::seconds(SUB_MAX_TIMEOUT_), [&] + { + if (known_types_.size() != received_samples_.size()) + { + return false; + } - if (known_types_.size() != received_samples_.size()) - { - std::cout << "ERROR: known_types_.size() != received_samples_.size()" << std::endl; - returned_value = false; - } - return returned_value; + std::lock_guard lock(received_samples_mutex_); + for (auto& received_sample : received_samples_) + { + if (samples != received_sample.second) + { + return false; + } + } + return true; + }); } void TypeLookupSubscriber::on_subscription_matched( DataReader* /*reader*/, const SubscriptionMatchedStatus& info) { + std::unique_lock lock(mutex_); if (info.current_count_change == 1) { ++matched_; - std::cout << "(TypeLookupSubscriber) matched." << std::endl; } else if (info.current_count_change == -1) { --matched_; - std::cout << "(TypeLookupSubscriber) unmatched." << std::endl; } else { - std::cout << info.current_count_change - << " is not a valid value for SubscriptionMatchedStatus current count change" << std::endl; + std::cout << "ERROR TypeLookupSubscriber: info.current_count_change" << std::endl; } + cv_.notify_all(); } void TypeLookupSubscriber::on_data_available( @@ -235,11 +243,10 @@ void TypeLookupSubscriber::on_data_available( if (info.instance_state == ALIVE_INSTANCE_STATE) { std::cout << "Subscriber " << reader->type().get_type_name() << - " received sample: " << info.sample_identity.sequence_number() << " -> "; + " received sample:" << info.sample_identity.sequence_number() << "->"; // Call the callback function to process the received data known_types_[reader->type().get_type_name()].callback_(sample_data); - - ++received_samples_[info.sample_identity.writer_guid()]; + received_samples_[info.sample_identity.writer_guid()]++; cv_.notify_all(); } } @@ -247,17 +254,18 @@ void TypeLookupSubscriber::on_data_available( void TypeLookupSubscriber::on_data_writer_discovery( eprosima::fastdds::dds::DomainParticipant* /*participant*/, - eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info) + eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info, + bool& should_be_ignored) { - // xtypes::TypeIdentifier type_id; - // type_id = info.info.type_information().type_information.complete().typeid_with_size().type_id(); - // xtypes::TypeObject type_obj; + should_be_ignored = false; + xtypes::TypeInformationParameter type_info = info.info.type_information(); - // auto ret_code = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() - // .get_type_object(type_id, type_obj); - - // std::cout << "TypeLookupSubscriber::on_data_reader_discovery:" << - // info.info.typeName() << " result: " << ret_code << std::endl; - - create_known_type(info.info.typeName().to_string(), false); -} \ No newline at end of file + if (check_registered_type(type_info)) + { + create_known_type(info.info.typeName().to_string()); + } + else + { + throw TypeLookupSubscriberTypeNotRegisteredException(info.info.typeName().to_string()); + } +} diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupSubscriber.h index 8393cd63a5f..1eb7cdff3ad 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.h +++ b/test/dds/xtypes/TypeLookupSubscriber.h @@ -26,7 +26,9 @@ #include #include -#include "idl/XtypesTestsTypesPubSubTypes.h" +#include "idl/XtypesTestsType1PubSubTypes.h" +#include "idl/XtypesTestsType2PubSubTypes.h" +#include "idl/XtypesTestsType3PubSubTypes.h" #include #include @@ -37,6 +39,18 @@ namespace eprosima { namespace fastdds { namespace dds { +class TypeLookupSubscriberTypeNotRegisteredException : public std::runtime_error +{ +public: + + TypeLookupSubscriberTypeNotRegisteredException( + std::string type_name) + : std::runtime_error("Type: " + type_name + " not registered in TypeLookupSubscriber") + { + } + +}; + struct SubKnownType { TypeSupport type_; @@ -64,13 +78,14 @@ class TypeLookupSubscriber std::vector known_types); bool create_known_type( - const std::string& type, - bool register_type); + const std::string& type); template bool create_known_type_impl( - const std::string& type, - bool register_type); + const std::string& type); + + bool check_registered_type( + const xtypes::TypeInformationParameter& type_info); bool wait_discovery( uint32_t expected_match, @@ -79,9 +94,6 @@ class TypeLookupSubscriber bool run( uint32_t samples); - bool run_for( - const std::chrono::seconds& timeout); - void on_subscription_matched( DataReader* /*reader*/, const SubscriptionMatchedStatus& info) override; @@ -90,8 +102,9 @@ class TypeLookupSubscriber DataReader* reader) override; void on_data_writer_discovery( - eprosima::fastdds::dds::DomainParticipant* participant, - eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info) override; + eprosima::fastdds::dds::DomainParticipant* /*participant*/, + eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info, + bool& should_be_ignored) override; private: @@ -99,12 +112,11 @@ class TypeLookupSubscriber std::condition_variable cv_; unsigned int matched_ = 0; - uint32_t expected_samples_ = 0; + std::mutex received_samples_mutex_; std::map received_samples_; DomainParticipant* participant_ = nullptr; - std::mutex known_types_mutex_; std::map known_types_; }; @@ -113,4 +125,4 @@ class TypeLookupSubscriber } // eprosima -#endif /* _TYPELOOKUPTEST_SUBSCRIBER_H_ */ \ No newline at end of file +#endif /* _TYPELOOKUPTEST_SUBSCRIBER_H_ */ diff --git a/test/dds/xtypes/TypeLookup_main.cpp b/test/dds/xtypes/TypeLookup_main.cpp index 1cfb10f9cd7..10f26143bf3 100644 --- a/test/dds/xtypes/TypeLookup_main.cpp +++ b/test/dds/xtypes/TypeLookup_main.cpp @@ -115,21 +115,30 @@ int main( return -1; } - switch (args.kind){ - case 1: { - eprosima::fastdds::dds::TypeLookupPublisher pub; - return (pub.init(args.known_types) && - pub.wait_discovery(args.expected_types, args.timeout) && - pub.run(args.samples)) ? 0 : -1; - } - case 2: { - eprosima::fastdds::dds::TypeLookupSubscriber sub; - return (sub.init(args.known_types) && - sub.wait_discovery(args.expected_types, args.timeout) && - sub.run(args.samples)) ? 0 : -1; + try + { + switch (args.kind){ + case 1: { + eprosima::fastdds::dds::TypeLookupPublisher pub; + return (pub.init(args.known_types) && + pub.wait_discovery(args.expected_types, args.timeout) && + pub.run(args.samples)) ? 0 : -1; + } + case 2: { + eprosima::fastdds::dds::TypeLookupSubscriber sub; + return (sub.init(args.known_types) && + sub.wait_discovery(args.expected_types, args.timeout) && + sub.run(args.samples)) ? 0 : -1; + } + default: + std::cout << "Invalid participant type. Use 'publisher' or 'subscriber'." << std::endl; + return -1; } - default: - std::cout << "Invalid participant type. Use 'publisher' or 'subscriber'." << std::endl; - return -1; } + catch (std::exception const& e) + { + std::cout << "Tests failed: " << e.what() << std::endl; + return -1; + } + return 0; } diff --git a/test/dds/xtypes/idl/XtypesTestsType1.hpp b/test/dds/xtypes/idl/XtypesTestsType1.hpp new file mode 100644 index 00000000000..771b67caf58 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType1.hpp @@ -0,0 +1,178 @@ +// 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 XtypesTestsType1.hpp + * This header file contains the declaration of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_HPP_ + +#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(XTYPESTESTSTYPE1_SOURCE) +#define XTYPESTESTSTYPE1_DllAPI __declspec( dllexport ) +#else +#define XTYPESTESTSTYPE1_DllAPI __declspec( dllimport ) +#endif // XTYPESTESTSTYPE1_SOURCE +#else +#define XTYPESTESTSTYPE1_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define XTYPESTESTSTYPE1_DllAPI +#endif // _WIN32 + +/*! + * @brief This class represents the structure Type1 defined by the user in the IDL file. + * @ingroup XtypesTestsType1 + */ +class Type1 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type1() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type1() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type1 that will be copied. + */ + eProsima_user_DllExport Type1( + const Type1& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type1 that will be copied. + */ + eProsima_user_DllExport Type1( + Type1&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type1 that will be copied. + */ + eProsima_user_DllExport Type1& operator =( + const Type1& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type1 that will be copied. + */ + eProsima_user_DllExport Type1& operator =( + Type1&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type1 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type1& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type1 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type1& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_HPP_ + + diff --git a/test/dds/xtypes/idl/XtypesTestsType1.idl b/test/dds/xtypes/idl/XtypesTestsType1.idl new file mode 100644 index 00000000000..ea93b2c8f91 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType1.idl @@ -0,0 +1,4 @@ +struct Type1 +{ + unsigned short index; +}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp similarity index 59% rename from test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp rename to test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp index 2efe45f6f58..1eac21875ad 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp @@ -13,24 +13,18 @@ // limitations under the License. /*! - * @file XtypesTestsTypesCdrAux.hpp + * @file XtypesTestsType1CdrAux.hpp * This source file contains some definitions of CDR related functions. * * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_HPP_ +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_HPP_ -#include "XtypesTestsTypes.hpp" +#include "XtypesTestsType1.hpp" -constexpr uint32_t Type2_max_cdr_typesize {141UL}; -constexpr uint32_t Type2_max_key_cdr_typesize {0UL}; - -constexpr uint32_t Type3_max_cdr_typesize {141UL}; -constexpr uint32_t Type3_max_key_cdr_typesize {0UL}; - -constexpr uint32_t Type1_max_cdr_typesize {141UL}; +constexpr uint32_t Type1_max_cdr_typesize {6UL}; constexpr uint32_t Type1_max_key_cdr_typesize {0UL}; @@ -44,17 +38,9 @@ eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type1& data); -eProsima_user_DllExport void serialize_key( - eprosima::fastcdr::Cdr& scdr, - const Type2& data); - -eProsima_user_DllExport void serialize_key( - eprosima::fastcdr::Cdr& scdr, - const Type3& data); - } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_HPP_ +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_HPP_ diff --git a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp new file mode 100644 index 00000000000..0d201ce5c8b --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp @@ -0,0 +1,118 @@ +// 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 XtypesTestsType1CdrAux.ipp + * This source file contains some declarations of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_IPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_IPP_ + +#include "XtypesTestsType1CdrAux.hpp" + +#include +#include + + +#include +using namespace eprosima::fastcdr::exception; + +namespace eprosima { +namespace fastcdr { + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type1& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type1& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type1& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type1& data) +{ + static_cast(scdr); + static_cast(data); +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_IPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx new file mode 100644 index 00000000000..6ccb55947e1 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsType1PubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "XtypesTestsType1PubSubTypes.h" + +#include +#include + +#include "XtypesTestsType1CdrAux.hpp" +#include "XtypesTestsType1TypeObjectSupport.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; + +Type1PubSubType::Type1PubSubType() +{ + setName("Type1"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type1::getMaxCdrSerializedSize()); +#else + Type1_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type1_max_key_cdr_typesize > 16 ? Type1_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type1PubSubType::~Type1PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type1PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type1* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type1PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type1* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type1PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type1PubSubType::createData() +{ + return reinterpret_cast(new Type1()); +} + +void Type1PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type1PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type1* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type1_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type1_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type1PubSubType::register_type_object_representation() const +{ + register_XtypesTestsType1_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsType1CdrAux.ipp" diff --git a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.h new file mode 100644 index 00000000000..4435346b705 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsType1PubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "XtypesTestsType1.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated XtypesTestsType1 is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type Type1 defined by the user in the IDL file. + * @ingroup XtypesTestsType1 + */ +class Type1PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type1 type; + + eProsima_user_DllExport Type1PubSubType(); + + eProsima_user_DllExport ~Type1PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_PUBSUBTYPES_H_ + diff --git a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx new file mode 100644 index 00000000000..d4cefd7e1f3 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx @@ -0,0 +1,147 @@ +// 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 XtypesTestsType1TypeObjectSupport.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 "XtypesTestsType1TypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "XtypesTestsType1.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +void register_XtypesTestsType1_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + register_Type1_type_identifier(); + + }); +} + +void register_Type1_type_identifier() +{ + { + StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type1; + TypeIdentifierPair type_ids_Type1; + QualifiedTypeName type_name_Type1 = "Type1"; + eprosima::fastcdr::optional type_ann_builtin_Type1; + eprosima::fastcdr::optional ann_custom_Type1; + CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); + CompleteStructHeader header_Type1; + header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); + CompleteStructMemberSeq member_seq_Type1; + { + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type1); + + if (return_code_Type1 != 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.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_Type1.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); + } + CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_Type1); + if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + diff --git a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp similarity index 62% rename from test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp rename to test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp index 387da0e1505..194f6847d9c 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp @@ -13,14 +13,14 @@ // limitations under the License. /*! - * @file XtypesTestsTypesTypeObjectSupport.hpp + * @file XtypesTestsType1TypeObjectSupport.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_XTYPESTESTSTYPES_TYPE_OBJECT_SUPPORT_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPES_TYPE_OBJECT_SUPPORT_HPP_ +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP_ #if defined(_WIN32) @@ -36,7 +36,7 @@ /** * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. */ -eProsima_user_DllExport void register_XtypesTestsTypes_type_objects(); +eProsima_user_DllExport void register_XtypesTestsType1_type_objects(); #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC @@ -47,22 +47,8 @@ eProsima_user_DllExport void register_XtypesTestsTypes_type_objects(); * indirectly registered as well. */ eProsima_user_DllExport void register_Type1_type_identifier(); -/** - * @brief Register Type2 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_Type2_type_identifier(); -/** - * @brief Register Type3 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_Type3_type_identifier(); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPES_TYPE_OBJECT_SUPPORT_HPP_ +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/test/dds/xtypes/idl/XtypesTestsType2.hpp b/test/dds/xtypes/idl/XtypesTestsType2.hpp new file mode 100644 index 00000000000..7f2f68037a9 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType2.hpp @@ -0,0 +1,178 @@ +// 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 XtypesTestsType2.hpp + * This header file contains the declaration of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_HPP_ + +#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(XTYPESTESTSTYPE2_SOURCE) +#define XTYPESTESTSTYPE2_DllAPI __declspec( dllexport ) +#else +#define XTYPESTESTSTYPE2_DllAPI __declspec( dllimport ) +#endif // XTYPESTESTSTYPE2_SOURCE +#else +#define XTYPESTESTSTYPE2_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define XTYPESTESTSTYPE2_DllAPI +#endif // _WIN32 + +/*! + * @brief This class represents the structure Type2 defined by the user in the IDL file. + * @ingroup XtypesTestsType2 + */ +class Type2 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type2() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type2() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2( + const Type2& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2( + Type2&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2& operator =( + const Type2& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2& operator =( + Type2&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type2 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type2& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type2 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type2& 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( + int16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport int16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport int16_t& index() + { + return m_index; + } + + + +private: + + int16_t m_index{0}; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_HPP_ + + diff --git a/test/dds/xtypes/idl/XtypesTestsType2.idl b/test/dds/xtypes/idl/XtypesTestsType2.idl new file mode 100644 index 00000000000..41daff6d0c0 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType2.idl @@ -0,0 +1,4 @@ +struct Type2 +{ + short index; +}; diff --git a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp new file mode 100644 index 00000000000..555958aa1dc --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp @@ -0,0 +1,46 @@ +// 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 XtypesTestsType2CdrAux.hpp + * This source file contains some definitions of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_HPP_ + +#include "XtypesTestsType2.hpp" + +constexpr uint32_t Type2_max_cdr_typesize {6UL}; +constexpr uint32_t Type2_max_key_cdr_typesize {0UL}; + + +namespace eprosima { +namespace fastcdr { + +class Cdr; +class CdrSizeCalculator; + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type2& data); + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_HPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp new file mode 100644 index 00000000000..8a626871774 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp @@ -0,0 +1,118 @@ +// 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 XtypesTestsType2CdrAux.ipp + * This source file contains some declarations of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_IPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_IPP_ + +#include "XtypesTestsType2CdrAux.hpp" + +#include +#include + + +#include +using namespace eprosima::fastcdr::exception; + +namespace eprosima { +namespace fastcdr { + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type2& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type2& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type2& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type2& data) +{ + static_cast(scdr); + static_cast(data); +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_IPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx new file mode 100644 index 00000000000..1e6cfdda388 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsType2PubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "XtypesTestsType2PubSubTypes.h" + +#include +#include + +#include "XtypesTestsType2CdrAux.hpp" +#include "XtypesTestsType2TypeObjectSupport.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; + +Type2PubSubType::Type2PubSubType() +{ + setName("Type2"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type2::getMaxCdrSerializedSize()); +#else + Type2_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type2_max_key_cdr_typesize > 16 ? Type2_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type2PubSubType::~Type2PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type2PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type2* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type2PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type2* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type2PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type2PubSubType::createData() +{ + return reinterpret_cast(new Type2()); +} + +void Type2PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type2PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type2* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type2_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type2_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type2PubSubType::register_type_object_representation() const +{ + register_XtypesTestsType2_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsType2CdrAux.ipp" diff --git a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.h new file mode 100644 index 00000000000..257f48bb708 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsType2PubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "XtypesTestsType2.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated XtypesTestsType2 is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type Type2 defined by the user in the IDL file. + * @ingroup XtypesTestsType2 + */ +class Type2PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type2 type; + + eProsima_user_DllExport Type2PubSubType(); + + eProsima_user_DllExport ~Type2PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_PUBSUBTYPES_H_ + diff --git a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx new file mode 100644 index 00000000000..0d2fb7f0db7 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx @@ -0,0 +1,147 @@ +// 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 XtypesTestsType2TypeObjectSupport.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 "XtypesTestsType2TypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "XtypesTestsType2.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +void register_XtypesTestsType2_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + register_Type2_type_identifier(); + + }); +} + +void register_Type2_type_identifier() +{ + { + StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type2; + TypeIdentifierPair type_ids_Type2; + QualifiedTypeName type_name_Type2 = "Type2"; + eprosima::fastcdr::optional type_ann_builtin_Type2; + eprosima::fastcdr::optional ann_custom_Type2; + CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); + CompleteStructHeader header_Type2; + header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); + CompleteStructMemberSeq member_seq_Type2; + { + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_Type2); + + if (return_code_Type2 != 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.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_Type2.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); + } + CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_Type2); + if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + diff --git a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp new file mode 100644 index 00000000000..8adc6d75de4 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.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 XtypesTestsType2TypeObjectSupport.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_XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_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_XtypesTestsType2_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register Type2 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_Type2_type_identifier(); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/test/dds/xtypes/idl/XtypesTestsType3.hpp b/test/dds/xtypes/idl/XtypesTestsType3.hpp new file mode 100644 index 00000000000..af3f58cceda --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType3.hpp @@ -0,0 +1,178 @@ +// 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 XtypesTestsType3.hpp + * This header file contains the declaration of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_HPP_ + +#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(XTYPESTESTSTYPE3_SOURCE) +#define XTYPESTESTSTYPE3_DllAPI __declspec( dllexport ) +#else +#define XTYPESTESTSTYPE3_DllAPI __declspec( dllimport ) +#endif // XTYPESTESTSTYPE3_SOURCE +#else +#define XTYPESTESTSTYPE3_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define XTYPESTESTSTYPE3_DllAPI +#endif // _WIN32 + +/*! + * @brief This class represents the structure Type3 defined by the user in the IDL file. + * @ingroup XtypesTestsType3 + */ +class Type3 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type3() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type3() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3( + const Type3& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3( + Type3&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3& operator =( + const Type3& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3& operator =( + Type3&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type3 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type3& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type3 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type3& 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( + int32_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport int32_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport int32_t& index() + { + return m_index; + } + + + +private: + + int32_t m_index{0}; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_HPP_ + + diff --git a/test/dds/xtypes/idl/XtypesTestsType3.idl b/test/dds/xtypes/idl/XtypesTestsType3.idl new file mode 100644 index 00000000000..89906398fce --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType3.idl @@ -0,0 +1,4 @@ +struct Type3 +{ + long index; +}; \ No newline at end of file diff --git a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp new file mode 100644 index 00000000000..9d2ca63d7a3 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp @@ -0,0 +1,46 @@ +// 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 XtypesTestsType3CdrAux.hpp + * This source file contains some definitions of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_HPP_ + +#include "XtypesTestsType3.hpp" + +constexpr uint32_t Type3_max_cdr_typesize {8UL}; +constexpr uint32_t Type3_max_key_cdr_typesize {0UL}; + + +namespace eprosima { +namespace fastcdr { + +class Cdr; +class CdrSizeCalculator; + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type3& data); + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_HPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp new file mode 100644 index 00000000000..8e07853145f --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp @@ -0,0 +1,118 @@ +// 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 XtypesTestsType3CdrAux.ipp + * This source file contains some declarations of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_IPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_IPP_ + +#include "XtypesTestsType3CdrAux.hpp" + +#include +#include + + +#include +using namespace eprosima::fastcdr::exception; + +namespace eprosima { +namespace fastcdr { + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type3& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type3& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type3& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type3& data) +{ + static_cast(scdr); + static_cast(data); +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_IPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx new file mode 100644 index 00000000000..feed97cfe51 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsType3PubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "XtypesTestsType3PubSubTypes.h" + +#include +#include + +#include "XtypesTestsType3CdrAux.hpp" +#include "XtypesTestsType3TypeObjectSupport.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; + +Type3PubSubType::Type3PubSubType() +{ + setName("Type3"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type3::getMaxCdrSerializedSize()); +#else + Type3_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type3_max_key_cdr_typesize > 16 ? Type3_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type3PubSubType::~Type3PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type3PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type3* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type3PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type3* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type3PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type3PubSubType::createData() +{ + return reinterpret_cast(new Type3()); +} + +void Type3PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type3PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type3* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type3_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type3_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type3PubSubType::register_type_object_representation() const +{ + register_XtypesTestsType3_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsType3CdrAux.ipp" diff --git a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.h new file mode 100644 index 00000000000..3d9a8a997fb --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsType3PubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "XtypesTestsType3.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated XtypesTestsType3 is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type Type3 defined by the user in the IDL file. + * @ingroup XtypesTestsType3 + */ +class Type3PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type3 type; + + eProsima_user_DllExport Type3PubSubType(); + + eProsima_user_DllExport ~Type3PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_PUBSUBTYPES_H_ + diff --git a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx new file mode 100644 index 00000000000..68a5820caa8 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx @@ -0,0 +1,147 @@ +// 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 XtypesTestsType3TypeObjectSupport.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 "XtypesTestsType3TypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "XtypesTestsType3.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +void register_XtypesTestsType3_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + register_Type3_type_identifier(); + + }); +} + +void register_Type3_type_identifier() +{ + { + StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type3; + TypeIdentifierPair type_ids_Type3; + QualifiedTypeName type_name_Type3 = "Type3"; + eprosima::fastcdr::optional type_ann_builtin_Type3; + eprosima::fastcdr::optional ann_custom_Type3; + CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); + CompleteStructHeader header_Type3; + header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); + CompleteStructMemberSeq member_seq_Type3; + { + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_Type3); + + if (return_code_Type3 != 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_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.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_Type3.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); + } + CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type3 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_Type3); + if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + diff --git a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp new file mode 100644 index 00000000000..9f871d28370 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.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 XtypesTestsType3TypeObjectSupport.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_XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_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_XtypesTestsType3_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register Type3 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_Type3_type_identifier(); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp new file mode 100644 index 00000000000..3fc5cffe3dc --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp @@ -0,0 +1,285 @@ +// 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 XtypesTestsTypeBig.hpp + * This header file contains the declaration of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_HPP_ + +#include +#include +#include "XtypesTestsType1.hpp" +#include "XtypesTestsType2.hpp" +#include "XtypesTestsType3.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 + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#if defined(XTYPESTESTSTYPEBIG_SOURCE) +#define XTYPESTESTSTYPEBIG_DllAPI __declspec( dllexport ) +#else +#define XTYPESTESTSTYPEBIG_DllAPI __declspec( dllimport ) +#endif // XTYPESTESTSTYPEBIG_SOURCE +#else +#define XTYPESTESTSTYPEBIG_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define XTYPESTESTSTYPEBIG_DllAPI +#endif // _WIN32 + +/*! + * @brief This class represents the structure TypeBig defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class TypeBig +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport TypeBig() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~TypeBig() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object TypeBig that will be copied. + */ + eProsima_user_DllExport TypeBig( + const TypeBig& x) + { + m_dep1 = x.m_dep1; + + m_dep2 = x.m_dep2; + + m_dep3 = x.m_dep3; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object TypeBig that will be copied. + */ + eProsima_user_DllExport TypeBig( + TypeBig&& x) noexcept + { + m_dep1 = std::move(x.m_dep1); + m_dep2 = std::move(x.m_dep2); + m_dep3 = std::move(x.m_dep3); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object TypeBig that will be copied. + */ + eProsima_user_DllExport TypeBig& operator =( + const TypeBig& x) + { + + m_dep1 = x.m_dep1; + + m_dep2 = x.m_dep2; + + m_dep3 = x.m_dep3; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object TypeBig that will be copied. + */ + eProsima_user_DllExport TypeBig& operator =( + TypeBig&& x) noexcept + { + + m_dep1 = std::move(x.m_dep1); + m_dep2 = std::move(x.m_dep2); + m_dep3 = std::move(x.m_dep3); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x TypeBig object to compare. + */ + eProsima_user_DllExport bool operator ==( + const TypeBig& x) const + { + return (m_dep1 == x.m_dep1 && + m_dep2 == x.m_dep2 && + m_dep3 == x.m_dep3); + } + + /*! + * @brief Comparison operator. + * @param x TypeBig object to compare. + */ + eProsima_user_DllExport bool operator !=( + const TypeBig& x) const + { + return !(*this == x); + } + + /*! + * @brief This function copies the value in member dep1 + * @param _dep1 New value to be copied in member dep1 + */ + eProsima_user_DllExport void dep1( + const Type1& _dep1) + { + m_dep1 = _dep1; + } + + /*! + * @brief This function moves the value in member dep1 + * @param _dep1 New value to be moved in member dep1 + */ + eProsima_user_DllExport void dep1( + Type1&& _dep1) + { + m_dep1 = std::move(_dep1); + } + + /*! + * @brief This function returns a constant reference to member dep1 + * @return Constant reference to member dep1 + */ + eProsima_user_DllExport const Type1& dep1() const + { + return m_dep1; + } + + /*! + * @brief This function returns a reference to member dep1 + * @return Reference to member dep1 + */ + eProsima_user_DllExport Type1& dep1() + { + return m_dep1; + } + + + /*! + * @brief This function copies the value in member dep2 + * @param _dep2 New value to be copied in member dep2 + */ + eProsima_user_DllExport void dep2( + const Type2& _dep2) + { + m_dep2 = _dep2; + } + + /*! + * @brief This function moves the value in member dep2 + * @param _dep2 New value to be moved in member dep2 + */ + eProsima_user_DllExport void dep2( + Type2&& _dep2) + { + m_dep2 = std::move(_dep2); + } + + /*! + * @brief This function returns a constant reference to member dep2 + * @return Constant reference to member dep2 + */ + eProsima_user_DllExport const Type2& dep2() const + { + return m_dep2; + } + + /*! + * @brief This function returns a reference to member dep2 + * @return Reference to member dep2 + */ + eProsima_user_DllExport Type2& dep2() + { + return m_dep2; + } + + + /*! + * @brief This function copies the value in member dep3 + * @param _dep3 New value to be copied in member dep3 + */ + eProsima_user_DllExport void dep3( + const Type3& _dep3) + { + m_dep3 = _dep3; + } + + /*! + * @brief This function moves the value in member dep3 + * @param _dep3 New value to be moved in member dep3 + */ + eProsima_user_DllExport void dep3( + Type3&& _dep3) + { + m_dep3 = std::move(_dep3); + } + + /*! + * @brief This function returns a constant reference to member dep3 + * @return Constant reference to member dep3 + */ + eProsima_user_DllExport const Type3& dep3() const + { + return m_dep3; + } + + /*! + * @brief This function returns a reference to member dep3 + * @return Reference to member dep3 + */ + eProsima_user_DllExport Type3& dep3() + { + return m_dep3; + } + + + +private: + + Type1 m_dep1; + Type2 m_dep2; + Type3 m_dep3; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_HPP_ + + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.idl b/test/dds/xtypes/idl/XtypesTestsTypeBig.idl new file mode 100644 index 00000000000..fd04c54c926 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeBig.idl @@ -0,0 +1,10 @@ +#include "XtypesTestsType1.idl" +#include "XtypesTestsType2.idl" +#include "XtypesTestsType3.idl" + +struct TypeBig +{ + Type1 dep1; + Type2 dep2; + Type3 dep3; +}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp new file mode 100644 index 00000000000..103f0d17501 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp @@ -0,0 +1,47 @@ +// 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 XtypesTestsTypeBigCdrAux.hpp + * This source file contains some definitions of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_HPP_ + +#include "XtypesTestsTypeBig.hpp" + +constexpr uint32_t TypeBig_max_cdr_typesize {28UL}; +constexpr uint32_t TypeBig_max_key_cdr_typesize {0UL}; + + + +namespace eprosima { +namespace fastcdr { + +class Cdr; +class CdrSizeCalculator; + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const TypeBig& data); + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_HPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp new file mode 100644 index 00000000000..a074b0b3a87 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp @@ -0,0 +1,134 @@ +// 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 XtypesTestsTypeBigCdrAux.ipp + * This source file contains some declarations of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_IPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_IPP_ + +#include "XtypesTestsTypeBigCdrAux.hpp" + +#include +#include + + +#include +using namespace eprosima::fastcdr::exception; + +namespace eprosima { +namespace fastcdr { + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const TypeBig& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.dep1(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.dep2(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.dep3(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const TypeBig& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.dep1() + << eprosima::fastcdr::MemberId(1) << data.dep2() + << eprosima::fastcdr::MemberId(2) << data.dep3() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + TypeBig& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.dep1(); + break; + + case 1: + dcdr >> data.dep2(); + break; + + case 2: + dcdr >> data.dep3(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const TypeBig& data) +{ + static_cast(scdr); + static_cast(data); +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_IPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx new file mode 100644 index 00000000000..cccc72ae3e4 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsTypeBigPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "XtypesTestsTypeBigPubSubTypes.h" + +#include +#include + +#include "XtypesTestsTypeBigCdrAux.hpp" +#include "XtypesTestsTypeBigTypeObjectSupport.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; + +TypeBigPubSubType::TypeBigPubSubType() +{ + setName("TypeBig"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(TypeBig::getMaxCdrSerializedSize()); +#else + TypeBig_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = TypeBig_max_key_cdr_typesize > 16 ? TypeBig_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +TypeBigPubSubType::~TypeBigPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool TypeBigPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + TypeBig* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool TypeBigPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + TypeBig* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function TypeBigPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* TypeBigPubSubType::createData() +{ + return reinterpret_cast(new TypeBig()); +} + +void TypeBigPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool TypeBigPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + TypeBig* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + TypeBig_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || TypeBig_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void TypeBigPubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsTypeBigCdrAux.ipp" diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h new file mode 100644 index 00000000000..b376c35aee5 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h @@ -0,0 +1,136 @@ +// 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 XtypesTestsTypeBigPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeBig.hpp" + +#include "XtypesTestsType1PubSubTypes.h" +#include "XtypesTestsType2PubSubTypes.h" +#include "XtypesTestsType3PubSubTypes.h" + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated XtypesTestsTypeBig is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type TypeBig defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class TypeBigPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef TypeBig type; + + eProsima_user_DllExport TypeBigPubSubType(); + + eProsima_user_DllExport ~TypeBigPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_PUBSUBTYPES_H_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx new file mode 100644 index 00000000000..8179e562828 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx @@ -0,0 +1,554 @@ +// 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 XtypesTestsTypeBigTypeObjectSupport.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 "XtypesTestsTypeBigTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeBig.hpp" + +#include "XtypesTestsType1.hpp" +#include "XtypesTestsType2.hpp" +#include "XtypesTestsType3.hpp" + +using namespace eprosima::fastdds::dds::xtypes; + +void register_XtypesTestsTypeBig_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + register_Type1_type_identifier(); + + register_Type2_type_identifier(); + + register_Type3_type_identifier(); + + register_TypeBig_type_identifier(); + + }); +} + +void register_TypeBig_type_identifier() +{ + { + StructTypeFlag struct_flags_TypeBig = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_TypeBig; + TypeIdentifierPair type_ids_TypeBig; + QualifiedTypeName type_name_TypeBig = "TypeBig"; + eprosima::fastcdr::optional type_ann_builtin_TypeBig; + eprosima::fastcdr::optional ann_custom_TypeBig; + CompleteTypeDetail detail_TypeBig = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeBig, ann_custom_TypeBig, type_name_TypeBig.to_string()); + CompleteStructHeader header_TypeBig; + header_TypeBig = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeBig); + CompleteStructMemberSeq member_seq_TypeBig; + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type1; + TypeIdentifierPair type_ids_Type1; + QualifiedTypeName type_name_Type1 = "Type1"; + eprosima::fastcdr::optional type_ann_builtin_Type1; + eprosima::fastcdr::optional ann_custom_Type1; + CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); + CompleteStructHeader header_Type1; + header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); + CompleteStructMemberSeq member_seq_Type1; + { + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type1); + + if (return_code_Type1 != 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.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_Type1.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); + } + CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_Type1); + if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep1; + MemberId member_id_dep1 = 0x00000000; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep1 = TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep1 = TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep1 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep1 = "dep1"; + eprosima::fastcdr::optional member_ann_builtin_dep1; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep1 = TypeObjectUtils::build_complete_member_detail(name_dep1, member_ann_builtin_dep1, ann_custom_TypeBig); + CompleteStructMember member_dep1 = TypeObjectUtils::build_complete_struct_member(common_dep1, detail_dep1); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep1); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type2; + TypeIdentifierPair type_ids_Type2; + QualifiedTypeName type_name_Type2 = "Type2"; + eprosima::fastcdr::optional type_ann_builtin_Type2; + eprosima::fastcdr::optional ann_custom_Type2; + CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); + CompleteStructHeader header_Type2; + header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); + CompleteStructMemberSeq member_seq_Type2; + { + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_Type2); + + if (return_code_Type2 != 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.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_Type2.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); + } + CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_Type2); + if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep2; + MemberId member_id_dep2 = 0x00000001; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep2 = TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep2 = TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep2 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep2 = "dep2"; + eprosima::fastcdr::optional member_ann_builtin_dep2; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep2 = TypeObjectUtils::build_complete_member_detail(name_dep2, member_ann_builtin_dep2, ann_custom_TypeBig); + CompleteStructMember member_dep2 = TypeObjectUtils::build_complete_struct_member(common_dep2, detail_dep2); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep2); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type3; + TypeIdentifierPair type_ids_Type3; + QualifiedTypeName type_name_Type3 = "Type3"; + eprosima::fastcdr::optional type_ann_builtin_Type3; + eprosima::fastcdr::optional ann_custom_Type3; + CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); + CompleteStructHeader header_Type3; + header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); + CompleteStructMemberSeq member_seq_Type3; + { + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_Type3); + + if (return_code_Type3 != 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_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.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_Type3.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); + } + CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type3 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_Type3); + if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep3; + MemberId member_id_dep3 = 0x00000002; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep3 = TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep3 = TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep3 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep3 = "dep3"; + eprosima::fastcdr::optional member_ann_builtin_dep3; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep3 = TypeObjectUtils::build_complete_member_detail(name_dep3, member_ann_builtin_dep3, ann_custom_TypeBig); + CompleteStructMember member_dep3 = TypeObjectUtils::build_complete_struct_member(common_dep3, detail_dep3); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep3); + } + CompleteStructType struct_type_TypeBig = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeBig, header_TypeBig, member_seq_TypeBig); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeBig, type_name_TypeBig.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "TypeBig already registered in TypeObjectRegistry for a different type."); + } + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "TypeBig", type_ids_TypeBig); + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "TypeBig: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp new file mode 100644 index 00000000000..4c7c0fffa5e --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp @@ -0,0 +1,57 @@ +// 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 XtypesTestsTypeBigTypeObjectSupport.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_XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP_ + +#include "XtypesTestsType1TypeObjectSupport.hpp" +#include "XtypesTestsType2TypeObjectSupport.hpp" +#include "XtypesTestsType3TypeObjectSupport.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_XtypesTestsTypeBig_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register TypeBig 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_TypeBig_type_identifier(); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp new file mode 100644 index 00000000000..55847a8990c --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp @@ -0,0 +1,285 @@ +// 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 XtypesTestsTypeDep.hpp + * This header file contains the declaration of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_HPP_ + +#include +#include +#include "XtypesTestsType1.hpp" +#include "XtypesTestsType2.hpp" +#include "XtypesTestsType3.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 + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#if defined(XTYPESTESTSTYPEDEP_SOURCE) +#define XTYPESTESTSTYPEDEP_DllAPI __declspec( dllexport ) +#else +#define XTYPESTESTSTYPEDEP_DllAPI __declspec( dllimport ) +#endif // XTYPESTESTSTYPEDEP_SOURCE +#else +#define XTYPESTESTSTYPEDEP_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define XTYPESTESTSTYPEDEP_DllAPI +#endif // _WIN32 + +/*! + * @brief This class represents the structure TypeDep defined by the user in the IDL file. + * @ingroup XtypesTestsTypeDep + */ +class TypeDep +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport TypeDep() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~TypeDep() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object TypeDep that will be copied. + */ + eProsima_user_DllExport TypeDep( + const TypeDep& x) + { + m_var_type1 = x.m_var_type1; + + m_var_type2 = x.m_var_type2; + + m_var_type3 = x.m_var_type3; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object TypeDep that will be copied. + */ + eProsima_user_DllExport TypeDep( + TypeDep&& x) noexcept + { + m_var_type1 = std::move(x.m_var_type1); + m_var_type2 = std::move(x.m_var_type2); + m_var_type3 = std::move(x.m_var_type3); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object TypeDep that will be copied. + */ + eProsima_user_DllExport TypeDep& operator =( + const TypeDep& x) + { + + m_var_type1 = x.m_var_type1; + + m_var_type2 = x.m_var_type2; + + m_var_type3 = x.m_var_type3; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object TypeDep that will be copied. + */ + eProsima_user_DllExport TypeDep& operator =( + TypeDep&& x) noexcept + { + + m_var_type1 = std::move(x.m_var_type1); + m_var_type2 = std::move(x.m_var_type2); + m_var_type3 = std::move(x.m_var_type3); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x TypeDep object to compare. + */ + eProsima_user_DllExport bool operator ==( + const TypeDep& x) const + { + return (m_var_type1 == x.m_var_type1 && + m_var_type2 == x.m_var_type2 && + m_var_type3 == x.m_var_type3); + } + + /*! + * @brief Comparison operator. + * @param x TypeDep object to compare. + */ + eProsima_user_DllExport bool operator !=( + const TypeDep& x) const + { + return !(*this == x); + } + + /*! + * @brief This function copies the value in member var_type1 + * @param _var_type1 New value to be copied in member var_type1 + */ + eProsima_user_DllExport void var_type1( + const Type1& _var_type1) + { + m_var_type1 = _var_type1; + } + + /*! + * @brief This function moves the value in member var_type1 + * @param _var_type1 New value to be moved in member var_type1 + */ + eProsima_user_DllExport void var_type1( + Type1&& _var_type1) + { + m_var_type1 = std::move(_var_type1); + } + + /*! + * @brief This function returns a constant reference to member var_type1 + * @return Constant reference to member var_type1 + */ + eProsima_user_DllExport const Type1& var_type1() const + { + return m_var_type1; + } + + /*! + * @brief This function returns a reference to member var_type1 + * @return Reference to member var_type1 + */ + eProsima_user_DllExport Type1& var_type1() + { + return m_var_type1; + } + + + /*! + * @brief This function copies the value in member var_type2 + * @param _var_type2 New value to be copied in member var_type2 + */ + eProsima_user_DllExport void var_type2( + const Type2& _var_type2) + { + m_var_type2 = _var_type2; + } + + /*! + * @brief This function moves the value in member var_type2 + * @param _var_type2 New value to be moved in member var_type2 + */ + eProsima_user_DllExport void var_type2( + Type2&& _var_type2) + { + m_var_type2 = std::move(_var_type2); + } + + /*! + * @brief This function returns a constant reference to member var_type2 + * @return Constant reference to member var_type2 + */ + eProsima_user_DllExport const Type2& var_type2() const + { + return m_var_type2; + } + + /*! + * @brief This function returns a reference to member var_type2 + * @return Reference to member var_type2 + */ + eProsima_user_DllExport Type2& var_type2() + { + return m_var_type2; + } + + + /*! + * @brief This function copies the value in member var_type3 + * @param _var_type3 New value to be copied in member var_type3 + */ + eProsima_user_DllExport void var_type3( + const Type3& _var_type3) + { + m_var_type3 = _var_type3; + } + + /*! + * @brief This function moves the value in member var_type3 + * @param _var_type3 New value to be moved in member var_type3 + */ + eProsima_user_DllExport void var_type3( + Type3&& _var_type3) + { + m_var_type3 = std::move(_var_type3); + } + + /*! + * @brief This function returns a constant reference to member var_type3 + * @return Constant reference to member var_type3 + */ + eProsima_user_DllExport const Type3& var_type3() const + { + return m_var_type3; + } + + /*! + * @brief This function returns a reference to member var_type3 + * @return Reference to member var_type3 + */ + eProsima_user_DllExport Type3& var_type3() + { + return m_var_type3; + } + + + +private: + + Type1 m_var_type1; + Type2 m_var_type2; + Type3 m_var_type3; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_HPP_ + + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.idl b/test/dds/xtypes/idl/XtypesTestsTypeDep.idl new file mode 100644 index 00000000000..6a007befc92 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeDep.idl @@ -0,0 +1,10 @@ +#include "XtypesTestsType1.idl" +#include "XtypesTestsType2.idl" +#include "XtypesTestsType3.idl" + +struct TypeDep +{ + Type1 var_type1; + Type2 var_type2; + Type3 var_type3; +}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp new file mode 100644 index 00000000000..e6b367e22e7 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp @@ -0,0 +1,47 @@ +// 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 XtypesTestsTypeDepCdrAux.hpp + * This source file contains some definitions of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_HPP_ + +#include "XtypesTestsTypeDep.hpp" + +constexpr uint32_t TypeDep_max_cdr_typesize {28UL}; +constexpr uint32_t TypeDep_max_key_cdr_typesize {0UL}; + + + +namespace eprosima { +namespace fastcdr { + +class Cdr; +class CdrSizeCalculator; + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const TypeDep& data); + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_HPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp new file mode 100644 index 00000000000..704902cecb7 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp @@ -0,0 +1,134 @@ +// 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 XtypesTestsTypeDepCdrAux.ipp + * This source file contains some declarations of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_IPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_IPP_ + +#include "XtypesTestsTypeDepCdrAux.hpp" + +#include +#include + + +#include +using namespace eprosima::fastcdr::exception; + +namespace eprosima { +namespace fastcdr { + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const TypeDep& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.var_type1(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.var_type2(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.var_type3(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const TypeDep& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.var_type1() + << eprosima::fastcdr::MemberId(1) << data.var_type2() + << eprosima::fastcdr::MemberId(2) << data.var_type3() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + TypeDep& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.var_type1(); + break; + + case 1: + dcdr >> data.var_type2(); + break; + + case 2: + dcdr >> data.var_type3(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const TypeDep& data) +{ + static_cast(scdr); + static_cast(data); +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_IPP_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx new file mode 100644 index 00000000000..d23260a8be3 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsTypeDepPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "XtypesTestsTypeDepPubSubTypes.h" + +#include +#include + +#include "XtypesTestsTypeDepCdrAux.hpp" +#include "XtypesTestsTypeDepTypeObjectSupport.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; + +TypeDepPubSubType::TypeDepPubSubType() +{ + setName("TypeDep"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(TypeDep::getMaxCdrSerializedSize()); +#else + TypeDep_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = TypeDep_max_key_cdr_typesize > 16 ? TypeDep_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +TypeDepPubSubType::~TypeDepPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool TypeDepPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + TypeDep* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool TypeDepPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + TypeDep* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function TypeDepPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* TypeDepPubSubType::createData() +{ + return reinterpret_cast(new TypeDep()); +} + +void TypeDepPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool TypeDepPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + TypeDep* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + TypeDep_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || TypeDep_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void TypeDepPubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeDep_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsTypeDepCdrAux.ipp" diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.h new file mode 100644 index 00000000000..046e5a76652 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.h @@ -0,0 +1,136 @@ +// 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 XtypesTestsTypeDepPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeDep.hpp" + +#include "XtypesTestsType1PubSubTypes.h" +#include "XtypesTestsType2PubSubTypes.h" +#include "XtypesTestsType3PubSubTypes.h" + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated XtypesTestsTypeDep is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type TypeDep defined by the user in the IDL file. + * @ingroup XtypesTestsTypeDep + */ +class TypeDepPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef TypeDep type; + + eProsima_user_DllExport TypeDepPubSubType(); + + eProsima_user_DllExport ~TypeDepPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_PUBSUBTYPES_H_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx new file mode 100644 index 00000000000..61aebef29d8 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx @@ -0,0 +1,554 @@ +// 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 XtypesTestsTypeDepTypeObjectSupport.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 "XtypesTestsTypeDepTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeDep.hpp" + +#include "XtypesTestsType1.hpp" +#include "XtypesTestsType2.hpp" +#include "XtypesTestsType3.hpp" + +using namespace eprosima::fastdds::dds::xtypes; + +void register_XtypesTestsTypeDep_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + register_Type1_type_identifier(); + + register_Type2_type_identifier(); + + register_Type3_type_identifier(); + + register_TypeDep_type_identifier(); + + }); +} + +void register_TypeDep_type_identifier() +{ + { + StructTypeFlag struct_flags_TypeDep = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_TypeDep; + TypeIdentifierPair type_ids_TypeDep; + QualifiedTypeName type_name_TypeDep = "TypeDep"; + eprosima::fastcdr::optional type_ann_builtin_TypeDep; + eprosima::fastcdr::optional ann_custom_TypeDep; + CompleteTypeDetail detail_TypeDep = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeDep, ann_custom_TypeDep, type_name_TypeDep.to_string()); + CompleteStructHeader header_TypeDep; + header_TypeDep = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeDep); + CompleteStructMemberSeq member_seq_TypeDep; + { + return_code_TypeDep = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_TypeDep); + + if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type1; + TypeIdentifierPair type_ids_Type1; + QualifiedTypeName type_name_Type1 = "Type1"; + eprosima::fastcdr::optional type_ann_builtin_Type1; + eprosima::fastcdr::optional ann_custom_Type1; + CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); + CompleteStructHeader header_Type1; + header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); + CompleteStructMemberSeq member_seq_Type1; + { + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type1); + + if (return_code_Type1 != 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.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_Type1.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); + } + CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_Type1); + if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_var_type1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_var_type1; + MemberId member_id_var_type1 = 0x00000000; + if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || TK_NONE == type_ids_TypeDep.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_var_type1 = TypeObjectUtils::build_common_struct_member(member_id_var_type1, member_flags_var_type1, type_ids_TypeDep.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_var_type1 = TypeObjectUtils::build_common_struct_member(member_id_var_type1, member_flags_var_type1, type_ids_TypeDep.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure var_type1 member TypeIdentifier inconsistent."); + return; + } + MemberName name_var_type1 = "var_type1"; + eprosima::fastcdr::optional member_ann_builtin_var_type1; + ann_custom_TypeDep.reset(); + CompleteMemberDetail detail_var_type1 = TypeObjectUtils::build_complete_member_detail(name_var_type1, member_ann_builtin_var_type1, ann_custom_TypeDep); + CompleteStructMember member_var_type1 = TypeObjectUtils::build_complete_struct_member(common_var_type1, detail_var_type1); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type1); + } + { + return_code_TypeDep = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_TypeDep); + + if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type2; + TypeIdentifierPair type_ids_Type2; + QualifiedTypeName type_name_Type2 = "Type2"; + eprosima::fastcdr::optional type_ann_builtin_Type2; + eprosima::fastcdr::optional ann_custom_Type2; + CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); + CompleteStructHeader header_Type2; + header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); + CompleteStructMemberSeq member_seq_Type2; + { + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_Type2); + + if (return_code_Type2 != 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.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_Type2.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); + } + CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_Type2); + if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_var_type2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_var_type2; + MemberId member_id_var_type2 = 0x00000001; + if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || TK_NONE == type_ids_TypeDep.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_var_type2 = TypeObjectUtils::build_common_struct_member(member_id_var_type2, member_flags_var_type2, type_ids_TypeDep.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_var_type2 = TypeObjectUtils::build_common_struct_member(member_id_var_type2, member_flags_var_type2, type_ids_TypeDep.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure var_type2 member TypeIdentifier inconsistent."); + return; + } + MemberName name_var_type2 = "var_type2"; + eprosima::fastcdr::optional member_ann_builtin_var_type2; + ann_custom_TypeDep.reset(); + CompleteMemberDetail detail_var_type2 = TypeObjectUtils::build_complete_member_detail(name_var_type2, member_ann_builtin_var_type2, ann_custom_TypeDep); + CompleteStructMember member_var_type2 = TypeObjectUtils::build_complete_struct_member(common_var_type2, detail_var_type2); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type2); + } + { + return_code_TypeDep = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_TypeDep); + + if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type3; + TypeIdentifierPair type_ids_Type3; + QualifiedTypeName type_name_Type3 = "Type3"; + eprosima::fastcdr::optional type_ann_builtin_Type3; + eprosima::fastcdr::optional ann_custom_Type3; + CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); + CompleteStructHeader header_Type3; + header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); + CompleteStructMemberSeq member_seq_Type3; + { + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_Type3); + + if (return_code_Type3 != 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_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.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_Type3.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); + } + CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type3 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_Type3); + if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_var_type3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_var_type3; + MemberId member_id_var_type3 = 0x00000002; + if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || TK_NONE == type_ids_TypeDep.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_var_type3 = TypeObjectUtils::build_common_struct_member(member_id_var_type3, member_flags_var_type3, type_ids_TypeDep.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_var_type3 = TypeObjectUtils::build_common_struct_member(member_id_var_type3, member_flags_var_type3, type_ids_TypeDep.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure var_type3 member TypeIdentifier inconsistent."); + return; + } + MemberName name_var_type3 = "var_type3"; + eprosima::fastcdr::optional member_ann_builtin_var_type3; + ann_custom_TypeDep.reset(); + CompleteMemberDetail detail_var_type3 = TypeObjectUtils::build_complete_member_detail(name_var_type3, member_ann_builtin_var_type3, ann_custom_TypeDep); + CompleteStructMember member_var_type3 = TypeObjectUtils::build_complete_struct_member(common_var_type3, detail_var_type3); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type3); + } + CompleteStructType struct_type_TypeDep = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeDep, header_TypeDep, member_seq_TypeDep); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeDep, type_name_TypeDep.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "TypeDep already registered in TypeObjectRegistry for a different type."); + } + return_code_TypeDep = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "TypeDep", type_ids_TypeDep); + if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "TypeDep: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp new file mode 100644 index 00000000000..aaebaf3fe99 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp @@ -0,0 +1,57 @@ +// 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 XtypesTestsTypeDepTypeObjectSupport.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_XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP_ + +#include "XtypesTestsType1TypeObjectSupport.hpp" +#include "XtypesTestsType2TypeObjectSupport.hpp" +#include "XtypesTestsType3TypeObjectSupport.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_XtypesTestsTypeDep_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register TypeDep 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_TypeDep_type_identifier(); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/test/dds/xtypes/idl/XtypesTestsTypes.hpp b/test/dds/xtypes/idl/XtypesTestsTypes.hpp deleted file mode 100644 index 9001a942144..00000000000 --- a/test/dds/xtypes/idl/XtypesTestsTypes.hpp +++ /dev/null @@ -1,567 +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 XtypesTestsTypes.hpp - * This header file contains the declaration of the described types in the IDL file. - * - * This file was generated by the tool fastddsgen. - */ - -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPES_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPES_HPP_ - -#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(XTYPESTESTSTYPES_SOURCE) -#define XTYPESTESTSTYPES_DllAPI __declspec( dllexport ) -#else -#define XTYPESTESTSTYPES_DllAPI __declspec( dllimport ) -#endif // XTYPESTESTSTYPES_SOURCE -#else -#define XTYPESTESTSTYPES_DllAPI -#endif // EPROSIMA_USER_DLL_EXPORT -#else -#define XTYPESTESTSTYPES_DllAPI -#endif // _WIN32 - -/*! - * @brief This class represents the structure Type1 defined by the user in the IDL file. - * @ingroup XtypesTestsTypes - */ -class Type1 -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Type1() - { - } - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Type1() - { - } - - /*! - * @brief Copy constructor. - * @param x Reference to the object Type1 that will be copied. - */ - eProsima_user_DllExport Type1( - const Type1& x) - { - m_index = x.m_index; - - m_message = x.m_message; - - } - - /*! - * @brief Move constructor. - * @param x Reference to the object Type1 that will be copied. - */ - eProsima_user_DllExport Type1( - Type1&& x) noexcept - { - m_index = x.m_index; - m_message = std::move(x.m_message); - } - - /*! - * @brief Copy assignment. - * @param x Reference to the object Type1 that will be copied. - */ - eProsima_user_DllExport Type1& operator =( - const Type1& x) - { - - m_index = x.m_index; - - m_message = x.m_message; - - return *this; - } - - /*! - * @brief Move assignment. - * @param x Reference to the object Type1 that will be copied. - */ - eProsima_user_DllExport Type1& operator =( - Type1&& x) noexcept - { - - m_index = x.m_index; - m_message = std::move(x.m_message); - return *this; - } - - /*! - * @brief Comparison operator. - * @param x Type1 object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Type1& x) const - { - return (m_index == x.m_index && - m_message == x.m_message); - } - - /*! - * @brief Comparison operator. - * @param x Type1 object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Type1& x) const - { - return !(*this == x); - } - - /*! - * @brief This function sets a value in member index - * @param _index New value for member index - */ - eProsima_user_DllExport void index( - uint16_t _index) - { - m_index = _index; - } - - /*! - * @brief This function returns the value of member index - * @return Value of member index - */ - eProsima_user_DllExport uint16_t index() const - { - return m_index; - } - - /*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ - eProsima_user_DllExport uint16_t& index() - { - return m_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 eprosima::fastcdr::fixed_string<128>& _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( - eprosima::fastcdr::fixed_string<128>&& _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 eprosima::fastcdr::fixed_string<128>& message() const - { - return m_message; - } - - /*! - * @brief This function returns a reference to member message - * @return Reference to member message - */ - eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& message() - { - return m_message; - } - - - -private: - - uint16_t m_index{0}; - eprosima::fastcdr::fixed_string<128> m_message; - -}; -/*! - * @brief This class represents the structure Type2 defined by the user in the IDL file. - * @ingroup XtypesTestsTypes - */ -class Type2 -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Type2() - { - } - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Type2() - { - } - - /*! - * @brief Copy constructor. - * @param x Reference to the object Type2 that will be copied. - */ - eProsima_user_DllExport Type2( - const Type2& x) - { - m_index = x.m_index; - - m_message = x.m_message; - - } - - /*! - * @brief Move constructor. - * @param x Reference to the object Type2 that will be copied. - */ - eProsima_user_DllExport Type2( - Type2&& x) noexcept - { - m_index = x.m_index; - m_message = std::move(x.m_message); - } - - /*! - * @brief Copy assignment. - * @param x Reference to the object Type2 that will be copied. - */ - eProsima_user_DllExport Type2& operator =( - const Type2& x) - { - - m_index = x.m_index; - - m_message = x.m_message; - - return *this; - } - - /*! - * @brief Move assignment. - * @param x Reference to the object Type2 that will be copied. - */ - eProsima_user_DllExport Type2& operator =( - Type2&& x) noexcept - { - - m_index = x.m_index; - m_message = std::move(x.m_message); - return *this; - } - - /*! - * @brief Comparison operator. - * @param x Type2 object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Type2& x) const - { - return (m_index == x.m_index && - m_message == x.m_message); - } - - /*! - * @brief Comparison operator. - * @param x Type2 object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Type2& 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( - int16_t _index) - { - m_index = _index; - } - - /*! - * @brief This function returns the value of member index - * @return Value of member index - */ - eProsima_user_DllExport int16_t index() const - { - return m_index; - } - - /*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ - eProsima_user_DllExport int16_t& index() - { - return m_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 eprosima::fastcdr::fixed_string<128>& _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( - eprosima::fastcdr::fixed_string<128>&& _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 eprosima::fastcdr::fixed_string<128>& message() const - { - return m_message; - } - - /*! - * @brief This function returns a reference to member message - * @return Reference to member message - */ - eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& message() - { - return m_message; - } - - - -private: - - int16_t m_index{0}; - eprosima::fastcdr::fixed_string<128> m_message; - -}; -/*! - * @brief This class represents the structure Type3 defined by the user in the IDL file. - * @ingroup XtypesTestsTypes - */ -class Type3 -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Type3() - { - } - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Type3() - { - } - - /*! - * @brief Copy constructor. - * @param x Reference to the object Type3 that will be copied. - */ - eProsima_user_DllExport Type3( - const Type3& x) - { - m_index = x.m_index; - - m_message = x.m_message; - - } - - /*! - * @brief Move constructor. - * @param x Reference to the object Type3 that will be copied. - */ - eProsima_user_DllExport Type3( - Type3&& x) noexcept - { - m_index = x.m_index; - m_message = std::move(x.m_message); - } - - /*! - * @brief Copy assignment. - * @param x Reference to the object Type3 that will be copied. - */ - eProsima_user_DllExport Type3& operator =( - const Type3& x) - { - - m_index = x.m_index; - - m_message = x.m_message; - - return *this; - } - - /*! - * @brief Move assignment. - * @param x Reference to the object Type3 that will be copied. - */ - eProsima_user_DllExport Type3& operator =( - Type3&& x) noexcept - { - - m_index = x.m_index; - m_message = std::move(x.m_message); - return *this; - } - - /*! - * @brief Comparison operator. - * @param x Type3 object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Type3& x) const - { - return (m_index == x.m_index && - m_message == x.m_message); - } - - /*! - * @brief Comparison operator. - * @param x Type3 object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Type3& 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( - int32_t _index) - { - m_index = _index; - } - - /*! - * @brief This function returns the value of member index - * @return Value of member index - */ - eProsima_user_DllExport int32_t index() const - { - return m_index; - } - - /*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ - eProsima_user_DllExport int32_t& index() - { - return m_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 eprosima::fastcdr::fixed_string<128>& _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( - eprosima::fastcdr::fixed_string<128>&& _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 eprosima::fastcdr::fixed_string<128>& message() const - { - return m_message; - } - - /*! - * @brief This function returns a reference to member message - * @return Reference to member message - */ - eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& message() - { - return m_message; - } - - - -private: - - int32_t m_index{0}; - eprosima::fastcdr::fixed_string<128> m_message; - -}; - -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPES_HPP_ - - diff --git a/test/dds/xtypes/idl/XtypesTestsTypes.idl b/test/dds/xtypes/idl/XtypesTestsTypes.idl deleted file mode 100644 index 2ad0b9e41c0..00000000000 --- a/test/dds/xtypes/idl/XtypesTestsTypes.idl +++ /dev/null @@ -1,17 +0,0 @@ -struct Type1 -{ - unsigned short index; - string<128> message; -}; - -struct Type2 -{ - short index; - string<128> message; -}; - -struct Type3 -{ - long index; - string<128> message; -}; \ No newline at end of file diff --git a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp deleted file mode 100644 index 5f50b27247a..00000000000 --- a/test/dds/xtypes/idl/XtypesTestsTypesCdrAux.ipp +++ /dev/null @@ -1,294 +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 XtypesTestsTypesCdrAux.ipp - * This source file contains some declarations of CDR related functions. - * - * This file was generated by the tool fastddsgen. - */ - -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_IPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_IPP_ - -#include "XtypesTestsTypesCdrAux.hpp" - -#include -#include - - -#include -using namespace eprosima::fastcdr::exception; - -namespace eprosima { -namespace fastcdr { - -template<> -eProsima_user_DllExport size_t calculate_serialized_size( - eprosima::fastcdr::CdrSizeCalculator& calculator, - const Type1& data, - size_t& current_alignment) -{ - static_cast(data); - - eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); - size_t calculated_size {calculator.begin_calculate_type_serialized_size( - eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, - current_alignment)}; - - - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); - - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.message(), current_alignment); - - - calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); - - return calculated_size; -} - -template<> -eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& scdr, - const Type1& data) -{ - eprosima::fastcdr::Cdr::state current_state(scdr); - scdr.begin_serialize_type(current_state, - eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); - - scdr - << eprosima::fastcdr::MemberId(0) << data.index() - << eprosima::fastcdr::MemberId(1) << data.message() -; - scdr.end_serialize_type(current_state); -} - -template<> -eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr, - Type1& data) -{ - cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, - [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool - { - bool ret_value = true; - switch (mid.id) - { - case 0: - dcdr >> data.index(); - break; - - case 1: - dcdr >> data.message(); - break; - - default: - ret_value = false; - break; - } - return ret_value; - }); -} - -void serialize_key( - eprosima::fastcdr::Cdr& scdr, - const Type1& data) -{ - static_cast(scdr); - static_cast(data); -} - - -template<> -eProsima_user_DllExport size_t calculate_serialized_size( - eprosima::fastcdr::CdrSizeCalculator& calculator, - const Type2& data, - size_t& current_alignment) -{ - static_cast(data); - - eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); - size_t calculated_size {calculator.begin_calculate_type_serialized_size( - eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, - current_alignment)}; - - - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); - - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.message(), current_alignment); - - - calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); - - return calculated_size; -} - -template<> -eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& scdr, - const Type2& data) -{ - eprosima::fastcdr::Cdr::state current_state(scdr); - scdr.begin_serialize_type(current_state, - eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); - - scdr - << eprosima::fastcdr::MemberId(0) << data.index() - << eprosima::fastcdr::MemberId(1) << data.message() -; - scdr.end_serialize_type(current_state); -} - -template<> -eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr, - Type2& data) -{ - cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, - [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool - { - bool ret_value = true; - switch (mid.id) - { - case 0: - dcdr >> data.index(); - break; - - case 1: - dcdr >> data.message(); - break; - - default: - ret_value = false; - break; - } - return ret_value; - }); -} - -void serialize_key( - eprosima::fastcdr::Cdr& scdr, - const Type2& data) -{ - static_cast(scdr); - static_cast(data); -} - - -template<> -eProsima_user_DllExport size_t calculate_serialized_size( - eprosima::fastcdr::CdrSizeCalculator& calculator, - const Type3& data, - size_t& current_alignment) -{ - static_cast(data); - - eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); - size_t calculated_size {calculator.begin_calculate_type_serialized_size( - eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, - current_alignment)}; - - - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); - - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.message(), current_alignment); - - - calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); - - return calculated_size; -} - -template<> -eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& scdr, - const Type3& data) -{ - eprosima::fastcdr::Cdr::state current_state(scdr); - scdr.begin_serialize_type(current_state, - eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); - - scdr - << eprosima::fastcdr::MemberId(0) << data.index() - << eprosima::fastcdr::MemberId(1) << data.message() -; - scdr.end_serialize_type(current_state); -} - -template<> -eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr, - Type3& data) -{ - cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, - [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool - { - bool ret_value = true; - switch (mid.id) - { - case 0: - dcdr >> data.index(); - break; - - case 1: - dcdr >> data.message(); - break; - - default: - ret_value = false; - break; - } - return ret_value; - }); -} - -void serialize_key( - eprosima::fastcdr::Cdr& scdr, - const Type3& data) -{ - static_cast(scdr); - static_cast(data); -} - - - -} // namespace fastcdr -} // namespace eprosima - -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPESCDRAUX_IPP_ - diff --git a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx deleted file mode 100644 index 602c8ff1214..00000000000 --- a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.cxx +++ /dev/null @@ -1,615 +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 XtypesTestsTypesPubSubTypes.cpp - * This header file contains the implementation of the serialization functions. - * - * This file was generated by the tool fastddsgen. - */ - -#include "XtypesTestsTypesPubSubTypes.h" - -#include -#include - -#include "XtypesTestsTypesCdrAux.hpp" -#include "XtypesTestsTypesTypeObjectSupport.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; - -Type1PubSubType::Type1PubSubType() -{ - setName("Type1"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type1::getMaxCdrSerializedSize()); -#else - Type1_max_cdr_typesize; -#endif - type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type1_max_key_cdr_typesize > 16 ? Type1_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); -} - -Type1PubSubType::~Type1PubSubType() -{ - if (m_keyBuffer != nullptr) - { - free(m_keyBuffer); - } -} - -bool Type1PubSubType::serialize( - void* data, - SerializedPayload_t* payload, - DataRepresentationId_t data_representation) -{ - Type1* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 - ser.set_encoding_flag( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 - - try - { - // Serialize encapsulation - ser.serialize_encapsulation(); - // Serialize the object. - ser << *p_type; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return false; - } - - // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 - return true; -} - -bool Type1PubSubType::deserialize( - SerializedPayload_t* payload, - void* data) -{ - try - { - // Convert DATA to pointer of your type - Type1* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); - - // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); - - // Deserialize encapsulation. - deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; - - // Deserialize the object. - deser >> *p_type; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return false; - } - - return true; -} - -std::function Type1PubSubType::getSerializedSizeProvider( - void* data, - DataRepresentationId_t data_representation) -{ - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type1PubSubType::createData() -{ - return reinterpret_cast(new Type1()); -} - -void Type1PubSubType::deleteData( - void* data) -{ - delete(reinterpret_cast(data)); -} - -bool Type1PubSubType::getKey( - void* data, - InstanceHandle_t* handle, - bool force_md5) -{ - if (!m_isGetKeyDefined) - { - return false; - } - - Type1* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), - Type1_max_key_cdr_typesize); - - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else - eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 - if (force_md5 || Type1_max_key_cdr_typesize > 16) - { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); - for (uint8_t i = 0; i < 16; ++i) - { - handle->value[i] = m_md5.digest[i]; - } - } - else - { - for (uint8_t i = 0; i < 16; ++i) - { - handle->value[i] = m_keyBuffer[i]; - } - } - return true; -} - -void Type1PubSubType::register_type_object_representation() const -{ - register_XtypesTestsTypes_type_objects(); -} - -Type2PubSubType::Type2PubSubType() -{ - setName("Type2"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type2::getMaxCdrSerializedSize()); -#else - Type2_max_cdr_typesize; -#endif - type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type2_max_key_cdr_typesize > 16 ? Type2_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); -} - -Type2PubSubType::~Type2PubSubType() -{ - if (m_keyBuffer != nullptr) - { - free(m_keyBuffer); - } -} - -bool Type2PubSubType::serialize( - void* data, - SerializedPayload_t* payload, - DataRepresentationId_t data_representation) -{ - Type2* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 - ser.set_encoding_flag( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 - - try - { - // Serialize encapsulation - ser.serialize_encapsulation(); - // Serialize the object. - ser << *p_type; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return false; - } - - // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 - return true; -} - -bool Type2PubSubType::deserialize( - SerializedPayload_t* payload, - void* data) -{ - try - { - // Convert DATA to pointer of your type - Type2* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); - - // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); - - // Deserialize encapsulation. - deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; - - // Deserialize the object. - deser >> *p_type; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return false; - } - - return true; -} - -std::function Type2PubSubType::getSerializedSizeProvider( - void* data, - DataRepresentationId_t data_representation) -{ - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type2PubSubType::createData() -{ - return reinterpret_cast(new Type2()); -} - -void Type2PubSubType::deleteData( - void* data) -{ - delete(reinterpret_cast(data)); -} - -bool Type2PubSubType::getKey( - void* data, - InstanceHandle_t* handle, - bool force_md5) -{ - if (!m_isGetKeyDefined) - { - return false; - } - - Type2* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), - Type2_max_key_cdr_typesize); - - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else - eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 - if (force_md5 || Type2_max_key_cdr_typesize > 16) - { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); - for (uint8_t i = 0; i < 16; ++i) - { - handle->value[i] = m_md5.digest[i]; - } - } - else - { - for (uint8_t i = 0; i < 16; ++i) - { - handle->value[i] = m_keyBuffer[i]; - } - } - return true; -} - -void Type2PubSubType::register_type_object_representation() const -{ - register_XtypesTestsTypes_type_objects(); -} - -Type3PubSubType::Type3PubSubType() -{ - setName("Type3"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type3::getMaxCdrSerializedSize()); -#else - Type3_max_cdr_typesize; -#endif - type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type3_max_key_cdr_typesize > 16 ? Type3_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); -} - -Type3PubSubType::~Type3PubSubType() -{ - if (m_keyBuffer != nullptr) - { - free(m_keyBuffer); - } -} - -bool Type3PubSubType::serialize( - void* data, - SerializedPayload_t* payload, - DataRepresentationId_t data_representation) -{ - Type3* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 - ser.set_encoding_flag( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 - - try - { - // Serialize encapsulation - ser.serialize_encapsulation(); - // Serialize the object. - ser << *p_type; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return false; - } - - // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 - return true; -} - -bool Type3PubSubType::deserialize( - SerializedPayload_t* payload, - void* data) -{ - try - { - // Convert DATA to pointer of your type - Type3* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); - - // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); - - // Deserialize encapsulation. - deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; - - // Deserialize the object. - deser >> *p_type; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return false; - } - - return true; -} - -std::function Type3PubSubType::getSerializedSizeProvider( - void* data, - DataRepresentationId_t data_representation) -{ - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type3PubSubType::createData() -{ - return reinterpret_cast(new Type3()); -} - -void Type3PubSubType::deleteData( - void* data) -{ - delete(reinterpret_cast(data)); -} - -bool Type3PubSubType::getKey( - void* data, - InstanceHandle_t* handle, - bool force_md5) -{ - if (!m_isGetKeyDefined) - { - return false; - } - - Type3* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), - Type3_max_key_cdr_typesize); - - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else - eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 - if (force_md5 || Type3_max_key_cdr_typesize > 16) - { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); - for (uint8_t i = 0; i < 16; ++i) - { - handle->value[i] = m_md5.digest[i]; - } - } - else - { - for (uint8_t i = 0; i < 16; ++i) - { - handle->value[i] = m_keyBuffer[i]; - } - } - return true; -} - -void Type3PubSubType::register_type_object_representation() const -{ - register_XtypesTestsTypes_type_objects(); -} - - -// Include auxiliary functions like for serializing/deserializing. -#include "XtypesTestsTypesCdrAux.ipp" diff --git a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h deleted file mode 100644 index a3c1c00999e..00000000000 --- a/test/dds/xtypes/idl/XtypesTestsTypesPubSubTypes.h +++ /dev/null @@ -1,315 +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 XtypesTestsTypesPubSubTypes.h - * This header file contains the declaration of the serialization functions. - * - * This file was generated by the tool fastddsgen. - */ - - -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPES_PUBSUBTYPES_H_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPES_PUBSUBTYPES_H_ - -#include -#include -#include -#include -#include - -#include "XtypesTestsTypes.hpp" - - -#if !defined(GEN_API_VER) || (GEN_API_VER != 2) -#error \ - Generated XtypesTestsTypes is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. -#endif // GEN_API_VER - - -/*! - * @brief This class represents the TopicDataType of the type Type1 defined by the user in the IDL file. - * @ingroup XtypesTestsTypes - */ -class Type1PubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: - - typedef Type1 type; - - eProsima_user_DllExport Type1PubSubType(); - - eProsima_user_DllExport ~Type1PubSubType() override; - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, - eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - - eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, - void* data) override; - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, - eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, - bool force_md5 = false) override; - - eProsima_user_DllExport void* createData() override; - - eProsima_user_DllExport void deleteData( - void* data) override; - - //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; - -#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - -#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } - - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - -#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - eProsima_user_DllExport inline bool construct_sample( - void* memory) const override - { - static_cast(memory); - return false; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - - MD5 m_md5; - unsigned char* m_keyBuffer; - -}; - -/*! - * @brief This class represents the TopicDataType of the type Type2 defined by the user in the IDL file. - * @ingroup XtypesTestsTypes - */ -class Type2PubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: - - typedef Type2 type; - - eProsima_user_DllExport Type2PubSubType(); - - eProsima_user_DllExport ~Type2PubSubType() override; - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, - eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - - eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, - void* data) override; - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, - eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, - bool force_md5 = false) override; - - eProsima_user_DllExport void* createData() override; - - eProsima_user_DllExport void deleteData( - void* data) override; - - //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; - -#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - -#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } - - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - -#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - eProsima_user_DllExport inline bool construct_sample( - void* memory) const override - { - static_cast(memory); - return false; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - - MD5 m_md5; - unsigned char* m_keyBuffer; - -}; - -/*! - * @brief This class represents the TopicDataType of the type Type3 defined by the user in the IDL file. - * @ingroup XtypesTestsTypes - */ -class Type3PubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: - - typedef Type3 type; - - eProsima_user_DllExport Type3PubSubType(); - - eProsima_user_DllExport ~Type3PubSubType() override; - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, - eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - - eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, - void* data) override; - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, - eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, - bool force_md5 = false) override; - - eProsima_user_DllExport void* createData() override; - - eProsima_user_DllExport void deleteData( - void* data) override; - - //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; - -#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - -#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } - - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - -#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - eProsima_user_DllExport inline bool construct_sample( - void* memory) const override - { - static_cast(memory); - return false; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - - MD5 m_md5; - unsigned char* m_keyBuffer; - -}; - -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPES_PUBSUBTYPES_H_ - diff --git a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx deleted file mode 100644 index 5ebee64403e..00000000000 --- a/test/dds/xtypes/idl/XtypesTestsTypesTypeObjectSupport.cxx +++ /dev/null @@ -1,646 +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 XtypesTestsTypesTypeObjectSupport.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 "XtypesTestsTypesTypeObjectSupport.hpp" - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "XtypesTestsTypes.hpp" - - -using namespace eprosima::fastdds::dds::xtypes; - -void register_XtypesTestsTypes_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - register_Type1_type_identifier(); - - register_Type2_type_identifier(); - - register_Type3_type_identifier(); - - }); -} - -void register_Type1_type_identifier() -{ - { - StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type1; - TypeIdentifierPair type_ids_Type1; - QualifiedTypeName type_name_Type1 = "Type1"; - eprosima::fastcdr::optional type_ann_builtin_Type1; - eprosima::fastcdr::optional ann_custom_Type1; - CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); - CompleteStructHeader header_Type1; - header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); - CompleteStructMemberSeq member_seq_Type1; - { - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type1); - - if (return_code_Type1 != 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.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_Type1.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); - } - { - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_Type1); - - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) - { - std::string type_id_kind_anonymous_string_128("TI_STRING8_SMALL"); - if (type_id_kind_anonymous_string_128 == "TI_STRING8_SMALL") - { - SBound bound = static_cast(128); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_128")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); - } - } - else if (type_id_kind_anonymous_string_128 == "TI_STRING8_LARGE") - { - LBound bound = 128; - 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_128")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); - } - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128: Unknown String kind."); - return; - } - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_Type1); - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128: 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type1.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_Type1.reset(); - CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Type1); - CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); - TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_message); - } - CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type1", type_ids_Type1); - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } -} -void register_Type2_type_identifier() -{ - { - StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type2; - TypeIdentifierPair type_ids_Type2; - QualifiedTypeName type_name_Type2 = "Type2"; - eprosima::fastcdr::optional type_ann_builtin_Type2; - eprosima::fastcdr::optional ann_custom_Type2; - CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); - CompleteStructHeader header_Type2; - header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); - CompleteStructMemberSeq member_seq_Type2; - { - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Type2); - - if (return_code_Type2 != 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.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_Type2.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); - } - { - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_Type2); - - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) - { - std::string type_id_kind_anonymous_string_128("TI_STRING8_SMALL"); - if (type_id_kind_anonymous_string_128 == "TI_STRING8_SMALL") - { - SBound bound = static_cast(128); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_128")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); - } - } - else if (type_id_kind_anonymous_string_128 == "TI_STRING8_LARGE") - { - LBound bound = 128; - 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_128")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); - } - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128: Unknown String kind."); - return; - } - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_Type2); - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128: 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type2.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_Type2.reset(); - CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Type2); - CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); - TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_message); - } - CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type2", type_ids_Type2); - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } -} -void register_Type3_type_identifier() -{ - { - StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type3; - TypeIdentifierPair type_ids_Type3; - QualifiedTypeName type_name_Type3 = "Type3"; - eprosima::fastcdr::optional type_ann_builtin_Type3; - eprosima::fastcdr::optional ann_custom_Type3; - CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); - CompleteStructHeader header_Type3; - header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); - CompleteStructMemberSeq member_seq_Type3; - { - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Type3); - - if (return_code_Type3 != 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_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.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_Type3.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); - } - { - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_Type3); - - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) - { - std::string type_id_kind_anonymous_string_128("TI_STRING8_SMALL"); - if (type_id_kind_anonymous_string_128 == "TI_STRING8_SMALL") - { - SBound bound = static_cast(128); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_128")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); - } - } - else if (type_id_kind_anonymous_string_128 == "TI_STRING8_LARGE") - { - LBound bound = 128; - 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_128")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); - } - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128: Unknown String kind."); - return; - } - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_Type3); - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128: 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_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type3.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Type3.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_Type3.reset(); - CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Type3); - CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); - TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_message); - } - CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type3", type_ids_Type3); - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } -} - From aafbb836e113607f53cad5f30ce2353b21004c0c Mon Sep 17 00:00:00 2001 From: adriancampo Date: Sun, 21 Jan 2024 14:02:39 +0100 Subject: [PATCH 05/45] Refs #20165: Changed type creation. Signed-off-by: adriancampo --- .../type_lookup_service/TypeLookupManager.cpp | 2 +- .../TypeLookupReplyListener.cpp | 2 +- .../TypeLookupRequestListener.cpp | 2 +- test/dds/xtypes/TypeLookupPublisher.cpp | 29 +++++++++-------- test/dds/xtypes/TypeLookupPublisher.h | 17 +++++++--- test/dds/xtypes/TypeLookupSubscriber.cpp | 31 ++++++++++--------- test/dds/xtypes/TypeLookupSubscriber.h | 17 +++++++--- test/dds/xtypes/TypeLookupTestsTypes.h | 29 +++++++++++++++++ test/dds/xtypes/idl/XtypesTestsTypeDep.hpp | 20 +++++------- 9 files changed, 94 insertions(+), 55 deletions(-) create mode 100644 test/dds/xtypes/TypeLookupTestsTypes.h diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp index cefce417707..5e679418782 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp @@ -868,4 +868,4 @@ void TypeLookupManager::remove_builtin_reply_writer_history_change( } // namespace dds } // namespace fastdds -} // namespace eprosima +} // namespace eprosima \ No newline at end of file diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp index 2f8639484f0..8dd09b551f8 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp @@ -332,4 +332,4 @@ void TypeLookupReplyListener::on_writer_change_received_by_all( } // namespace dds } // namespace fastdds -} // namespace eprosima +} // namespace eprosima \ No newline at end of file diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp index 6a5c800f3aa..14f06848081 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp @@ -482,4 +482,4 @@ void TypeLookupRequestListener::on_writer_change_received_by_all( } // namespace dds } // namespace fastdds -} // namespace eprosima +} // namespace eprosima \ No newline at end of file diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupPublisher.cpp index 9239e2ab22e..277455fa40a 100644 --- a/test/dds/xtypes/TypeLookupPublisher.cpp +++ b/test/dds/xtypes/TypeLookupPublisher.cpp @@ -80,6 +80,12 @@ bool TypeLookupPublisher::init( return false; } + REGISTER_TYPE(Type1); + REGISTER_TYPE(Type2); + REGISTER_TYPE(Type3); + REGISTER_TYPE(TypeBig); + REGISTER_TYPE(TypeDep); + for (const auto& type : known_types) { create_known_type(type); @@ -96,25 +102,18 @@ bool TypeLookupPublisher::create_known_type( return true; } - bool type_created = false; - if (type == "Type1") - { - type_created = create_known_type_impl(type); - } - else if (type == "Type2") + // Find the type creator in the map + auto it = type_creator_functions_.find(type); + if (it != type_creator_functions_.end()) { - type_created = create_known_type_impl(type); - } - else if (type == "Type3") - { - type_created = create_known_type_impl(type); + // Call the associated type creator function + return it->second(type); } else { - std::cout << "ERROR TypeLookupSubscriber: init uknown type: " << type << std::endl; + std::cout << "ERROR TypeLookupSubscriber: init unknown type: " << type << std::endl; + return false; } - - return type_created; } template @@ -163,7 +162,7 @@ bool TypeLookupPublisher::create_known_type_impl( a_type.callback_ = [type](void* data, int current_sample) { Type* typed_data = static_cast(data); - typed_data->index(current_sample); + //typed_data->index(current_sample); }; known_types_.emplace(type, a_type); diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupPublisher.h index 61ff670b6d3..f13743e2936 100644 --- a/test/dds/xtypes/TypeLookupPublisher.h +++ b/test/dds/xtypes/TypeLookupPublisher.h @@ -25,13 +25,12 @@ #include #include -#include "idl/XtypesTestsType1PubSubTypes.h" -#include "idl/XtypesTestsType2PubSubTypes.h" -#include "idl/XtypesTestsType3PubSubTypes.h" +#include "TypeLookupTestsTypes.h" -#include #include -#include +#include +#include +#include namespace eprosima { namespace fastdds { @@ -61,6 +60,13 @@ struct PubKnownType std::function callback_; }; +// Define a macro to simplify type registration +#define REGISTER_TYPE(Type) \ + type_creator_functions_[#Type] = std::bind(&TypeLookupPublisher::create_known_type_impl, \ + this, \ + std::placeholders::_1) + + class TypeLookupPublisher : public DomainParticipantListener { @@ -111,6 +117,7 @@ class TypeLookupPublisher DomainParticipant* participant_ = nullptr; + std::map> type_creator_functions_; std::map known_types_; }; diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupSubscriber.cpp index ec1d718445b..320b7256cba 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupSubscriber.cpp @@ -80,6 +80,13 @@ bool TypeLookupSubscriber::init( std::cout << "ERROR TypeLookupSubscriber: create_participant" << std::endl; return false; } + + REGISTER_TYPE(Type1); + REGISTER_TYPE(Type2); + REGISTER_TYPE(Type3); + REGISTER_TYPE(TypeBig); + REGISTER_TYPE(TypeDep); + for (const auto& type : known_types) { create_known_type(type); @@ -97,25 +104,18 @@ bool TypeLookupSubscriber::create_known_type( return true; } - bool type_created = false; - if (type == "Type1") - { - type_created = create_known_type_impl(type); - } - else if (type == "Type2") + // Find the type creator in the map + auto it = type_creator_functions_.find(type); + if (it != type_creator_functions_.end()) { - type_created = create_known_type_impl(type); - } - else if (type == "Type3") - { - type_created = create_known_type_impl(type); + // Call the associated type creator function + return it->second(type); } else { - std::cout << "ERROR TypeLookupSubscriber: init uknown type: " << type << std::endl; + std::cout << "ERROR TypeLookupSubscriber: init unknown type: " << type << std::endl; + return false; } - - return type_created; } template @@ -159,7 +159,8 @@ bool TypeLookupSubscriber::create_known_type_impl( a_type.callback_ = [](void* data) { Type* sample = static_cast(data); - std::cout << "index(" << sample->index() << ")" << std::endl; + //std::cout << "index(" << sample->index() << ")" << std::endl; + std::cout << ")" << std::endl; }; known_types_.emplace(type, a_type); diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupSubscriber.h index 1eb7cdff3ad..cac67582dc2 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.h +++ b/test/dds/xtypes/TypeLookupSubscriber.h @@ -26,14 +26,14 @@ #include #include -#include "idl/XtypesTestsType1PubSubTypes.h" -#include "idl/XtypesTestsType2PubSubTypes.h" -#include "idl/XtypesTestsType3PubSubTypes.h" +#include "TypeLookupTestsTypes.h" -#include +#include #include +#include #include -#include +#include +#include namespace eprosima { namespace fastdds { @@ -63,6 +63,12 @@ struct SubKnownType std::function callback_; }; +// Define a macro to simplify type registration +#define REGISTER_TYPE(Type) \ + type_creator_functions_[#Type] = std::bind(&TypeLookupSubscriber::create_known_type_impl, \ + this, \ + std::placeholders::_1) + class TypeLookupSubscriber : public DomainParticipantListener { @@ -117,6 +123,7 @@ class TypeLookupSubscriber DomainParticipant* participant_ = nullptr; + std::map> type_creator_functions_; std::map known_types_; }; diff --git a/test/dds/xtypes/TypeLookupTestsTypes.h b/test/dds/xtypes/TypeLookupTestsTypes.h new file mode 100644 index 00000000000..e36f7a850a9 --- /dev/null +++ b/test/dds/xtypes/TypeLookupTestsTypes.h @@ -0,0 +1,29 @@ +// 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. +// 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 TypeLookupTestsTypes.h + * + */ + +#ifndef _TYPELOOKUPTEST_TYPES_H_ +#define _TYPELOOKUPTEST_TYPES_H_ + +#include "idl/XtypesTestsType1PubSubTypes.h" +#include "idl/XtypesTestsType2PubSubTypes.h" +#include "idl/XtypesTestsType3PubSubTypes.h" +#include "idl/XtypesTestsTypeBigPubSubTypes.h" +#include "idl/XtypesTestsTypeDepPubSubTypes.h" + +#endif /* _TYPELOOKUPTEST_TYPES_H_ */ \ No newline at end of file diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp index 55847a8990c..c556693490a 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp @@ -81,11 +81,11 @@ class TypeDep eProsima_user_DllExport TypeDep( const TypeDep& x) { - m_var_type1 = x.m_var_type1; + m_var_type1 = x.m_var_type1; - m_var_type2 = x.m_var_type2; + m_var_type2 = x.m_var_type2; - m_var_type3 = x.m_var_type3; + m_var_type3 = x.m_var_type3; } @@ -109,11 +109,11 @@ class TypeDep const TypeDep& x) { - m_var_type1 = x.m_var_type1; + m_var_type1 = x.m_var_type1; - m_var_type2 = x.m_var_type2; + m_var_type2 = x.m_var_type2; - m_var_type3 = x.m_var_type3; + m_var_type3 = x.m_var_type3; return *this; } @@ -140,8 +140,8 @@ class TypeDep const TypeDep& x) const { return (m_var_type1 == x.m_var_type1 && - m_var_type2 == x.m_var_type2 && - m_var_type3 == x.m_var_type3); + m_var_type2 == x.m_var_type2 && + m_var_type3 == x.m_var_type3); } /*! @@ -192,7 +192,6 @@ class TypeDep return m_var_type1; } - /*! * @brief This function copies the value in member var_type2 * @param _var_type2 New value to be copied in member var_type2 @@ -231,7 +230,6 @@ class TypeDep return m_var_type2; } - /*! * @brief This function copies the value in member var_type3 * @param _var_type3 New value to be copied in member var_type3 @@ -270,8 +268,6 @@ class TypeDep return m_var_type3; } - - private: Type1 m_var_type1; From 13e6804d7db2657cef96c4f621f93f73895ef370 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Sun, 21 Jan 2024 20:11:45 +0100 Subject: [PATCH 06/45] Refs #20165: Added all types. Signed-off-by: adriancampo --- test/dds/xtypes/Case8.json | 87 +- test/dds/xtypes/TypeLookupPublisher.cpp | 138 +- test/dds/xtypes/TypeLookupPublisher.h | 8 +- test/dds/xtypes/TypeLookupSubscriber.cpp | 134 +- test/dds/xtypes/TypeLookupSubscriber.h | 10 +- test/dds/xtypes/TypeLookup_main.cpp | 4 +- test/dds/xtypes/idl/XtypesTestsTypeBig.hpp | 16709 ++++++++++- test/dds/xtypes/idl/XtypesTestsTypeBig.idl | 494 +- .../xtypes/idl/XtypesTestsTypeBigCdrAux.hpp | 683 +- .../xtypes/idl/XtypesTestsTypeBigCdrAux.ipp | 8188 ++++- .../idl/XtypesTestsTypeBigPubSubTypes.cxx | 18721 ++++++++++++ .../idl/XtypesTestsTypeBigPubSubTypes.h | 8827 ++++++ .../XtypesTestsTypeBigTypeObjectSupport.cxx | 24932 +++++++++++++++- .../XtypesTestsTypeBigTypeObjectSupport.hpp | 679 + test/dds/xtypes/idl/XtypesTestsTypeDep.hpp | 59 +- test/dds/xtypes/idl/XtypesTestsTypeDep.idl | 1 + .../xtypes/idl/XtypesTestsTypeDepCdrAux.hpp | 2 +- .../xtypes/idl/XtypesTestsTypeDepCdrAux.ipp | 22 +- .../XtypesTestsTypeDepTypeObjectSupport.cxx | 313 +- test/dds/xtypes/test_build.py | 2 +- 20 files changed, 79542 insertions(+), 471 deletions(-) diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/Case8.json index 8b2522f9798..4dcf4815e12 100644 --- a/test/dds/xtypes/Case8.json +++ b/test/dds/xtypes/Case8.json @@ -3,9 +3,18 @@ "participants": [ { "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_types": "39", + "samples": "3", + "timeout": "100", + "expected_types": "100", + "known_types": [ + "Type1" + ] + }, + { + "kind": "publisher", + "samples": "3", + "timeout": "100", + "expected_types": "100", "known_types": [ "Type1", "Type2", @@ -45,16 +54,68 @@ "Type36", "Type37", "Type38", - "Type39" - ] - }, - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_types": "39", - "known_types": [ - "Type1" + "Type39", + "Type40", + "Type41", + "Type42", + "Type43", + "Type44", + "Type45", + "Type46", + "Type47", + "Type48", + "Type49", + "Type50", + "Type51", + "Type52", + "Type53", + "Type54", + "Type55", + "Type56", + "Type57", + "Type58", + "Type59", + "Type60", + "Type61", + "Type62", + "Type63", + "Type64", + "Type65", + "Type66", + "Type67", + "Type68", + "Type69", + "Type70", + "Type71", + "Type72", + "Type73", + "Type74", + "Type75", + "Type76", + "Type77", + "Type78", + "Type79", + "Type80", + "Type81", + "Type82", + "Type83", + "Type84", + "Type85", + "Type86", + "Type87", + "Type88", + "Type89", + "Type90", + "Type91", + "Type92", + "Type93", + "Type94", + "Type95", + "Type96", + "Type97", + "Type98", + "Type99", + "Type100" ] } ] diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupPublisher.cpp index 277455fa40a..b8c62fcf498 100644 --- a/test/dds/xtypes/TypeLookupPublisher.cpp +++ b/test/dds/xtypes/TypeLookupPublisher.cpp @@ -39,7 +39,6 @@ using namespace eprosima::fastdds::dds; using namespace eprosima::fastrtps::rtps; static int PUB_DOMAIN_ID_ = 10; -static int PUB_MAX_TIMEOUT_ = 10; TypeLookupPublisher::~TypeLookupPublisher() { @@ -65,9 +64,118 @@ TypeLookupPublisher::~TypeLookupPublisher() } } +void TypeLookupPublisher::create_type_creator_functions() +{ + PUBLISHER_TYPE_CREATOR_FUNCTION(Type1); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type2); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type3); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type3); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type4); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type5); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type6); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type7); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type8); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type9); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type10); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type11); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type12); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type13); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type14); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type15); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type16); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type17); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type18); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type19); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type20); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type21); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type22); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type23); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type24); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type25); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type26); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type27); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type28); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type29); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type30); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type31); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type32); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type33); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type34); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type35); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type36); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type37); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type38); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type39); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type40); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type41); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type42); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type43); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type44); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type45); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type46); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type47); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type48); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type49); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type50); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type51); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type52); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type53); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type54); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type55); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type56); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type57); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type58); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type59); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type60); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type61); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type62); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type63); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type64); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type65); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type66); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type67); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type68); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type69); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type70); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type71); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type72); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type73); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type74); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type75); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type76); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type77); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type78); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type79); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type80); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type81); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type82); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type83); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type84); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type85); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type86); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type87); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type88); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type89); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type90); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type91); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type92); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type93); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type94); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type95); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type96); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type97); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type98); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type99); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type100); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeBig); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeDep); +} + bool TypeLookupPublisher::init( std::vector known_types) { + create_type_creator_functions(); + LibrarySettings settings; settings.intraprocess_delivery = INTRAPROCESS_OFF; DomainParticipantFactory::get_instance()->set_library_settings(settings); @@ -80,12 +188,6 @@ bool TypeLookupPublisher::init( return false; } - REGISTER_TYPE(Type1); - REGISTER_TYPE(Type2); - REGISTER_TYPE(Type3); - REGISTER_TYPE(TypeBig); - REGISTER_TYPE(TypeDep); - for (const auto& type : known_types) { create_known_type(type); @@ -162,7 +264,7 @@ bool TypeLookupPublisher::create_known_type_impl( a_type.callback_ = [type](void* data, int current_sample) { Type* typed_data = static_cast(data); - //typed_data->index(current_sample); + typed_data->index(current_sample); }; known_types_.emplace(type, a_type); @@ -181,20 +283,24 @@ bool TypeLookupPublisher::wait_discovery( uint32_t expected_match, uint32_t timeout) { - std::unique_lock lock(mutex_); - bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() + std::unique_lock lock(matched_mutex_); + bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), + [&]() { + std::cout << "TypeLookupPublisher::wait_discovery(" << + matched_ << "/" << expected_match << ")" << std::endl; return matched_ == expected_match; }); return result; } bool TypeLookupPublisher::run( - uint32_t samples) + uint32_t samples, + uint32_t timeout) { std::unique_lock lock(mutex_); return cv_.wait_for( - lock, std::chrono::seconds(PUB_MAX_TIMEOUT_), [&] + lock, std::chrono::seconds(timeout), [&] { uint32_t current_sample = 0; void* sample = nullptr; @@ -204,17 +310,17 @@ bool TypeLookupPublisher::run( for (auto it = known_types_.begin(); it != known_types_.end(); ++it) { sample = it->second.type_.create_data(); - it->second.callback_(sample, current_sample); std::cout << "Publisher " << it->second.type_.get_type_name() << " writting sample: " << current_sample << std::endl; + it->second.writer_->write(sample); it->second.type_.delete_data(sample); ++sent_samples_[it->second.writer_->guid()]; - std::this_thread::sleep_for(std::chrono::milliseconds(100)); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); } ++current_sample; } @@ -226,7 +332,7 @@ void TypeLookupPublisher::on_publication_matched( DataWriter* /*writer*/, const PublicationMatchedStatus& info) { - std::unique_lock lock(mutex_); + std::unique_lock lock(matched_mutex_); if (info.current_count_change == 1) { ++matched_; @@ -237,7 +343,7 @@ void TypeLookupPublisher::on_publication_matched( } else { - std::cout << "ERROR TypeLookupSubscriber: info.current_count_change" << std::endl; + std::cout << "ERROR TypeLookupPublisher: info.current_count_change" << std::endl; } cv_.notify_all(); } diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupPublisher.h index f13743e2936..0a202e0edf5 100644 --- a/test/dds/xtypes/TypeLookupPublisher.h +++ b/test/dds/xtypes/TypeLookupPublisher.h @@ -61,7 +61,7 @@ struct PubKnownType }; // Define a macro to simplify type registration -#define REGISTER_TYPE(Type) \ +#define PUBLISHER_TYPE_CREATOR_FUNCTION(Type) \ type_creator_functions_[#Type] = std::bind(&TypeLookupPublisher::create_known_type_impl, \ this, \ std::placeholders::_1) @@ -78,6 +78,8 @@ class TypeLookupPublisher ~TypeLookupPublisher(); + void create_type_creator_functions(); + bool init( std::vector known_types); @@ -96,7 +98,8 @@ class TypeLookupPublisher uint32_t timeout); bool run( - uint32_t samples); + uint32_t samples, + uint32_t timeout); void on_publication_matched( DataWriter* /*writer*/, @@ -111,6 +114,7 @@ class TypeLookupPublisher std::mutex mutex_; std::condition_variable cv_; + std::mutex matched_mutex_; unsigned int matched_ = 0; std::map sent_samples_; diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupSubscriber.cpp index 320b7256cba..2b3a4dffeba 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupSubscriber.cpp @@ -36,7 +36,6 @@ using namespace eprosima::fastdds::dds; using namespace eprosima::fastrtps::rtps; static int SUB_DOMAIN_ID_ = 10; -static int SUB_MAX_TIMEOUT_ = 10; TypeLookupSubscriber::~TypeLookupSubscriber() { @@ -62,9 +61,118 @@ TypeLookupSubscriber::~TypeLookupSubscriber() } } +void TypeLookupSubscriber::create_type_creator_functions() +{ + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type1); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type2); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type3); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type3); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type4); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type5); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type6); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type7); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type9); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type10); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type11); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type12); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type13); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type14); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type15); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type17); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type18); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type19); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type20); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type21); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type22); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type23); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type24); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type25); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type26); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type27); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type28); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type29); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type30); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type31); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type33); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type34); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type35); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type36); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type37); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type38); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type39); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type40); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type41); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type42); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type43); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type44); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type45); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type46); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type47); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type48); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type49); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type50); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type51); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type52); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type53); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type54); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type55); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type56); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type57); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type58); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type59); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type60); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type61); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type62); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type63); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type65); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type66); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type67); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type68); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type69); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type70); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type71); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type72); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type73); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type74); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type75); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type76); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type77); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type78); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type79); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type80); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type81); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type82); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type83); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type84); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type85); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type86); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type87); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type88); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type89); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type90); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type91); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type92); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type93); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type94); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type95); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type96); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type97); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type98); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type99); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type100); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeBig); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeDep); +} + bool TypeLookupSubscriber::init( std::vector known_types) { + create_type_creator_functions(); + LibrarySettings settings; settings.intraprocess_delivery = INTRAPROCESS_OFF; DomainParticipantFactory::get_instance()->set_library_settings(settings); @@ -81,12 +189,6 @@ bool TypeLookupSubscriber::init( return false; } - REGISTER_TYPE(Type1); - REGISTER_TYPE(Type2); - REGISTER_TYPE(Type3); - REGISTER_TYPE(TypeBig); - REGISTER_TYPE(TypeDep); - for (const auto& type : known_types) { create_known_type(type); @@ -159,8 +261,7 @@ bool TypeLookupSubscriber::create_known_type_impl( a_type.callback_ = [](void* data) { Type* sample = static_cast(data); - //std::cout << "index(" << sample->index() << ")" << std::endl; - std::cout << ")" << std::endl; + std::cout << "index(" << sample->index() << ")" << std::endl; }; known_types_.emplace(type, a_type); @@ -180,9 +281,12 @@ bool TypeLookupSubscriber::wait_discovery( uint32_t expected_match, uint32_t timeout) { - std::unique_lock lock(mutex_); - bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() + std::unique_lock lock(matched_mutex_); + bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), + [&]() { + std::cout << "TypeLookupSubscriber::wait_discovery(" << + matched_ << "/" << expected_match << ")" << std::endl; return matched_ == expected_match; }); @@ -190,11 +294,12 @@ bool TypeLookupSubscriber::wait_discovery( } bool TypeLookupSubscriber::run( - uint32_t samples) + uint32_t samples, + uint32_t timeout) { std::unique_lock lock(mutex_); return cv_.wait_for( - lock, std::chrono::seconds(SUB_MAX_TIMEOUT_), [&] + lock, std::chrono::seconds(timeout), [&] { if (known_types_.size() != received_samples_.size()) { @@ -217,7 +322,7 @@ void TypeLookupSubscriber::on_subscription_matched( DataReader* /*reader*/, const SubscriptionMatchedStatus& info) { - std::unique_lock lock(mutex_); + std::unique_lock lock(matched_mutex_); if (info.current_count_change == 1) { ++matched_; @@ -247,6 +352,7 @@ void TypeLookupSubscriber::on_data_available( " received sample:" << info.sample_identity.sequence_number() << "->"; // Call the callback function to process the received data known_types_[reader->type().get_type_name()].callback_(sample_data); + received_samples_[info.sample_identity.writer_guid()]++; cv_.notify_all(); } diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupSubscriber.h index cac67582dc2..2ef967e9b9f 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.h +++ b/test/dds/xtypes/TypeLookupSubscriber.h @@ -32,7 +32,6 @@ #include #include #include -#include #include namespace eprosima { @@ -64,7 +63,7 @@ struct SubKnownType }; // Define a macro to simplify type registration -#define REGISTER_TYPE(Type) \ +#define SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type) \ type_creator_functions_[#Type] = std::bind(&TypeLookupSubscriber::create_known_type_impl, \ this, \ std::placeholders::_1) @@ -80,6 +79,8 @@ class TypeLookupSubscriber ~TypeLookupSubscriber(); + void create_type_creator_functions(); + bool init( std::vector known_types); @@ -98,7 +99,8 @@ class TypeLookupSubscriber uint32_t timeout); bool run( - uint32_t samples); + uint32_t samples, + uint32_t timeout); void on_subscription_matched( DataReader* /*reader*/, @@ -116,6 +118,8 @@ class TypeLookupSubscriber std::mutex mutex_; std::condition_variable cv_; + + std::mutex matched_mutex_; unsigned int matched_ = 0; std::mutex received_samples_mutex_; diff --git a/test/dds/xtypes/TypeLookup_main.cpp b/test/dds/xtypes/TypeLookup_main.cpp index 10f26143bf3..c9bcc299a01 100644 --- a/test/dds/xtypes/TypeLookup_main.cpp +++ b/test/dds/xtypes/TypeLookup_main.cpp @@ -122,13 +122,13 @@ int main( eprosima::fastdds::dds::TypeLookupPublisher pub; return (pub.init(args.known_types) && pub.wait_discovery(args.expected_types, args.timeout) && - pub.run(args.samples)) ? 0 : -1; + pub.run(args.samples, args.timeout)) ? 0 : -1; } case 2: { eprosima::fastdds::dds::TypeLookupSubscriber sub; return (sub.init(args.known_types) && sub.wait_discovery(args.expected_types, args.timeout) && - sub.run(args.samples)) ? 0 : -1; + sub.run(args.samples, args.timeout)) ? 0 : -1; } default: std::cout << "Invalid participant type. Use 'publisher' or 'subscriber'." << std::endl; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp index 3fc5cffe3dc..4846cd94377 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp @@ -53,230 +53,16757 @@ #endif // _WIN32 /*! - * @brief This class represents the structure TypeBig defined by the user in the IDL file. + * @brief This class represents the structure Type4 defined by the user in the IDL file. * @ingroup XtypesTestsTypeBig */ -class TypeBig +class Type4 { public: /*! * @brief Default constructor. */ - eProsima_user_DllExport TypeBig() + eProsima_user_DllExport Type4() { } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~TypeBig() + eProsima_user_DllExport ~Type4() { } /*! * @brief Copy constructor. - * @param x Reference to the object TypeBig that will be copied. + * @param x Reference to the object Type4 that will be copied. */ - eProsima_user_DllExport TypeBig( - const TypeBig& x) + eProsima_user_DllExport Type4( + const Type4& x) { - m_dep1 = x.m_dep1; - - m_dep2 = x.m_dep2; - - m_dep3 = x.m_dep3; + m_index = x.m_index; } /*! * @brief Move constructor. - * @param x Reference to the object TypeBig that will be copied. + * @param x Reference to the object Type4 that will be copied. */ - eProsima_user_DllExport TypeBig( - TypeBig&& x) noexcept + eProsima_user_DllExport Type4( + Type4&& x) noexcept { - m_dep1 = std::move(x.m_dep1); - m_dep2 = std::move(x.m_dep2); - m_dep3 = std::move(x.m_dep3); + m_index = x.m_index; } /*! * @brief Copy assignment. - * @param x Reference to the object TypeBig that will be copied. + * @param x Reference to the object Type4 that will be copied. */ - eProsima_user_DllExport TypeBig& operator =( - const TypeBig& x) + eProsima_user_DllExport Type4& operator =( + const Type4& x) { - m_dep1 = x.m_dep1; + m_index = x.m_index; - m_dep2 = x.m_dep2; + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type4 that will be copied. + */ + eProsima_user_DllExport Type4& operator =( + Type4&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type4 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type4& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type4 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type4& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } - m_dep3 = x.m_dep3; + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type5 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type5 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type5() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type5() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type5 that will be copied. + */ + eProsima_user_DllExport Type5( + const Type5& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type5 that will be copied. + */ + eProsima_user_DllExport Type5( + Type5&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type5 that will be copied. + */ + eProsima_user_DllExport Type5& operator =( + const Type5& x) + { + + m_index = x.m_index; return *this; } /*! * @brief Move assignment. - * @param x Reference to the object TypeBig that will be copied. + * @param x Reference to the object Type5 that will be copied. */ - eProsima_user_DllExport TypeBig& operator =( - TypeBig&& x) noexcept + eProsima_user_DllExport Type5& operator =( + Type5&& x) noexcept { - m_dep1 = std::move(x.m_dep1); - m_dep2 = std::move(x.m_dep2); - m_dep3 = std::move(x.m_dep3); + m_index = x.m_index; return *this; } /*! * @brief Comparison operator. - * @param x TypeBig object to compare. + * @param x Type5 object to compare. */ eProsima_user_DllExport bool operator ==( - const TypeBig& x) const + const Type5& x) const { - return (m_dep1 == x.m_dep1 && - m_dep2 == x.m_dep2 && - m_dep3 == x.m_dep3); + return (m_index == x.m_index); } /*! * @brief Comparison operator. - * @param x TypeBig object to compare. + * @param x Type5 object to compare. */ eProsima_user_DllExport bool operator !=( - const TypeBig& x) const + const Type5& x) const { return !(*this == x); } /*! - * @brief This function copies the value in member dep1 - * @param _dep1 New value to be copied in member dep1 + * @brief This function sets a value in member index + * @param _index New value for member index */ - eProsima_user_DllExport void dep1( - const Type1& _dep1) + eProsima_user_DllExport void index( + uint16_t _index) { - m_dep1 = _dep1; + m_index = _index; } /*! - * @brief This function moves the value in member dep1 - * @param _dep1 New value to be moved in member dep1 + * @brief This function returns the value of member index + * @return Value of member index */ - eProsima_user_DllExport void dep1( - Type1&& _dep1) + eProsima_user_DllExport uint16_t index() const { - m_dep1 = std::move(_dep1); + return m_index; } /*! - * @brief This function returns a constant reference to member dep1 - * @return Constant reference to member dep1 + * @brief This function returns a reference to member index + * @return Reference to member index */ - eProsima_user_DllExport const Type1& dep1() const + eProsima_user_DllExport uint16_t& index() { - return m_dep1; + return m_index; } + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type6 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type6 +{ +public: + /*! - * @brief This function returns a reference to member dep1 - * @return Reference to member dep1 + * @brief Default constructor. */ - eProsima_user_DllExport Type1& dep1() + eProsima_user_DllExport Type6() { - return m_dep1; } + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type6() + { + } /*! - * @brief This function copies the value in member dep2 - * @param _dep2 New value to be copied in member dep2 + * @brief Copy constructor. + * @param x Reference to the object Type6 that will be copied. */ - eProsima_user_DllExport void dep2( - const Type2& _dep2) + eProsima_user_DllExport Type6( + const Type6& x) { - m_dep2 = _dep2; + m_index = x.m_index; + } /*! - * @brief This function moves the value in member dep2 - * @param _dep2 New value to be moved in member dep2 + * @brief Move constructor. + * @param x Reference to the object Type6 that will be copied. */ - eProsima_user_DllExport void dep2( - Type2&& _dep2) + eProsima_user_DllExport Type6( + Type6&& x) noexcept { - m_dep2 = std::move(_dep2); + m_index = x.m_index; } /*! - * @brief This function returns a constant reference to member dep2 - * @return Constant reference to member dep2 + * @brief Copy assignment. + * @param x Reference to the object Type6 that will be copied. */ - eProsima_user_DllExport const Type2& dep2() const + eProsima_user_DllExport Type6& operator =( + const Type6& x) { - return m_dep2; + + m_index = x.m_index; + + return *this; } /*! - * @brief This function returns a reference to member dep2 - * @return Reference to member dep2 + * @brief Move assignment. + * @param x Reference to the object Type6 that will be copied. */ - eProsima_user_DllExport Type2& dep2() + eProsima_user_DllExport Type6& operator =( + Type6&& x) noexcept { - return m_dep2; + + m_index = x.m_index; + return *this; } + /*! + * @brief Comparison operator. + * @param x Type6 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type6& x) const + { + return (m_index == x.m_index); + } /*! - * @brief This function copies the value in member dep3 - * @param _dep3 New value to be copied in member dep3 + * @brief Comparison operator. + * @param x Type6 object to compare. */ - eProsima_user_DllExport void dep3( - const Type3& _dep3) + eProsima_user_DllExport bool operator !=( + const Type6& x) const { - m_dep3 = _dep3; + return !(*this == x); } /*! - * @brief This function moves the value in member dep3 - * @param _dep3 New value to be moved in member dep3 + * @brief This function sets a value in member index + * @param _index New value for member index */ - eProsima_user_DllExport void dep3( - Type3&& _dep3) + eProsima_user_DllExport void index( + uint16_t _index) { - m_dep3 = std::move(_dep3); + m_index = _index; } /*! - * @brief This function returns a constant reference to member dep3 - * @return Constant reference to member dep3 + * @brief This function returns the value of member index + * @return Value of member index */ - eProsima_user_DllExport const Type3& dep3() const + eProsima_user_DllExport uint16_t index() const { - return m_dep3; + return m_index; } /*! - * @brief This function returns a reference to member dep3 - * @return Reference to member dep3 + * @brief This function returns a reference to member index + * @return Reference to member index */ - eProsima_user_DllExport Type3& dep3() + eProsima_user_DllExport uint16_t& index() { - return m_dep3; + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type7 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type7 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type7() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type7() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type7 that will be copied. + */ + eProsima_user_DllExport Type7( + const Type7& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type7 that will be copied. + */ + eProsima_user_DllExport Type7( + Type7&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type7 that will be copied. + */ + eProsima_user_DllExport Type7& operator =( + const Type7& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type7 that will be copied. + */ + eProsima_user_DllExport Type7& operator =( + Type7&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type7 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type7& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type7 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type7& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type8 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type8 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type8() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type8() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type8 that will be copied. + */ + eProsima_user_DllExport Type8( + const Type8& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type8 that will be copied. + */ + eProsima_user_DllExport Type8( + Type8&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type8 that will be copied. + */ + eProsima_user_DllExport Type8& operator =( + const Type8& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type8 that will be copied. + */ + eProsima_user_DllExport Type8& operator =( + Type8&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type8 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type8& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type8 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type8& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type9 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type9 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type9() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type9() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type9 that will be copied. + */ + eProsima_user_DllExport Type9( + const Type9& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type9 that will be copied. + */ + eProsima_user_DllExport Type9( + Type9&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type9 that will be copied. + */ + eProsima_user_DllExport Type9& operator =( + const Type9& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type9 that will be copied. + */ + eProsima_user_DllExport Type9& operator =( + Type9&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type9 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type9& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type9 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type9& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type10 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type10 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type10() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type10() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type10 that will be copied. + */ + eProsima_user_DllExport Type10( + const Type10& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type10 that will be copied. + */ + eProsima_user_DllExport Type10( + Type10&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type10 that will be copied. + */ + eProsima_user_DllExport Type10& operator =( + const Type10& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type10 that will be copied. + */ + eProsima_user_DllExport Type10& operator =( + Type10&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type10 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type10& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type10 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type10& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type11 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type11 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type11() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type11() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type11 that will be copied. + */ + eProsima_user_DllExport Type11( + const Type11& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type11 that will be copied. + */ + eProsima_user_DllExport Type11( + Type11&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type11 that will be copied. + */ + eProsima_user_DllExport Type11& operator =( + const Type11& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type11 that will be copied. + */ + eProsima_user_DllExport Type11& operator =( + Type11&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type11 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type11& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type11 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type11& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type12 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type12 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type12() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type12() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type12 that will be copied. + */ + eProsima_user_DllExport Type12( + const Type12& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type12 that will be copied. + */ + eProsima_user_DllExport Type12( + Type12&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type12 that will be copied. + */ + eProsima_user_DllExport Type12& operator =( + const Type12& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type12 that will be copied. + */ + eProsima_user_DllExport Type12& operator =( + Type12&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type12 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type12& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type12 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type12& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type13 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type13 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type13() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type13() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type13 that will be copied. + */ + eProsima_user_DllExport Type13( + const Type13& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type13 that will be copied. + */ + eProsima_user_DllExport Type13( + Type13&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type13 that will be copied. + */ + eProsima_user_DllExport Type13& operator =( + const Type13& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type13 that will be copied. + */ + eProsima_user_DllExport Type13& operator =( + Type13&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type13 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type13& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type13 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type13& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type14 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type14 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type14() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type14() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type14 that will be copied. + */ + eProsima_user_DllExport Type14( + const Type14& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type14 that will be copied. + */ + eProsima_user_DllExport Type14( + Type14&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type14 that will be copied. + */ + eProsima_user_DllExport Type14& operator =( + const Type14& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type14 that will be copied. + */ + eProsima_user_DllExport Type14& operator =( + Type14&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type14 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type14& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type14 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type14& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type15 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type15 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type15() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type15() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type15 that will be copied. + */ + eProsima_user_DllExport Type15( + const Type15& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type15 that will be copied. + */ + eProsima_user_DllExport Type15( + Type15&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type15 that will be copied. + */ + eProsima_user_DllExport Type15& operator =( + const Type15& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type15 that will be copied. + */ + eProsima_user_DllExport Type15& operator =( + Type15&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type15 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type15& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type15 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type15& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type16 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type16 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type16() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type16() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type16 that will be copied. + */ + eProsima_user_DllExport Type16( + const Type16& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type16 that will be copied. + */ + eProsima_user_DllExport Type16( + Type16&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type16 that will be copied. + */ + eProsima_user_DllExport Type16& operator =( + const Type16& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type16 that will be copied. + */ + eProsima_user_DllExport Type16& operator =( + Type16&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type16 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type16& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type16 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type16& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type17 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type17 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type17() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type17() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type17 that will be copied. + */ + eProsima_user_DllExport Type17( + const Type17& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type17 that will be copied. + */ + eProsima_user_DllExport Type17( + Type17&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type17 that will be copied. + */ + eProsima_user_DllExport Type17& operator =( + const Type17& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type17 that will be copied. + */ + eProsima_user_DllExport Type17& operator =( + Type17&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type17 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type17& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type17 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type17& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type18 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type18 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type18() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type18() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type18 that will be copied. + */ + eProsima_user_DllExport Type18( + const Type18& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type18 that will be copied. + */ + eProsima_user_DllExport Type18( + Type18&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type18 that will be copied. + */ + eProsima_user_DllExport Type18& operator =( + const Type18& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type18 that will be copied. + */ + eProsima_user_DllExport Type18& operator =( + Type18&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type18 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type18& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type18 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type18& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type19 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type19 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type19() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type19() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type19 that will be copied. + */ + eProsima_user_DllExport Type19( + const Type19& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type19 that will be copied. + */ + eProsima_user_DllExport Type19( + Type19&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type19 that will be copied. + */ + eProsima_user_DllExport Type19& operator =( + const Type19& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type19 that will be copied. + */ + eProsima_user_DllExport Type19& operator =( + Type19&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type19 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type19& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type19 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type19& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type20 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type20 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type20() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type20() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type20 that will be copied. + */ + eProsima_user_DllExport Type20( + const Type20& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type20 that will be copied. + */ + eProsima_user_DllExport Type20( + Type20&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type20 that will be copied. + */ + eProsima_user_DllExport Type20& operator =( + const Type20& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type20 that will be copied. + */ + eProsima_user_DllExport Type20& operator =( + Type20&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type20 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type20& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type20 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type20& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type21 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type21 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type21() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type21() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type21 that will be copied. + */ + eProsima_user_DllExport Type21( + const Type21& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type21 that will be copied. + */ + eProsima_user_DllExport Type21( + Type21&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type21 that will be copied. + */ + eProsima_user_DllExport Type21& operator =( + const Type21& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type21 that will be copied. + */ + eProsima_user_DllExport Type21& operator =( + Type21&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type21 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type21& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type21 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type21& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type22 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type22 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type22() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type22() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type22 that will be copied. + */ + eProsima_user_DllExport Type22( + const Type22& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type22 that will be copied. + */ + eProsima_user_DllExport Type22( + Type22&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type22 that will be copied. + */ + eProsima_user_DllExport Type22& operator =( + const Type22& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type22 that will be copied. + */ + eProsima_user_DllExport Type22& operator =( + Type22&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type22 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type22& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type22 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type22& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type23 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type23 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type23() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type23() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type23 that will be copied. + */ + eProsima_user_DllExport Type23( + const Type23& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type23 that will be copied. + */ + eProsima_user_DllExport Type23( + Type23&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type23 that will be copied. + */ + eProsima_user_DllExport Type23& operator =( + const Type23& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type23 that will be copied. + */ + eProsima_user_DllExport Type23& operator =( + Type23&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type23 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type23& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type23 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type23& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type24 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type24 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type24() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type24() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type24 that will be copied. + */ + eProsima_user_DllExport Type24( + const Type24& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type24 that will be copied. + */ + eProsima_user_DllExport Type24( + Type24&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type24 that will be copied. + */ + eProsima_user_DllExport Type24& operator =( + const Type24& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type24 that will be copied. + */ + eProsima_user_DllExport Type24& operator =( + Type24&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type24 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type24& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type24 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type24& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type25 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type25 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type25() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type25() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type25 that will be copied. + */ + eProsima_user_DllExport Type25( + const Type25& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type25 that will be copied. + */ + eProsima_user_DllExport Type25( + Type25&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type25 that will be copied. + */ + eProsima_user_DllExport Type25& operator =( + const Type25& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type25 that will be copied. + */ + eProsima_user_DllExport Type25& operator =( + Type25&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type25 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type25& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type25 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type25& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type26 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type26 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type26() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type26() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type26 that will be copied. + */ + eProsima_user_DllExport Type26( + const Type26& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type26 that will be copied. + */ + eProsima_user_DllExport Type26( + Type26&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type26 that will be copied. + */ + eProsima_user_DllExport Type26& operator =( + const Type26& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type26 that will be copied. + */ + eProsima_user_DllExport Type26& operator =( + Type26&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type26 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type26& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type26 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type26& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type27 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type27 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type27() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type27() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type27 that will be copied. + */ + eProsima_user_DllExport Type27( + const Type27& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type27 that will be copied. + */ + eProsima_user_DllExport Type27( + Type27&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type27 that will be copied. + */ + eProsima_user_DllExport Type27& operator =( + const Type27& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type27 that will be copied. + */ + eProsima_user_DllExport Type27& operator =( + Type27&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type27 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type27& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type27 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type27& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type28 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type28 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type28() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type28() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type28 that will be copied. + */ + eProsima_user_DllExport Type28( + const Type28& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type28 that will be copied. + */ + eProsima_user_DllExport Type28( + Type28&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type28 that will be copied. + */ + eProsima_user_DllExport Type28& operator =( + const Type28& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type28 that will be copied. + */ + eProsima_user_DllExport Type28& operator =( + Type28&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type28 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type28& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type28 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type28& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type29 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type29 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type29() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type29() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type29 that will be copied. + */ + eProsima_user_DllExport Type29( + const Type29& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type29 that will be copied. + */ + eProsima_user_DllExport Type29( + Type29&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type29 that will be copied. + */ + eProsima_user_DllExport Type29& operator =( + const Type29& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type29 that will be copied. + */ + eProsima_user_DllExport Type29& operator =( + Type29&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type29 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type29& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type29 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type29& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type30 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type30 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type30() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type30() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type30 that will be copied. + */ + eProsima_user_DllExport Type30( + const Type30& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type30 that will be copied. + */ + eProsima_user_DllExport Type30( + Type30&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type30 that will be copied. + */ + eProsima_user_DllExport Type30& operator =( + const Type30& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type30 that will be copied. + */ + eProsima_user_DllExport Type30& operator =( + Type30&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type30 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type30& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type30 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type30& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type31 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type31 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type31() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type31() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type31 that will be copied. + */ + eProsima_user_DllExport Type31( + const Type31& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type31 that will be copied. + */ + eProsima_user_DllExport Type31( + Type31&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type31 that will be copied. + */ + eProsima_user_DllExport Type31& operator =( + const Type31& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type31 that will be copied. + */ + eProsima_user_DllExport Type31& operator =( + Type31&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type31 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type31& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type31 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type31& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type32 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type32 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type32() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type32() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type32 that will be copied. + */ + eProsima_user_DllExport Type32( + const Type32& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type32 that will be copied. + */ + eProsima_user_DllExport Type32( + Type32&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type32 that will be copied. + */ + eProsima_user_DllExport Type32& operator =( + const Type32& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type32 that will be copied. + */ + eProsima_user_DllExport Type32& operator =( + Type32&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type32 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type32& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type32 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type32& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type33 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type33 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type33() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type33() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type33 that will be copied. + */ + eProsima_user_DllExport Type33( + const Type33& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type33 that will be copied. + */ + eProsima_user_DllExport Type33( + Type33&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type33 that will be copied. + */ + eProsima_user_DllExport Type33& operator =( + const Type33& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type33 that will be copied. + */ + eProsima_user_DllExport Type33& operator =( + Type33&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type33 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type33& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type33 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type33& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type34 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type34 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type34() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type34() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type34 that will be copied. + */ + eProsima_user_DllExport Type34( + const Type34& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type34 that will be copied. + */ + eProsima_user_DllExport Type34( + Type34&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type34 that will be copied. + */ + eProsima_user_DllExport Type34& operator =( + const Type34& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type34 that will be copied. + */ + eProsima_user_DllExport Type34& operator =( + Type34&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type34 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type34& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type34 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type34& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type35 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type35 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type35() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type35() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type35 that will be copied. + */ + eProsima_user_DllExport Type35( + const Type35& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type35 that will be copied. + */ + eProsima_user_DllExport Type35( + Type35&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type35 that will be copied. + */ + eProsima_user_DllExport Type35& operator =( + const Type35& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type35 that will be copied. + */ + eProsima_user_DllExport Type35& operator =( + Type35&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type35 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type35& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type35 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type35& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type36 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type36 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type36() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type36() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type36 that will be copied. + */ + eProsima_user_DllExport Type36( + const Type36& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type36 that will be copied. + */ + eProsima_user_DllExport Type36( + Type36&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type36 that will be copied. + */ + eProsima_user_DllExport Type36& operator =( + const Type36& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type36 that will be copied. + */ + eProsima_user_DllExport Type36& operator =( + Type36&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type36 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type36& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type36 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type36& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type37 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type37 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type37() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type37() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type37 that will be copied. + */ + eProsima_user_DllExport Type37( + const Type37& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type37 that will be copied. + */ + eProsima_user_DllExport Type37( + Type37&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type37 that will be copied. + */ + eProsima_user_DllExport Type37& operator =( + const Type37& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type37 that will be copied. + */ + eProsima_user_DllExport Type37& operator =( + Type37&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type37 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type37& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type37 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type37& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type38 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type38 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type38() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type38() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type38 that will be copied. + */ + eProsima_user_DllExport Type38( + const Type38& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type38 that will be copied. + */ + eProsima_user_DllExport Type38( + Type38&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type38 that will be copied. + */ + eProsima_user_DllExport Type38& operator =( + const Type38& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type38 that will be copied. + */ + eProsima_user_DllExport Type38& operator =( + Type38&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type38 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type38& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type38 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type38& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type39 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type39 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type39() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type39() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type39 that will be copied. + */ + eProsima_user_DllExport Type39( + const Type39& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type39 that will be copied. + */ + eProsima_user_DllExport Type39( + Type39&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type39 that will be copied. + */ + eProsima_user_DllExport Type39& operator =( + const Type39& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type39 that will be copied. + */ + eProsima_user_DllExport Type39& operator =( + Type39&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type39 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type39& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type39 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type39& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type40 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type40 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type40() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type40() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type40 that will be copied. + */ + eProsima_user_DllExport Type40( + const Type40& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type40 that will be copied. + */ + eProsima_user_DllExport Type40( + Type40&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type40 that will be copied. + */ + eProsima_user_DllExport Type40& operator =( + const Type40& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type40 that will be copied. + */ + eProsima_user_DllExport Type40& operator =( + Type40&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type40 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type40& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type40 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type40& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type41 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type41 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type41() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type41() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type41 that will be copied. + */ + eProsima_user_DllExport Type41( + const Type41& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type41 that will be copied. + */ + eProsima_user_DllExport Type41( + Type41&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type41 that will be copied. + */ + eProsima_user_DllExport Type41& operator =( + const Type41& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type41 that will be copied. + */ + eProsima_user_DllExport Type41& operator =( + Type41&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type41 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type41& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type41 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type41& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type42 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type42 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type42() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type42() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type42 that will be copied. + */ + eProsima_user_DllExport Type42( + const Type42& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type42 that will be copied. + */ + eProsima_user_DllExport Type42( + Type42&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type42 that will be copied. + */ + eProsima_user_DllExport Type42& operator =( + const Type42& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type42 that will be copied. + */ + eProsima_user_DllExport Type42& operator =( + Type42&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type42 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type42& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type42 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type42& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type43 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type43 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type43() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type43() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type43 that will be copied. + */ + eProsima_user_DllExport Type43( + const Type43& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type43 that will be copied. + */ + eProsima_user_DllExport Type43( + Type43&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type43 that will be copied. + */ + eProsima_user_DllExport Type43& operator =( + const Type43& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type43 that will be copied. + */ + eProsima_user_DllExport Type43& operator =( + Type43&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type43 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type43& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type43 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type43& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type44 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type44 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type44() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type44() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type44 that will be copied. + */ + eProsima_user_DllExport Type44( + const Type44& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type44 that will be copied. + */ + eProsima_user_DllExport Type44( + Type44&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type44 that will be copied. + */ + eProsima_user_DllExport Type44& operator =( + const Type44& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type44 that will be copied. + */ + eProsima_user_DllExport Type44& operator =( + Type44&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type44 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type44& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type44 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type44& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type45 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type45 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type45() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type45() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type45 that will be copied. + */ + eProsima_user_DllExport Type45( + const Type45& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type45 that will be copied. + */ + eProsima_user_DllExport Type45( + Type45&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type45 that will be copied. + */ + eProsima_user_DllExport Type45& operator =( + const Type45& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type45 that will be copied. + */ + eProsima_user_DllExport Type45& operator =( + Type45&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type45 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type45& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type45 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type45& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type46 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type46 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type46() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type46() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type46 that will be copied. + */ + eProsima_user_DllExport Type46( + const Type46& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type46 that will be copied. + */ + eProsima_user_DllExport Type46( + Type46&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type46 that will be copied. + */ + eProsima_user_DllExport Type46& operator =( + const Type46& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type46 that will be copied. + */ + eProsima_user_DllExport Type46& operator =( + Type46&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type46 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type46& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type46 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type46& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type47 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type47 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type47() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type47() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type47 that will be copied. + */ + eProsima_user_DllExport Type47( + const Type47& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type47 that will be copied. + */ + eProsima_user_DllExport Type47( + Type47&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type47 that will be copied. + */ + eProsima_user_DllExport Type47& operator =( + const Type47& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type47 that will be copied. + */ + eProsima_user_DllExport Type47& operator =( + Type47&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type47 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type47& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type47 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type47& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type48 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type48 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type48() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type48() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type48 that will be copied. + */ + eProsima_user_DllExport Type48( + const Type48& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type48 that will be copied. + */ + eProsima_user_DllExport Type48( + Type48&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type48 that will be copied. + */ + eProsima_user_DllExport Type48& operator =( + const Type48& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type48 that will be copied. + */ + eProsima_user_DllExport Type48& operator =( + Type48&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type48 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type48& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type48 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type48& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type49 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type49 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type49() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type49() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type49 that will be copied. + */ + eProsima_user_DllExport Type49( + const Type49& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type49 that will be copied. + */ + eProsima_user_DllExport Type49( + Type49&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type49 that will be copied. + */ + eProsima_user_DllExport Type49& operator =( + const Type49& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type49 that will be copied. + */ + eProsima_user_DllExport Type49& operator =( + Type49&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type49 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type49& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type49 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type49& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type50 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type50 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type50() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type50() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type50 that will be copied. + */ + eProsima_user_DllExport Type50( + const Type50& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type50 that will be copied. + */ + eProsima_user_DllExport Type50( + Type50&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type50 that will be copied. + */ + eProsima_user_DllExport Type50& operator =( + const Type50& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type50 that will be copied. + */ + eProsima_user_DllExport Type50& operator =( + Type50&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type50 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type50& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type50 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type50& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type51 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type51 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type51() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type51() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type51 that will be copied. + */ + eProsima_user_DllExport Type51( + const Type51& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type51 that will be copied. + */ + eProsima_user_DllExport Type51( + Type51&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type51 that will be copied. + */ + eProsima_user_DllExport Type51& operator =( + const Type51& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type51 that will be copied. + */ + eProsima_user_DllExport Type51& operator =( + Type51&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type51 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type51& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type51 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type51& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type52 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type52 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type52() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type52() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type52 that will be copied. + */ + eProsima_user_DllExport Type52( + const Type52& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type52 that will be copied. + */ + eProsima_user_DllExport Type52( + Type52&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type52 that will be copied. + */ + eProsima_user_DllExport Type52& operator =( + const Type52& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type52 that will be copied. + */ + eProsima_user_DllExport Type52& operator =( + Type52&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type52 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type52& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type52 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type52& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type53 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type53 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type53() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type53() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type53 that will be copied. + */ + eProsima_user_DllExport Type53( + const Type53& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type53 that will be copied. + */ + eProsima_user_DllExport Type53( + Type53&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type53 that will be copied. + */ + eProsima_user_DllExport Type53& operator =( + const Type53& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type53 that will be copied. + */ + eProsima_user_DllExport Type53& operator =( + Type53&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type53 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type53& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type53 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type53& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type54 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type54 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type54() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type54() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type54 that will be copied. + */ + eProsima_user_DllExport Type54( + const Type54& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type54 that will be copied. + */ + eProsima_user_DllExport Type54( + Type54&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type54 that will be copied. + */ + eProsima_user_DllExport Type54& operator =( + const Type54& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type54 that will be copied. + */ + eProsima_user_DllExport Type54& operator =( + Type54&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type54 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type54& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type54 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type54& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type55 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type55 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type55() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type55() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type55 that will be copied. + */ + eProsima_user_DllExport Type55( + const Type55& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type55 that will be copied. + */ + eProsima_user_DllExport Type55( + Type55&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type55 that will be copied. + */ + eProsima_user_DllExport Type55& operator =( + const Type55& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type55 that will be copied. + */ + eProsima_user_DllExport Type55& operator =( + Type55&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type55 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type55& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type55 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type55& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type56 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type56 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type56() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type56() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type56 that will be copied. + */ + eProsima_user_DllExport Type56( + const Type56& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type56 that will be copied. + */ + eProsima_user_DllExport Type56( + Type56&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type56 that will be copied. + */ + eProsima_user_DllExport Type56& operator =( + const Type56& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type56 that will be copied. + */ + eProsima_user_DllExport Type56& operator =( + Type56&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type56 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type56& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type56 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type56& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type57 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type57 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type57() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type57() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type57 that will be copied. + */ + eProsima_user_DllExport Type57( + const Type57& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type57 that will be copied. + */ + eProsima_user_DllExport Type57( + Type57&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type57 that will be copied. + */ + eProsima_user_DllExport Type57& operator =( + const Type57& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type57 that will be copied. + */ + eProsima_user_DllExport Type57& operator =( + Type57&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type57 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type57& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type57 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type57& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type58 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type58 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type58() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type58() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type58 that will be copied. + */ + eProsima_user_DllExport Type58( + const Type58& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type58 that will be copied. + */ + eProsima_user_DllExport Type58( + Type58&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type58 that will be copied. + */ + eProsima_user_DllExport Type58& operator =( + const Type58& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type58 that will be copied. + */ + eProsima_user_DllExport Type58& operator =( + Type58&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type58 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type58& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type58 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type58& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type59 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type59 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type59() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type59() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type59 that will be copied. + */ + eProsima_user_DllExport Type59( + const Type59& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type59 that will be copied. + */ + eProsima_user_DllExport Type59( + Type59&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type59 that will be copied. + */ + eProsima_user_DllExport Type59& operator =( + const Type59& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type59 that will be copied. + */ + eProsima_user_DllExport Type59& operator =( + Type59&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type59 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type59& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type59 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type59& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type60 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type60 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type60() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type60() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type60 that will be copied. + */ + eProsima_user_DllExport Type60( + const Type60& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type60 that will be copied. + */ + eProsima_user_DllExport Type60( + Type60&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type60 that will be copied. + */ + eProsima_user_DllExport Type60& operator =( + const Type60& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type60 that will be copied. + */ + eProsima_user_DllExport Type60& operator =( + Type60&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type60 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type60& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type60 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type60& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type61 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type61 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type61() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type61() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type61 that will be copied. + */ + eProsima_user_DllExport Type61( + const Type61& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type61 that will be copied. + */ + eProsima_user_DllExport Type61( + Type61&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type61 that will be copied. + */ + eProsima_user_DllExport Type61& operator =( + const Type61& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type61 that will be copied. + */ + eProsima_user_DllExport Type61& operator =( + Type61&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type61 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type61& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type61 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type61& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type62 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type62 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type62() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type62() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type62 that will be copied. + */ + eProsima_user_DllExport Type62( + const Type62& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type62 that will be copied. + */ + eProsima_user_DllExport Type62( + Type62&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type62 that will be copied. + */ + eProsima_user_DllExport Type62& operator =( + const Type62& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type62 that will be copied. + */ + eProsima_user_DllExport Type62& operator =( + Type62&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type62 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type62& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type62 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type62& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type63 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type63 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type63() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type63() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type63 that will be copied. + */ + eProsima_user_DllExport Type63( + const Type63& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type63 that will be copied. + */ + eProsima_user_DllExport Type63( + Type63&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type63 that will be copied. + */ + eProsima_user_DllExport Type63& operator =( + const Type63& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type63 that will be copied. + */ + eProsima_user_DllExport Type63& operator =( + Type63&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type63 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type63& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type63 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type63& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type64 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type64 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type64() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type64() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type64 that will be copied. + */ + eProsima_user_DllExport Type64( + const Type64& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type64 that will be copied. + */ + eProsima_user_DllExport Type64( + Type64&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type64 that will be copied. + */ + eProsima_user_DllExport Type64& operator =( + const Type64& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type64 that will be copied. + */ + eProsima_user_DllExport Type64& operator =( + Type64&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type64 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type64& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type64 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type64& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type65 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type65 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type65() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type65() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type65 that will be copied. + */ + eProsima_user_DllExport Type65( + const Type65& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type65 that will be copied. + */ + eProsima_user_DllExport Type65( + Type65&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type65 that will be copied. + */ + eProsima_user_DllExport Type65& operator =( + const Type65& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type65 that will be copied. + */ + eProsima_user_DllExport Type65& operator =( + Type65&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type65 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type65& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type65 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type65& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type66 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type66 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type66() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type66() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type66 that will be copied. + */ + eProsima_user_DllExport Type66( + const Type66& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type66 that will be copied. + */ + eProsima_user_DllExport Type66( + Type66&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type66 that will be copied. + */ + eProsima_user_DllExport Type66& operator =( + const Type66& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type66 that will be copied. + */ + eProsima_user_DllExport Type66& operator =( + Type66&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type66 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type66& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type66 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type66& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type67 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type67 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type67() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type67() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type67 that will be copied. + */ + eProsima_user_DllExport Type67( + const Type67& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type67 that will be copied. + */ + eProsima_user_DllExport Type67( + Type67&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type67 that will be copied. + */ + eProsima_user_DllExport Type67& operator =( + const Type67& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type67 that will be copied. + */ + eProsima_user_DllExport Type67& operator =( + Type67&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type67 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type67& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type67 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type67& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type68 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type68 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type68() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type68() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type68 that will be copied. + */ + eProsima_user_DllExport Type68( + const Type68& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type68 that will be copied. + */ + eProsima_user_DllExport Type68( + Type68&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type68 that will be copied. + */ + eProsima_user_DllExport Type68& operator =( + const Type68& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type68 that will be copied. + */ + eProsima_user_DllExport Type68& operator =( + Type68&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type68 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type68& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type68 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type68& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type69 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type69 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type69() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type69() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type69 that will be copied. + */ + eProsima_user_DllExport Type69( + const Type69& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type69 that will be copied. + */ + eProsima_user_DllExport Type69( + Type69&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type69 that will be copied. + */ + eProsima_user_DllExport Type69& operator =( + const Type69& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type69 that will be copied. + */ + eProsima_user_DllExport Type69& operator =( + Type69&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type69 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type69& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type69 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type69& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type70 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type70 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type70() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type70() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type70 that will be copied. + */ + eProsima_user_DllExport Type70( + const Type70& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type70 that will be copied. + */ + eProsima_user_DllExport Type70( + Type70&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type70 that will be copied. + */ + eProsima_user_DllExport Type70& operator =( + const Type70& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type70 that will be copied. + */ + eProsima_user_DllExport Type70& operator =( + Type70&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type70 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type70& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type70 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type70& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type71 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type71 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type71() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type71() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type71 that will be copied. + */ + eProsima_user_DllExport Type71( + const Type71& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type71 that will be copied. + */ + eProsima_user_DllExport Type71( + Type71&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type71 that will be copied. + */ + eProsima_user_DllExport Type71& operator =( + const Type71& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type71 that will be copied. + */ + eProsima_user_DllExport Type71& operator =( + Type71&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type71 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type71& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type71 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type71& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type72 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type72 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type72() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type72() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type72 that will be copied. + */ + eProsima_user_DllExport Type72( + const Type72& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type72 that will be copied. + */ + eProsima_user_DllExport Type72( + Type72&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type72 that will be copied. + */ + eProsima_user_DllExport Type72& operator =( + const Type72& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type72 that will be copied. + */ + eProsima_user_DllExport Type72& operator =( + Type72&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type72 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type72& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type72 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type72& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type73 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type73 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type73() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type73() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type73 that will be copied. + */ + eProsima_user_DllExport Type73( + const Type73& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type73 that will be copied. + */ + eProsima_user_DllExport Type73( + Type73&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type73 that will be copied. + */ + eProsima_user_DllExport Type73& operator =( + const Type73& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type73 that will be copied. + */ + eProsima_user_DllExport Type73& operator =( + Type73&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type73 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type73& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type73 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type73& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type74 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type74 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type74() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type74() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type74 that will be copied. + */ + eProsima_user_DllExport Type74( + const Type74& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type74 that will be copied. + */ + eProsima_user_DllExport Type74( + Type74&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type74 that will be copied. + */ + eProsima_user_DllExport Type74& operator =( + const Type74& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type74 that will be copied. + */ + eProsima_user_DllExport Type74& operator =( + Type74&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type74 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type74& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type74 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type74& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type75 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type75 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type75() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type75() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type75 that will be copied. + */ + eProsima_user_DllExport Type75( + const Type75& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type75 that will be copied. + */ + eProsima_user_DllExport Type75( + Type75&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type75 that will be copied. + */ + eProsima_user_DllExport Type75& operator =( + const Type75& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type75 that will be copied. + */ + eProsima_user_DllExport Type75& operator =( + Type75&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type75 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type75& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type75 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type75& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type76 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type76 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type76() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type76() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type76 that will be copied. + */ + eProsima_user_DllExport Type76( + const Type76& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type76 that will be copied. + */ + eProsima_user_DllExport Type76( + Type76&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type76 that will be copied. + */ + eProsima_user_DllExport Type76& operator =( + const Type76& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type76 that will be copied. + */ + eProsima_user_DllExport Type76& operator =( + Type76&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type76 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type76& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type76 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type76& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type77 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type77 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type77() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type77() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type77 that will be copied. + */ + eProsima_user_DllExport Type77( + const Type77& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type77 that will be copied. + */ + eProsima_user_DllExport Type77( + Type77&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type77 that will be copied. + */ + eProsima_user_DllExport Type77& operator =( + const Type77& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type77 that will be copied. + */ + eProsima_user_DllExport Type77& operator =( + Type77&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type77 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type77& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type77 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type77& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type78 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type78 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type78() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type78() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type78 that will be copied. + */ + eProsima_user_DllExport Type78( + const Type78& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type78 that will be copied. + */ + eProsima_user_DllExport Type78( + Type78&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type78 that will be copied. + */ + eProsima_user_DllExport Type78& operator =( + const Type78& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type78 that will be copied. + */ + eProsima_user_DllExport Type78& operator =( + Type78&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type78 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type78& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type78 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type78& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type79 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type79 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type79() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type79() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type79 that will be copied. + */ + eProsima_user_DllExport Type79( + const Type79& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type79 that will be copied. + */ + eProsima_user_DllExport Type79( + Type79&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type79 that will be copied. + */ + eProsima_user_DllExport Type79& operator =( + const Type79& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type79 that will be copied. + */ + eProsima_user_DllExport Type79& operator =( + Type79&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type79 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type79& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type79 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type79& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type80 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type80 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type80() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type80() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type80 that will be copied. + */ + eProsima_user_DllExport Type80( + const Type80& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type80 that will be copied. + */ + eProsima_user_DllExport Type80( + Type80&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type80 that will be copied. + */ + eProsima_user_DllExport Type80& operator =( + const Type80& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type80 that will be copied. + */ + eProsima_user_DllExport Type80& operator =( + Type80&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type80 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type80& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type80 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type80& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type81 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type81 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type81() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type81() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type81 that will be copied. + */ + eProsima_user_DllExport Type81( + const Type81& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type81 that will be copied. + */ + eProsima_user_DllExport Type81( + Type81&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type81 that will be copied. + */ + eProsima_user_DllExport Type81& operator =( + const Type81& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type81 that will be copied. + */ + eProsima_user_DllExport Type81& operator =( + Type81&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type81 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type81& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type81 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type81& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type82 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type82 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type82() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type82() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type82 that will be copied. + */ + eProsima_user_DllExport Type82( + const Type82& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type82 that will be copied. + */ + eProsima_user_DllExport Type82( + Type82&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type82 that will be copied. + */ + eProsima_user_DllExport Type82& operator =( + const Type82& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type82 that will be copied. + */ + eProsima_user_DllExport Type82& operator =( + Type82&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type82 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type82& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type82 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type82& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type83 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type83 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type83() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type83() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type83 that will be copied. + */ + eProsima_user_DllExport Type83( + const Type83& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type83 that will be copied. + */ + eProsima_user_DllExport Type83( + Type83&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type83 that will be copied. + */ + eProsima_user_DllExport Type83& operator =( + const Type83& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type83 that will be copied. + */ + eProsima_user_DllExport Type83& operator =( + Type83&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type83 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type83& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type83 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type83& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type84 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type84 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type84() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type84() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type84 that will be copied. + */ + eProsima_user_DllExport Type84( + const Type84& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type84 that will be copied. + */ + eProsima_user_DllExport Type84( + Type84&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type84 that will be copied. + */ + eProsima_user_DllExport Type84& operator =( + const Type84& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type84 that will be copied. + */ + eProsima_user_DllExport Type84& operator =( + Type84&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type84 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type84& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type84 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type84& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type85 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type85 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type85() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type85() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type85 that will be copied. + */ + eProsima_user_DllExport Type85( + const Type85& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type85 that will be copied. + */ + eProsima_user_DllExport Type85( + Type85&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type85 that will be copied. + */ + eProsima_user_DllExport Type85& operator =( + const Type85& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type85 that will be copied. + */ + eProsima_user_DllExport Type85& operator =( + Type85&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type85 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type85& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type85 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type85& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type86 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type86 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type86() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type86() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type86 that will be copied. + */ + eProsima_user_DllExport Type86( + const Type86& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type86 that will be copied. + */ + eProsima_user_DllExport Type86( + Type86&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type86 that will be copied. + */ + eProsima_user_DllExport Type86& operator =( + const Type86& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type86 that will be copied. + */ + eProsima_user_DllExport Type86& operator =( + Type86&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type86 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type86& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type86 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type86& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type87 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type87 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type87() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type87() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type87 that will be copied. + */ + eProsima_user_DllExport Type87( + const Type87& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type87 that will be copied. + */ + eProsima_user_DllExport Type87( + Type87&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type87 that will be copied. + */ + eProsima_user_DllExport Type87& operator =( + const Type87& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type87 that will be copied. + */ + eProsima_user_DllExport Type87& operator =( + Type87&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type87 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type87& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type87 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type87& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type88 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type88 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type88() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type88() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type88 that will be copied. + */ + eProsima_user_DllExport Type88( + const Type88& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type88 that will be copied. + */ + eProsima_user_DllExport Type88( + Type88&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type88 that will be copied. + */ + eProsima_user_DllExport Type88& operator =( + const Type88& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type88 that will be copied. + */ + eProsima_user_DllExport Type88& operator =( + Type88&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type88 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type88& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type88 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type88& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type89 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type89 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type89() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type89() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type89 that will be copied. + */ + eProsima_user_DllExport Type89( + const Type89& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type89 that will be copied. + */ + eProsima_user_DllExport Type89( + Type89&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type89 that will be copied. + */ + eProsima_user_DllExport Type89& operator =( + const Type89& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type89 that will be copied. + */ + eProsima_user_DllExport Type89& operator =( + Type89&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type89 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type89& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type89 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type89& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type90 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type90 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type90() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type90() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type90 that will be copied. + */ + eProsima_user_DllExport Type90( + const Type90& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type90 that will be copied. + */ + eProsima_user_DllExport Type90( + Type90&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type90 that will be copied. + */ + eProsima_user_DllExport Type90& operator =( + const Type90& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type90 that will be copied. + */ + eProsima_user_DllExport Type90& operator =( + Type90&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type90 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type90& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type90 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type90& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type91 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type91 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type91() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type91() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type91 that will be copied. + */ + eProsima_user_DllExport Type91( + const Type91& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type91 that will be copied. + */ + eProsima_user_DllExport Type91( + Type91&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type91 that will be copied. + */ + eProsima_user_DllExport Type91& operator =( + const Type91& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type91 that will be copied. + */ + eProsima_user_DllExport Type91& operator =( + Type91&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type91 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type91& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type91 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type91& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type92 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type92 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type92() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type92() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type92 that will be copied. + */ + eProsima_user_DllExport Type92( + const Type92& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type92 that will be copied. + */ + eProsima_user_DllExport Type92( + Type92&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type92 that will be copied. + */ + eProsima_user_DllExport Type92& operator =( + const Type92& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type92 that will be copied. + */ + eProsima_user_DllExport Type92& operator =( + Type92&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type92 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type92& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type92 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type92& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type93 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type93 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type93() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type93() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type93 that will be copied. + */ + eProsima_user_DllExport Type93( + const Type93& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type93 that will be copied. + */ + eProsima_user_DllExport Type93( + Type93&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type93 that will be copied. + */ + eProsima_user_DllExport Type93& operator =( + const Type93& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type93 that will be copied. + */ + eProsima_user_DllExport Type93& operator =( + Type93&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type93 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type93& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type93 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type93& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type94 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type94 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type94() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type94() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type94 that will be copied. + */ + eProsima_user_DllExport Type94( + const Type94& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type94 that will be copied. + */ + eProsima_user_DllExport Type94( + Type94&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type94 that will be copied. + */ + eProsima_user_DllExport Type94& operator =( + const Type94& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type94 that will be copied. + */ + eProsima_user_DllExport Type94& operator =( + Type94&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type94 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type94& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type94 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type94& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type95 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type95 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type95() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type95() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type95 that will be copied. + */ + eProsima_user_DllExport Type95( + const Type95& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type95 that will be copied. + */ + eProsima_user_DllExport Type95( + Type95&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type95 that will be copied. + */ + eProsima_user_DllExport Type95& operator =( + const Type95& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type95 that will be copied. + */ + eProsima_user_DllExport Type95& operator =( + Type95&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type95 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type95& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type95 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type95& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type96 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type96 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type96() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type96() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type96 that will be copied. + */ + eProsima_user_DllExport Type96( + const Type96& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type96 that will be copied. + */ + eProsima_user_DllExport Type96( + Type96&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type96 that will be copied. + */ + eProsima_user_DllExport Type96& operator =( + const Type96& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type96 that will be copied. + */ + eProsima_user_DllExport Type96& operator =( + Type96&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type96 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type96& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type96 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type96& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type97 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type97 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type97() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type97() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type97 that will be copied. + */ + eProsima_user_DllExport Type97( + const Type97& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type97 that will be copied. + */ + eProsima_user_DllExport Type97( + Type97&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type97 that will be copied. + */ + eProsima_user_DllExport Type97& operator =( + const Type97& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type97 that will be copied. + */ + eProsima_user_DllExport Type97& operator =( + Type97&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type97 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type97& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type97 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type97& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type98 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type98 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type98() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type98() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type98 that will be copied. + */ + eProsima_user_DllExport Type98( + const Type98& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type98 that will be copied. + */ + eProsima_user_DllExport Type98( + Type98&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type98 that will be copied. + */ + eProsima_user_DllExport Type98& operator =( + const Type98& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type98 that will be copied. + */ + eProsima_user_DllExport Type98& operator =( + Type98&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type98 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type98& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type98 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type98& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type99 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type99 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type99() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type99() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type99 that will be copied. + */ + eProsima_user_DllExport Type99( + const Type99& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type99 that will be copied. + */ + eProsima_user_DllExport Type99( + Type99&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type99 that will be copied. + */ + eProsima_user_DllExport Type99& operator =( + const Type99& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type99 that will be copied. + */ + eProsima_user_DllExport Type99& operator =( + Type99&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type99 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type99& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type99 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type99& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure Type100 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type100 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type100() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type100() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type100 that will be copied. + */ + eProsima_user_DllExport Type100( + const Type100& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type100 that will be copied. + */ + eProsima_user_DllExport Type100( + Type100&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type100 that will be copied. + */ + eProsima_user_DllExport Type100& operator =( + const Type100& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type100 that will be copied. + */ + eProsima_user_DllExport Type100& operator =( + Type100&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type100 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type100& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x Type100 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type100& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; +/*! + * @brief This class represents the structure TypeBig defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class TypeBig +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport TypeBig() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~TypeBig() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object TypeBig that will be copied. + */ + eProsima_user_DllExport TypeBig( + const TypeBig& x) + { + m_index = x.m_index; + + m_dep1 = x.m_dep1; + + m_dep2 = x.m_dep2; + + m_dep3 = x.m_dep3; + + m_dep4 = x.m_dep4; + + m_dep5 = x.m_dep5; + + m_dep6 = x.m_dep6; + + m_dep7 = x.m_dep7; + + m_dep8 = x.m_dep8; + + m_dep9 = x.m_dep9; + + m_dep10 = x.m_dep10; + + m_dep11 = x.m_dep11; + + m_dep12 = x.m_dep12; + + m_dep13 = x.m_dep13; + + m_dep14 = x.m_dep14; + + m_dep15 = x.m_dep15; + + m_dep16 = x.m_dep16; + + m_dep17 = x.m_dep17; + + m_dep18 = x.m_dep18; + + m_dep19 = x.m_dep19; + + m_dep20 = x.m_dep20; + + m_dep21 = x.m_dep21; + + m_dep22 = x.m_dep22; + + m_dep23 = x.m_dep23; + + m_dep24 = x.m_dep24; + + m_dep25 = x.m_dep25; + + m_dep26 = x.m_dep26; + + m_dep27 = x.m_dep27; + + m_dep28 = x.m_dep28; + + m_dep29 = x.m_dep29; + + m_dep30 = x.m_dep30; + + m_dep31 = x.m_dep31; + + m_dep32 = x.m_dep32; + + m_dep33 = x.m_dep33; + + m_dep34 = x.m_dep34; + + m_dep35 = x.m_dep35; + + m_dep36 = x.m_dep36; + + m_dep37 = x.m_dep37; + + m_dep38 = x.m_dep38; + + m_dep39 = x.m_dep39; + + m_dep40 = x.m_dep40; + + m_dep41 = x.m_dep41; + + m_dep42 = x.m_dep42; + + m_dep43 = x.m_dep43; + + m_dep44 = x.m_dep44; + + m_dep45 = x.m_dep45; + + m_dep46 = x.m_dep46; + + m_dep47 = x.m_dep47; + + m_dep48 = x.m_dep48; + + m_dep49 = x.m_dep49; + + m_dep50 = x.m_dep50; + + m_dep51 = x.m_dep51; + + m_dep52 = x.m_dep52; + + m_dep53 = x.m_dep53; + + m_dep54 = x.m_dep54; + + m_dep55 = x.m_dep55; + + m_dep56 = x.m_dep56; + + m_dep57 = x.m_dep57; + + m_dep58 = x.m_dep58; + + m_dep59 = x.m_dep59; + + m_dep60 = x.m_dep60; + + m_dep61 = x.m_dep61; + + m_dep62 = x.m_dep62; + + m_dep63 = x.m_dep63; + + m_dep64 = x.m_dep64; + + m_dep65 = x.m_dep65; + + m_dep66 = x.m_dep66; + + m_dep67 = x.m_dep67; + + m_dep68 = x.m_dep68; + + m_dep69 = x.m_dep69; + + m_dep70 = x.m_dep70; + + m_dep71 = x.m_dep71; + + m_dep72 = x.m_dep72; + + m_dep73 = x.m_dep73; + + m_dep74 = x.m_dep74; + + m_dep75 = x.m_dep75; + + m_dep76 = x.m_dep76; + + m_dep77 = x.m_dep77; + + m_dep78 = x.m_dep78; + + m_dep79 = x.m_dep79; + + m_dep80 = x.m_dep80; + + m_dep81 = x.m_dep81; + + m_dep82 = x.m_dep82; + + m_dep83 = x.m_dep83; + + m_dep84 = x.m_dep84; + + m_dep85 = x.m_dep85; + + m_dep86 = x.m_dep86; + + m_dep87 = x.m_dep87; + + m_dep88 = x.m_dep88; + + m_dep89 = x.m_dep89; + + m_dep90 = x.m_dep90; + + m_dep91 = x.m_dep91; + + m_dep92 = x.m_dep92; + + m_dep93 = x.m_dep93; + + m_dep94 = x.m_dep94; + + m_dep95 = x.m_dep95; + + m_dep96 = x.m_dep96; + + m_dep97 = x.m_dep97; + + m_dep98 = x.m_dep98; + + m_dep99 = x.m_dep99; + + m_dep100 = x.m_dep100; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object TypeBig that will be copied. + */ + eProsima_user_DllExport TypeBig( + TypeBig&& x) noexcept + { + m_index = x.m_index; + m_dep1 = std::move(x.m_dep1); + m_dep2 = std::move(x.m_dep2); + m_dep3 = std::move(x.m_dep3); + m_dep4 = std::move(x.m_dep4); + m_dep5 = std::move(x.m_dep5); + m_dep6 = std::move(x.m_dep6); + m_dep7 = std::move(x.m_dep7); + m_dep8 = std::move(x.m_dep8); + m_dep9 = std::move(x.m_dep9); + m_dep10 = std::move(x.m_dep10); + m_dep11 = std::move(x.m_dep11); + m_dep12 = std::move(x.m_dep12); + m_dep13 = std::move(x.m_dep13); + m_dep14 = std::move(x.m_dep14); + m_dep15 = std::move(x.m_dep15); + m_dep16 = std::move(x.m_dep16); + m_dep17 = std::move(x.m_dep17); + m_dep18 = std::move(x.m_dep18); + m_dep19 = std::move(x.m_dep19); + m_dep20 = std::move(x.m_dep20); + m_dep21 = std::move(x.m_dep21); + m_dep22 = std::move(x.m_dep22); + m_dep23 = std::move(x.m_dep23); + m_dep24 = std::move(x.m_dep24); + m_dep25 = std::move(x.m_dep25); + m_dep26 = std::move(x.m_dep26); + m_dep27 = std::move(x.m_dep27); + m_dep28 = std::move(x.m_dep28); + m_dep29 = std::move(x.m_dep29); + m_dep30 = std::move(x.m_dep30); + m_dep31 = std::move(x.m_dep31); + m_dep32 = std::move(x.m_dep32); + m_dep33 = std::move(x.m_dep33); + m_dep34 = std::move(x.m_dep34); + m_dep35 = std::move(x.m_dep35); + m_dep36 = std::move(x.m_dep36); + m_dep37 = std::move(x.m_dep37); + m_dep38 = std::move(x.m_dep38); + m_dep39 = std::move(x.m_dep39); + m_dep40 = std::move(x.m_dep40); + m_dep41 = std::move(x.m_dep41); + m_dep42 = std::move(x.m_dep42); + m_dep43 = std::move(x.m_dep43); + m_dep44 = std::move(x.m_dep44); + m_dep45 = std::move(x.m_dep45); + m_dep46 = std::move(x.m_dep46); + m_dep47 = std::move(x.m_dep47); + m_dep48 = std::move(x.m_dep48); + m_dep49 = std::move(x.m_dep49); + m_dep50 = std::move(x.m_dep50); + m_dep51 = std::move(x.m_dep51); + m_dep52 = std::move(x.m_dep52); + m_dep53 = std::move(x.m_dep53); + m_dep54 = std::move(x.m_dep54); + m_dep55 = std::move(x.m_dep55); + m_dep56 = std::move(x.m_dep56); + m_dep57 = std::move(x.m_dep57); + m_dep58 = std::move(x.m_dep58); + m_dep59 = std::move(x.m_dep59); + m_dep60 = std::move(x.m_dep60); + m_dep61 = std::move(x.m_dep61); + m_dep62 = std::move(x.m_dep62); + m_dep63 = std::move(x.m_dep63); + m_dep64 = std::move(x.m_dep64); + m_dep65 = std::move(x.m_dep65); + m_dep66 = std::move(x.m_dep66); + m_dep67 = std::move(x.m_dep67); + m_dep68 = std::move(x.m_dep68); + m_dep69 = std::move(x.m_dep69); + m_dep70 = std::move(x.m_dep70); + m_dep71 = std::move(x.m_dep71); + m_dep72 = std::move(x.m_dep72); + m_dep73 = std::move(x.m_dep73); + m_dep74 = std::move(x.m_dep74); + m_dep75 = std::move(x.m_dep75); + m_dep76 = std::move(x.m_dep76); + m_dep77 = std::move(x.m_dep77); + m_dep78 = std::move(x.m_dep78); + m_dep79 = std::move(x.m_dep79); + m_dep80 = std::move(x.m_dep80); + m_dep81 = std::move(x.m_dep81); + m_dep82 = std::move(x.m_dep82); + m_dep83 = std::move(x.m_dep83); + m_dep84 = std::move(x.m_dep84); + m_dep85 = std::move(x.m_dep85); + m_dep86 = std::move(x.m_dep86); + m_dep87 = std::move(x.m_dep87); + m_dep88 = std::move(x.m_dep88); + m_dep89 = std::move(x.m_dep89); + m_dep90 = std::move(x.m_dep90); + m_dep91 = std::move(x.m_dep91); + m_dep92 = std::move(x.m_dep92); + m_dep93 = std::move(x.m_dep93); + m_dep94 = std::move(x.m_dep94); + m_dep95 = std::move(x.m_dep95); + m_dep96 = std::move(x.m_dep96); + m_dep97 = std::move(x.m_dep97); + m_dep98 = std::move(x.m_dep98); + m_dep99 = std::move(x.m_dep99); + m_dep100 = std::move(x.m_dep100); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object TypeBig that will be copied. + */ + eProsima_user_DllExport TypeBig& operator =( + const TypeBig& x) + { + + m_index = x.m_index; + + m_dep1 = x.m_dep1; + + m_dep2 = x.m_dep2; + + m_dep3 = x.m_dep3; + + m_dep4 = x.m_dep4; + + m_dep5 = x.m_dep5; + + m_dep6 = x.m_dep6; + + m_dep7 = x.m_dep7; + + m_dep8 = x.m_dep8; + + m_dep9 = x.m_dep9; + + m_dep10 = x.m_dep10; + + m_dep11 = x.m_dep11; + + m_dep12 = x.m_dep12; + + m_dep13 = x.m_dep13; + + m_dep14 = x.m_dep14; + + m_dep15 = x.m_dep15; + + m_dep16 = x.m_dep16; + + m_dep17 = x.m_dep17; + + m_dep18 = x.m_dep18; + + m_dep19 = x.m_dep19; + + m_dep20 = x.m_dep20; + + m_dep21 = x.m_dep21; + + m_dep22 = x.m_dep22; + + m_dep23 = x.m_dep23; + + m_dep24 = x.m_dep24; + + m_dep25 = x.m_dep25; + + m_dep26 = x.m_dep26; + + m_dep27 = x.m_dep27; + + m_dep28 = x.m_dep28; + + m_dep29 = x.m_dep29; + + m_dep30 = x.m_dep30; + + m_dep31 = x.m_dep31; + + m_dep32 = x.m_dep32; + + m_dep33 = x.m_dep33; + + m_dep34 = x.m_dep34; + + m_dep35 = x.m_dep35; + + m_dep36 = x.m_dep36; + + m_dep37 = x.m_dep37; + + m_dep38 = x.m_dep38; + + m_dep39 = x.m_dep39; + + m_dep40 = x.m_dep40; + + m_dep41 = x.m_dep41; + + m_dep42 = x.m_dep42; + + m_dep43 = x.m_dep43; + + m_dep44 = x.m_dep44; + + m_dep45 = x.m_dep45; + + m_dep46 = x.m_dep46; + + m_dep47 = x.m_dep47; + + m_dep48 = x.m_dep48; + + m_dep49 = x.m_dep49; + + m_dep50 = x.m_dep50; + + m_dep51 = x.m_dep51; + + m_dep52 = x.m_dep52; + + m_dep53 = x.m_dep53; + + m_dep54 = x.m_dep54; + + m_dep55 = x.m_dep55; + + m_dep56 = x.m_dep56; + + m_dep57 = x.m_dep57; + + m_dep58 = x.m_dep58; + + m_dep59 = x.m_dep59; + + m_dep60 = x.m_dep60; + + m_dep61 = x.m_dep61; + + m_dep62 = x.m_dep62; + + m_dep63 = x.m_dep63; + + m_dep64 = x.m_dep64; + + m_dep65 = x.m_dep65; + + m_dep66 = x.m_dep66; + + m_dep67 = x.m_dep67; + + m_dep68 = x.m_dep68; + + m_dep69 = x.m_dep69; + + m_dep70 = x.m_dep70; + + m_dep71 = x.m_dep71; + + m_dep72 = x.m_dep72; + + m_dep73 = x.m_dep73; + + m_dep74 = x.m_dep74; + + m_dep75 = x.m_dep75; + + m_dep76 = x.m_dep76; + + m_dep77 = x.m_dep77; + + m_dep78 = x.m_dep78; + + m_dep79 = x.m_dep79; + + m_dep80 = x.m_dep80; + + m_dep81 = x.m_dep81; + + m_dep82 = x.m_dep82; + + m_dep83 = x.m_dep83; + + m_dep84 = x.m_dep84; + + m_dep85 = x.m_dep85; + + m_dep86 = x.m_dep86; + + m_dep87 = x.m_dep87; + + m_dep88 = x.m_dep88; + + m_dep89 = x.m_dep89; + + m_dep90 = x.m_dep90; + + m_dep91 = x.m_dep91; + + m_dep92 = x.m_dep92; + + m_dep93 = x.m_dep93; + + m_dep94 = x.m_dep94; + + m_dep95 = x.m_dep95; + + m_dep96 = x.m_dep96; + + m_dep97 = x.m_dep97; + + m_dep98 = x.m_dep98; + + m_dep99 = x.m_dep99; + + m_dep100 = x.m_dep100; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object TypeBig that will be copied. + */ + eProsima_user_DllExport TypeBig& operator =( + TypeBig&& x) noexcept + { + + m_index = x.m_index; + m_dep1 = std::move(x.m_dep1); + m_dep2 = std::move(x.m_dep2); + m_dep3 = std::move(x.m_dep3); + m_dep4 = std::move(x.m_dep4); + m_dep5 = std::move(x.m_dep5); + m_dep6 = std::move(x.m_dep6); + m_dep7 = std::move(x.m_dep7); + m_dep8 = std::move(x.m_dep8); + m_dep9 = std::move(x.m_dep9); + m_dep10 = std::move(x.m_dep10); + m_dep11 = std::move(x.m_dep11); + m_dep12 = std::move(x.m_dep12); + m_dep13 = std::move(x.m_dep13); + m_dep14 = std::move(x.m_dep14); + m_dep15 = std::move(x.m_dep15); + m_dep16 = std::move(x.m_dep16); + m_dep17 = std::move(x.m_dep17); + m_dep18 = std::move(x.m_dep18); + m_dep19 = std::move(x.m_dep19); + m_dep20 = std::move(x.m_dep20); + m_dep21 = std::move(x.m_dep21); + m_dep22 = std::move(x.m_dep22); + m_dep23 = std::move(x.m_dep23); + m_dep24 = std::move(x.m_dep24); + m_dep25 = std::move(x.m_dep25); + m_dep26 = std::move(x.m_dep26); + m_dep27 = std::move(x.m_dep27); + m_dep28 = std::move(x.m_dep28); + m_dep29 = std::move(x.m_dep29); + m_dep30 = std::move(x.m_dep30); + m_dep31 = std::move(x.m_dep31); + m_dep32 = std::move(x.m_dep32); + m_dep33 = std::move(x.m_dep33); + m_dep34 = std::move(x.m_dep34); + m_dep35 = std::move(x.m_dep35); + m_dep36 = std::move(x.m_dep36); + m_dep37 = std::move(x.m_dep37); + m_dep38 = std::move(x.m_dep38); + m_dep39 = std::move(x.m_dep39); + m_dep40 = std::move(x.m_dep40); + m_dep41 = std::move(x.m_dep41); + m_dep42 = std::move(x.m_dep42); + m_dep43 = std::move(x.m_dep43); + m_dep44 = std::move(x.m_dep44); + m_dep45 = std::move(x.m_dep45); + m_dep46 = std::move(x.m_dep46); + m_dep47 = std::move(x.m_dep47); + m_dep48 = std::move(x.m_dep48); + m_dep49 = std::move(x.m_dep49); + m_dep50 = std::move(x.m_dep50); + m_dep51 = std::move(x.m_dep51); + m_dep52 = std::move(x.m_dep52); + m_dep53 = std::move(x.m_dep53); + m_dep54 = std::move(x.m_dep54); + m_dep55 = std::move(x.m_dep55); + m_dep56 = std::move(x.m_dep56); + m_dep57 = std::move(x.m_dep57); + m_dep58 = std::move(x.m_dep58); + m_dep59 = std::move(x.m_dep59); + m_dep60 = std::move(x.m_dep60); + m_dep61 = std::move(x.m_dep61); + m_dep62 = std::move(x.m_dep62); + m_dep63 = std::move(x.m_dep63); + m_dep64 = std::move(x.m_dep64); + m_dep65 = std::move(x.m_dep65); + m_dep66 = std::move(x.m_dep66); + m_dep67 = std::move(x.m_dep67); + m_dep68 = std::move(x.m_dep68); + m_dep69 = std::move(x.m_dep69); + m_dep70 = std::move(x.m_dep70); + m_dep71 = std::move(x.m_dep71); + m_dep72 = std::move(x.m_dep72); + m_dep73 = std::move(x.m_dep73); + m_dep74 = std::move(x.m_dep74); + m_dep75 = std::move(x.m_dep75); + m_dep76 = std::move(x.m_dep76); + m_dep77 = std::move(x.m_dep77); + m_dep78 = std::move(x.m_dep78); + m_dep79 = std::move(x.m_dep79); + m_dep80 = std::move(x.m_dep80); + m_dep81 = std::move(x.m_dep81); + m_dep82 = std::move(x.m_dep82); + m_dep83 = std::move(x.m_dep83); + m_dep84 = std::move(x.m_dep84); + m_dep85 = std::move(x.m_dep85); + m_dep86 = std::move(x.m_dep86); + m_dep87 = std::move(x.m_dep87); + m_dep88 = std::move(x.m_dep88); + m_dep89 = std::move(x.m_dep89); + m_dep90 = std::move(x.m_dep90); + m_dep91 = std::move(x.m_dep91); + m_dep92 = std::move(x.m_dep92); + m_dep93 = std::move(x.m_dep93); + m_dep94 = std::move(x.m_dep94); + m_dep95 = std::move(x.m_dep95); + m_dep96 = std::move(x.m_dep96); + m_dep97 = std::move(x.m_dep97); + m_dep98 = std::move(x.m_dep98); + m_dep99 = std::move(x.m_dep99); + m_dep100 = std::move(x.m_dep100); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x TypeBig object to compare. + */ + eProsima_user_DllExport bool operator ==( + const TypeBig& x) const + { + return (m_index == x.m_index && + m_dep1 == x.m_dep1 && + m_dep2 == x.m_dep2 && + m_dep3 == x.m_dep3 && + m_dep4 == x.m_dep4 && + m_dep5 == x.m_dep5 && + m_dep6 == x.m_dep6 && + m_dep7 == x.m_dep7 && + m_dep8 == x.m_dep8 && + m_dep9 == x.m_dep9 && + m_dep10 == x.m_dep10 && + m_dep11 == x.m_dep11 && + m_dep12 == x.m_dep12 && + m_dep13 == x.m_dep13 && + m_dep14 == x.m_dep14 && + m_dep15 == x.m_dep15 && + m_dep16 == x.m_dep16 && + m_dep17 == x.m_dep17 && + m_dep18 == x.m_dep18 && + m_dep19 == x.m_dep19 && + m_dep20 == x.m_dep20 && + m_dep21 == x.m_dep21 && + m_dep22 == x.m_dep22 && + m_dep23 == x.m_dep23 && + m_dep24 == x.m_dep24 && + m_dep25 == x.m_dep25 && + m_dep26 == x.m_dep26 && + m_dep27 == x.m_dep27 && + m_dep28 == x.m_dep28 && + m_dep29 == x.m_dep29 && + m_dep30 == x.m_dep30 && + m_dep31 == x.m_dep31 && + m_dep32 == x.m_dep32 && + m_dep33 == x.m_dep33 && + m_dep34 == x.m_dep34 && + m_dep35 == x.m_dep35 && + m_dep36 == x.m_dep36 && + m_dep37 == x.m_dep37 && + m_dep38 == x.m_dep38 && + m_dep39 == x.m_dep39 && + m_dep40 == x.m_dep40 && + m_dep41 == x.m_dep41 && + m_dep42 == x.m_dep42 && + m_dep43 == x.m_dep43 && + m_dep44 == x.m_dep44 && + m_dep45 == x.m_dep45 && + m_dep46 == x.m_dep46 && + m_dep47 == x.m_dep47 && + m_dep48 == x.m_dep48 && + m_dep49 == x.m_dep49 && + m_dep50 == x.m_dep50 && + m_dep51 == x.m_dep51 && + m_dep52 == x.m_dep52 && + m_dep53 == x.m_dep53 && + m_dep54 == x.m_dep54 && + m_dep55 == x.m_dep55 && + m_dep56 == x.m_dep56 && + m_dep57 == x.m_dep57 && + m_dep58 == x.m_dep58 && + m_dep59 == x.m_dep59 && + m_dep60 == x.m_dep60 && + m_dep61 == x.m_dep61 && + m_dep62 == x.m_dep62 && + m_dep63 == x.m_dep63 && + m_dep64 == x.m_dep64 && + m_dep65 == x.m_dep65 && + m_dep66 == x.m_dep66 && + m_dep67 == x.m_dep67 && + m_dep68 == x.m_dep68 && + m_dep69 == x.m_dep69 && + m_dep70 == x.m_dep70 && + m_dep71 == x.m_dep71 && + m_dep72 == x.m_dep72 && + m_dep73 == x.m_dep73 && + m_dep74 == x.m_dep74 && + m_dep75 == x.m_dep75 && + m_dep76 == x.m_dep76 && + m_dep77 == x.m_dep77 && + m_dep78 == x.m_dep78 && + m_dep79 == x.m_dep79 && + m_dep80 == x.m_dep80 && + m_dep81 == x.m_dep81 && + m_dep82 == x.m_dep82 && + m_dep83 == x.m_dep83 && + m_dep84 == x.m_dep84 && + m_dep85 == x.m_dep85 && + m_dep86 == x.m_dep86 && + m_dep87 == x.m_dep87 && + m_dep88 == x.m_dep88 && + m_dep89 == x.m_dep89 && + m_dep90 == x.m_dep90 && + m_dep91 == x.m_dep91 && + m_dep92 == x.m_dep92 && + m_dep93 == x.m_dep93 && + m_dep94 == x.m_dep94 && + m_dep95 == x.m_dep95 && + m_dep96 == x.m_dep96 && + m_dep97 == x.m_dep97 && + m_dep98 == x.m_dep98 && + m_dep99 == x.m_dep99 && + m_dep100 == x.m_dep100); + } + + /*! + * @brief Comparison operator. + * @param x TypeBig object to compare. + */ + eProsima_user_DllExport bool operator !=( + const TypeBig& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + /*! + * @brief This function copies the value in member dep1 + * @param _dep1 New value to be copied in member dep1 + */ + eProsima_user_DllExport void dep1( + const Type1& _dep1) + { + m_dep1 = _dep1; + } + + /*! + * @brief This function moves the value in member dep1 + * @param _dep1 New value to be moved in member dep1 + */ + eProsima_user_DllExport void dep1( + Type1&& _dep1) + { + m_dep1 = std::move(_dep1); + } + + /*! + * @brief This function returns a constant reference to member dep1 + * @return Constant reference to member dep1 + */ + eProsima_user_DllExport const Type1& dep1() const + { + return m_dep1; + } + + /*! + * @brief This function returns a reference to member dep1 + * @return Reference to member dep1 + */ + eProsima_user_DllExport Type1& dep1() + { + return m_dep1; + } + + + /*! + * @brief This function copies the value in member dep2 + * @param _dep2 New value to be copied in member dep2 + */ + eProsima_user_DllExport void dep2( + const Type2& _dep2) + { + m_dep2 = _dep2; + } + + /*! + * @brief This function moves the value in member dep2 + * @param _dep2 New value to be moved in member dep2 + */ + eProsima_user_DllExport void dep2( + Type2&& _dep2) + { + m_dep2 = std::move(_dep2); + } + + /*! + * @brief This function returns a constant reference to member dep2 + * @return Constant reference to member dep2 + */ + eProsima_user_DllExport const Type2& dep2() const + { + return m_dep2; + } + + /*! + * @brief This function returns a reference to member dep2 + * @return Reference to member dep2 + */ + eProsima_user_DllExport Type2& dep2() + { + return m_dep2; + } + + + /*! + * @brief This function copies the value in member dep3 + * @param _dep3 New value to be copied in member dep3 + */ + eProsima_user_DllExport void dep3( + const Type3& _dep3) + { + m_dep3 = _dep3; + } + + /*! + * @brief This function moves the value in member dep3 + * @param _dep3 New value to be moved in member dep3 + */ + eProsima_user_DllExport void dep3( + Type3&& _dep3) + { + m_dep3 = std::move(_dep3); + } + + /*! + * @brief This function returns a constant reference to member dep3 + * @return Constant reference to member dep3 + */ + eProsima_user_DllExport const Type3& dep3() const + { + return m_dep3; + } + + /*! + * @brief This function returns a reference to member dep3 + * @return Reference to member dep3 + */ + eProsima_user_DllExport Type3& dep3() + { + return m_dep3; + } + + + /*! + * @brief This function copies the value in member dep4 + * @param _dep4 New value to be copied in member dep4 + */ + eProsima_user_DllExport void dep4( + const Type4& _dep4) + { + m_dep4 = _dep4; + } + + /*! + * @brief This function moves the value in member dep4 + * @param _dep4 New value to be moved in member dep4 + */ + eProsima_user_DllExport void dep4( + Type4&& _dep4) + { + m_dep4 = std::move(_dep4); + } + + /*! + * @brief This function returns a constant reference to member dep4 + * @return Constant reference to member dep4 + */ + eProsima_user_DllExport const Type4& dep4() const + { + return m_dep4; + } + + /*! + * @brief This function returns a reference to member dep4 + * @return Reference to member dep4 + */ + eProsima_user_DllExport Type4& dep4() + { + return m_dep4; + } + + + /*! + * @brief This function copies the value in member dep5 + * @param _dep5 New value to be copied in member dep5 + */ + eProsima_user_DllExport void dep5( + const Type5& _dep5) + { + m_dep5 = _dep5; + } + + /*! + * @brief This function moves the value in member dep5 + * @param _dep5 New value to be moved in member dep5 + */ + eProsima_user_DllExport void dep5( + Type5&& _dep5) + { + m_dep5 = std::move(_dep5); + } + + /*! + * @brief This function returns a constant reference to member dep5 + * @return Constant reference to member dep5 + */ + eProsima_user_DllExport const Type5& dep5() const + { + return m_dep5; + } + + /*! + * @brief This function returns a reference to member dep5 + * @return Reference to member dep5 + */ + eProsima_user_DllExport Type5& dep5() + { + return m_dep5; + } + + + /*! + * @brief This function copies the value in member dep6 + * @param _dep6 New value to be copied in member dep6 + */ + eProsima_user_DllExport void dep6( + const Type6& _dep6) + { + m_dep6 = _dep6; + } + + /*! + * @brief This function moves the value in member dep6 + * @param _dep6 New value to be moved in member dep6 + */ + eProsima_user_DllExport void dep6( + Type6&& _dep6) + { + m_dep6 = std::move(_dep6); + } + + /*! + * @brief This function returns a constant reference to member dep6 + * @return Constant reference to member dep6 + */ + eProsima_user_DllExport const Type6& dep6() const + { + return m_dep6; + } + + /*! + * @brief This function returns a reference to member dep6 + * @return Reference to member dep6 + */ + eProsima_user_DllExport Type6& dep6() + { + return m_dep6; + } + + + /*! + * @brief This function copies the value in member dep7 + * @param _dep7 New value to be copied in member dep7 + */ + eProsima_user_DllExport void dep7( + const Type7& _dep7) + { + m_dep7 = _dep7; + } + + /*! + * @brief This function moves the value in member dep7 + * @param _dep7 New value to be moved in member dep7 + */ + eProsima_user_DllExport void dep7( + Type7&& _dep7) + { + m_dep7 = std::move(_dep7); + } + + /*! + * @brief This function returns a constant reference to member dep7 + * @return Constant reference to member dep7 + */ + eProsima_user_DllExport const Type7& dep7() const + { + return m_dep7; + } + + /*! + * @brief This function returns a reference to member dep7 + * @return Reference to member dep7 + */ + eProsima_user_DllExport Type7& dep7() + { + return m_dep7; + } + + + /*! + * @brief This function copies the value in member dep8 + * @param _dep8 New value to be copied in member dep8 + */ + eProsima_user_DllExport void dep8( + const Type8& _dep8) + { + m_dep8 = _dep8; + } + + /*! + * @brief This function moves the value in member dep8 + * @param _dep8 New value to be moved in member dep8 + */ + eProsima_user_DllExport void dep8( + Type8&& _dep8) + { + m_dep8 = std::move(_dep8); + } + + /*! + * @brief This function returns a constant reference to member dep8 + * @return Constant reference to member dep8 + */ + eProsima_user_DllExport const Type8& dep8() const + { + return m_dep8; + } + + /*! + * @brief This function returns a reference to member dep8 + * @return Reference to member dep8 + */ + eProsima_user_DllExport Type8& dep8() + { + return m_dep8; + } + + + /*! + * @brief This function copies the value in member dep9 + * @param _dep9 New value to be copied in member dep9 + */ + eProsima_user_DllExport void dep9( + const Type9& _dep9) + { + m_dep9 = _dep9; + } + + /*! + * @brief This function moves the value in member dep9 + * @param _dep9 New value to be moved in member dep9 + */ + eProsima_user_DllExport void dep9( + Type9&& _dep9) + { + m_dep9 = std::move(_dep9); + } + + /*! + * @brief This function returns a constant reference to member dep9 + * @return Constant reference to member dep9 + */ + eProsima_user_DllExport const Type9& dep9() const + { + return m_dep9; + } + + /*! + * @brief This function returns a reference to member dep9 + * @return Reference to member dep9 + */ + eProsima_user_DllExport Type9& dep9() + { + return m_dep9; + } + + + /*! + * @brief This function copies the value in member dep10 + * @param _dep10 New value to be copied in member dep10 + */ + eProsima_user_DllExport void dep10( + const Type10& _dep10) + { + m_dep10 = _dep10; + } + + /*! + * @brief This function moves the value in member dep10 + * @param _dep10 New value to be moved in member dep10 + */ + eProsima_user_DllExport void dep10( + Type10&& _dep10) + { + m_dep10 = std::move(_dep10); + } + + /*! + * @brief This function returns a constant reference to member dep10 + * @return Constant reference to member dep10 + */ + eProsima_user_DllExport const Type10& dep10() const + { + return m_dep10; + } + + /*! + * @brief This function returns a reference to member dep10 + * @return Reference to member dep10 + */ + eProsima_user_DllExport Type10& dep10() + { + return m_dep10; + } + + + /*! + * @brief This function copies the value in member dep11 + * @param _dep11 New value to be copied in member dep11 + */ + eProsima_user_DllExport void dep11( + const Type11& _dep11) + { + m_dep11 = _dep11; + } + + /*! + * @brief This function moves the value in member dep11 + * @param _dep11 New value to be moved in member dep11 + */ + eProsima_user_DllExport void dep11( + Type11&& _dep11) + { + m_dep11 = std::move(_dep11); + } + + /*! + * @brief This function returns a constant reference to member dep11 + * @return Constant reference to member dep11 + */ + eProsima_user_DllExport const Type11& dep11() const + { + return m_dep11; + } + + /*! + * @brief This function returns a reference to member dep11 + * @return Reference to member dep11 + */ + eProsima_user_DllExport Type11& dep11() + { + return m_dep11; + } + + + /*! + * @brief This function copies the value in member dep12 + * @param _dep12 New value to be copied in member dep12 + */ + eProsima_user_DllExport void dep12( + const Type12& _dep12) + { + m_dep12 = _dep12; + } + + /*! + * @brief This function moves the value in member dep12 + * @param _dep12 New value to be moved in member dep12 + */ + eProsima_user_DllExport void dep12( + Type12&& _dep12) + { + m_dep12 = std::move(_dep12); + } + + /*! + * @brief This function returns a constant reference to member dep12 + * @return Constant reference to member dep12 + */ + eProsima_user_DllExport const Type12& dep12() const + { + return m_dep12; + } + + /*! + * @brief This function returns a reference to member dep12 + * @return Reference to member dep12 + */ + eProsima_user_DllExport Type12& dep12() + { + return m_dep12; + } + + + /*! + * @brief This function copies the value in member dep13 + * @param _dep13 New value to be copied in member dep13 + */ + eProsima_user_DllExport void dep13( + const Type13& _dep13) + { + m_dep13 = _dep13; + } + + /*! + * @brief This function moves the value in member dep13 + * @param _dep13 New value to be moved in member dep13 + */ + eProsima_user_DllExport void dep13( + Type13&& _dep13) + { + m_dep13 = std::move(_dep13); + } + + /*! + * @brief This function returns a constant reference to member dep13 + * @return Constant reference to member dep13 + */ + eProsima_user_DllExport const Type13& dep13() const + { + return m_dep13; + } + + /*! + * @brief This function returns a reference to member dep13 + * @return Reference to member dep13 + */ + eProsima_user_DllExport Type13& dep13() + { + return m_dep13; + } + + + /*! + * @brief This function copies the value in member dep14 + * @param _dep14 New value to be copied in member dep14 + */ + eProsima_user_DllExport void dep14( + const Type14& _dep14) + { + m_dep14 = _dep14; + } + + /*! + * @brief This function moves the value in member dep14 + * @param _dep14 New value to be moved in member dep14 + */ + eProsima_user_DllExport void dep14( + Type14&& _dep14) + { + m_dep14 = std::move(_dep14); + } + + /*! + * @brief This function returns a constant reference to member dep14 + * @return Constant reference to member dep14 + */ + eProsima_user_DllExport const Type14& dep14() const + { + return m_dep14; + } + + /*! + * @brief This function returns a reference to member dep14 + * @return Reference to member dep14 + */ + eProsima_user_DllExport Type14& dep14() + { + return m_dep14; + } + + + /*! + * @brief This function copies the value in member dep15 + * @param _dep15 New value to be copied in member dep15 + */ + eProsima_user_DllExport void dep15( + const Type15& _dep15) + { + m_dep15 = _dep15; + } + + /*! + * @brief This function moves the value in member dep15 + * @param _dep15 New value to be moved in member dep15 + */ + eProsima_user_DllExport void dep15( + Type15&& _dep15) + { + m_dep15 = std::move(_dep15); + } + + /*! + * @brief This function returns a constant reference to member dep15 + * @return Constant reference to member dep15 + */ + eProsima_user_DllExport const Type15& dep15() const + { + return m_dep15; + } + + /*! + * @brief This function returns a reference to member dep15 + * @return Reference to member dep15 + */ + eProsima_user_DllExport Type15& dep15() + { + return m_dep15; + } + + + /*! + * @brief This function copies the value in member dep16 + * @param _dep16 New value to be copied in member dep16 + */ + eProsima_user_DllExport void dep16( + const Type16& _dep16) + { + m_dep16 = _dep16; + } + + /*! + * @brief This function moves the value in member dep16 + * @param _dep16 New value to be moved in member dep16 + */ + eProsima_user_DllExport void dep16( + Type16&& _dep16) + { + m_dep16 = std::move(_dep16); + } + + /*! + * @brief This function returns a constant reference to member dep16 + * @return Constant reference to member dep16 + */ + eProsima_user_DllExport const Type16& dep16() const + { + return m_dep16; + } + + /*! + * @brief This function returns a reference to member dep16 + * @return Reference to member dep16 + */ + eProsima_user_DllExport Type16& dep16() + { + return m_dep16; + } + + + /*! + * @brief This function copies the value in member dep17 + * @param _dep17 New value to be copied in member dep17 + */ + eProsima_user_DllExport void dep17( + const Type17& _dep17) + { + m_dep17 = _dep17; + } + + /*! + * @brief This function moves the value in member dep17 + * @param _dep17 New value to be moved in member dep17 + */ + eProsima_user_DllExport void dep17( + Type17&& _dep17) + { + m_dep17 = std::move(_dep17); + } + + /*! + * @brief This function returns a constant reference to member dep17 + * @return Constant reference to member dep17 + */ + eProsima_user_DllExport const Type17& dep17() const + { + return m_dep17; + } + + /*! + * @brief This function returns a reference to member dep17 + * @return Reference to member dep17 + */ + eProsima_user_DllExport Type17& dep17() + { + return m_dep17; + } + + + /*! + * @brief This function copies the value in member dep18 + * @param _dep18 New value to be copied in member dep18 + */ + eProsima_user_DllExport void dep18( + const Type18& _dep18) + { + m_dep18 = _dep18; + } + + /*! + * @brief This function moves the value in member dep18 + * @param _dep18 New value to be moved in member dep18 + */ + eProsima_user_DllExport void dep18( + Type18&& _dep18) + { + m_dep18 = std::move(_dep18); + } + + /*! + * @brief This function returns a constant reference to member dep18 + * @return Constant reference to member dep18 + */ + eProsima_user_DllExport const Type18& dep18() const + { + return m_dep18; + } + + /*! + * @brief This function returns a reference to member dep18 + * @return Reference to member dep18 + */ + eProsima_user_DllExport Type18& dep18() + { + return m_dep18; + } + + + /*! + * @brief This function copies the value in member dep19 + * @param _dep19 New value to be copied in member dep19 + */ + eProsima_user_DllExport void dep19( + const Type19& _dep19) + { + m_dep19 = _dep19; + } + + /*! + * @brief This function moves the value in member dep19 + * @param _dep19 New value to be moved in member dep19 + */ + eProsima_user_DllExport void dep19( + Type19&& _dep19) + { + m_dep19 = std::move(_dep19); + } + + /*! + * @brief This function returns a constant reference to member dep19 + * @return Constant reference to member dep19 + */ + eProsima_user_DllExport const Type19& dep19() const + { + return m_dep19; + } + + /*! + * @brief This function returns a reference to member dep19 + * @return Reference to member dep19 + */ + eProsima_user_DllExport Type19& dep19() + { + return m_dep19; + } + + + /*! + * @brief This function copies the value in member dep20 + * @param _dep20 New value to be copied in member dep20 + */ + eProsima_user_DllExport void dep20( + const Type20& _dep20) + { + m_dep20 = _dep20; + } + + /*! + * @brief This function moves the value in member dep20 + * @param _dep20 New value to be moved in member dep20 + */ + eProsima_user_DllExport void dep20( + Type20&& _dep20) + { + m_dep20 = std::move(_dep20); + } + + /*! + * @brief This function returns a constant reference to member dep20 + * @return Constant reference to member dep20 + */ + eProsima_user_DllExport const Type20& dep20() const + { + return m_dep20; + } + + /*! + * @brief This function returns a reference to member dep20 + * @return Reference to member dep20 + */ + eProsima_user_DllExport Type20& dep20() + { + return m_dep20; + } + + + /*! + * @brief This function copies the value in member dep21 + * @param _dep21 New value to be copied in member dep21 + */ + eProsima_user_DllExport void dep21( + const Type21& _dep21) + { + m_dep21 = _dep21; + } + + /*! + * @brief This function moves the value in member dep21 + * @param _dep21 New value to be moved in member dep21 + */ + eProsima_user_DllExport void dep21( + Type21&& _dep21) + { + m_dep21 = std::move(_dep21); + } + + /*! + * @brief This function returns a constant reference to member dep21 + * @return Constant reference to member dep21 + */ + eProsima_user_DllExport const Type21& dep21() const + { + return m_dep21; + } + + /*! + * @brief This function returns a reference to member dep21 + * @return Reference to member dep21 + */ + eProsima_user_DllExport Type21& dep21() + { + return m_dep21; + } + + + /*! + * @brief This function copies the value in member dep22 + * @param _dep22 New value to be copied in member dep22 + */ + eProsima_user_DllExport void dep22( + const Type22& _dep22) + { + m_dep22 = _dep22; + } + + /*! + * @brief This function moves the value in member dep22 + * @param _dep22 New value to be moved in member dep22 + */ + eProsima_user_DllExport void dep22( + Type22&& _dep22) + { + m_dep22 = std::move(_dep22); + } + + /*! + * @brief This function returns a constant reference to member dep22 + * @return Constant reference to member dep22 + */ + eProsima_user_DllExport const Type22& dep22() const + { + return m_dep22; + } + + /*! + * @brief This function returns a reference to member dep22 + * @return Reference to member dep22 + */ + eProsima_user_DllExport Type22& dep22() + { + return m_dep22; + } + + + /*! + * @brief This function copies the value in member dep23 + * @param _dep23 New value to be copied in member dep23 + */ + eProsima_user_DllExport void dep23( + const Type23& _dep23) + { + m_dep23 = _dep23; + } + + /*! + * @brief This function moves the value in member dep23 + * @param _dep23 New value to be moved in member dep23 + */ + eProsima_user_DllExport void dep23( + Type23&& _dep23) + { + m_dep23 = std::move(_dep23); + } + + /*! + * @brief This function returns a constant reference to member dep23 + * @return Constant reference to member dep23 + */ + eProsima_user_DllExport const Type23& dep23() const + { + return m_dep23; + } + + /*! + * @brief This function returns a reference to member dep23 + * @return Reference to member dep23 + */ + eProsima_user_DllExport Type23& dep23() + { + return m_dep23; + } + + + /*! + * @brief This function copies the value in member dep24 + * @param _dep24 New value to be copied in member dep24 + */ + eProsima_user_DllExport void dep24( + const Type24& _dep24) + { + m_dep24 = _dep24; + } + + /*! + * @brief This function moves the value in member dep24 + * @param _dep24 New value to be moved in member dep24 + */ + eProsima_user_DllExport void dep24( + Type24&& _dep24) + { + m_dep24 = std::move(_dep24); + } + + /*! + * @brief This function returns a constant reference to member dep24 + * @return Constant reference to member dep24 + */ + eProsima_user_DllExport const Type24& dep24() const + { + return m_dep24; + } + + /*! + * @brief This function returns a reference to member dep24 + * @return Reference to member dep24 + */ + eProsima_user_DllExport Type24& dep24() + { + return m_dep24; + } + + + /*! + * @brief This function copies the value in member dep25 + * @param _dep25 New value to be copied in member dep25 + */ + eProsima_user_DllExport void dep25( + const Type25& _dep25) + { + m_dep25 = _dep25; + } + + /*! + * @brief This function moves the value in member dep25 + * @param _dep25 New value to be moved in member dep25 + */ + eProsima_user_DllExport void dep25( + Type25&& _dep25) + { + m_dep25 = std::move(_dep25); + } + + /*! + * @brief This function returns a constant reference to member dep25 + * @return Constant reference to member dep25 + */ + eProsima_user_DllExport const Type25& dep25() const + { + return m_dep25; + } + + /*! + * @brief This function returns a reference to member dep25 + * @return Reference to member dep25 + */ + eProsima_user_DllExport Type25& dep25() + { + return m_dep25; + } + + + /*! + * @brief This function copies the value in member dep26 + * @param _dep26 New value to be copied in member dep26 + */ + eProsima_user_DllExport void dep26( + const Type26& _dep26) + { + m_dep26 = _dep26; + } + + /*! + * @brief This function moves the value in member dep26 + * @param _dep26 New value to be moved in member dep26 + */ + eProsima_user_DllExport void dep26( + Type26&& _dep26) + { + m_dep26 = std::move(_dep26); + } + + /*! + * @brief This function returns a constant reference to member dep26 + * @return Constant reference to member dep26 + */ + eProsima_user_DllExport const Type26& dep26() const + { + return m_dep26; + } + + /*! + * @brief This function returns a reference to member dep26 + * @return Reference to member dep26 + */ + eProsima_user_DllExport Type26& dep26() + { + return m_dep26; + } + + + /*! + * @brief This function copies the value in member dep27 + * @param _dep27 New value to be copied in member dep27 + */ + eProsima_user_DllExport void dep27( + const Type27& _dep27) + { + m_dep27 = _dep27; + } + + /*! + * @brief This function moves the value in member dep27 + * @param _dep27 New value to be moved in member dep27 + */ + eProsima_user_DllExport void dep27( + Type27&& _dep27) + { + m_dep27 = std::move(_dep27); + } + + /*! + * @brief This function returns a constant reference to member dep27 + * @return Constant reference to member dep27 + */ + eProsima_user_DllExport const Type27& dep27() const + { + return m_dep27; + } + + /*! + * @brief This function returns a reference to member dep27 + * @return Reference to member dep27 + */ + eProsima_user_DllExport Type27& dep27() + { + return m_dep27; + } + + + /*! + * @brief This function copies the value in member dep28 + * @param _dep28 New value to be copied in member dep28 + */ + eProsima_user_DllExport void dep28( + const Type28& _dep28) + { + m_dep28 = _dep28; + } + + /*! + * @brief This function moves the value in member dep28 + * @param _dep28 New value to be moved in member dep28 + */ + eProsima_user_DllExport void dep28( + Type28&& _dep28) + { + m_dep28 = std::move(_dep28); + } + + /*! + * @brief This function returns a constant reference to member dep28 + * @return Constant reference to member dep28 + */ + eProsima_user_DllExport const Type28& dep28() const + { + return m_dep28; + } + + /*! + * @brief This function returns a reference to member dep28 + * @return Reference to member dep28 + */ + eProsima_user_DllExport Type28& dep28() + { + return m_dep28; + } + + + /*! + * @brief This function copies the value in member dep29 + * @param _dep29 New value to be copied in member dep29 + */ + eProsima_user_DllExport void dep29( + const Type29& _dep29) + { + m_dep29 = _dep29; + } + + /*! + * @brief This function moves the value in member dep29 + * @param _dep29 New value to be moved in member dep29 + */ + eProsima_user_DllExport void dep29( + Type29&& _dep29) + { + m_dep29 = std::move(_dep29); + } + + /*! + * @brief This function returns a constant reference to member dep29 + * @return Constant reference to member dep29 + */ + eProsima_user_DllExport const Type29& dep29() const + { + return m_dep29; + } + + /*! + * @brief This function returns a reference to member dep29 + * @return Reference to member dep29 + */ + eProsima_user_DllExport Type29& dep29() + { + return m_dep29; + } + + + /*! + * @brief This function copies the value in member dep30 + * @param _dep30 New value to be copied in member dep30 + */ + eProsima_user_DllExport void dep30( + const Type30& _dep30) + { + m_dep30 = _dep30; + } + + /*! + * @brief This function moves the value in member dep30 + * @param _dep30 New value to be moved in member dep30 + */ + eProsima_user_DllExport void dep30( + Type30&& _dep30) + { + m_dep30 = std::move(_dep30); + } + + /*! + * @brief This function returns a constant reference to member dep30 + * @return Constant reference to member dep30 + */ + eProsima_user_DllExport const Type30& dep30() const + { + return m_dep30; + } + + /*! + * @brief This function returns a reference to member dep30 + * @return Reference to member dep30 + */ + eProsima_user_DllExport Type30& dep30() + { + return m_dep30; + } + + + /*! + * @brief This function copies the value in member dep31 + * @param _dep31 New value to be copied in member dep31 + */ + eProsima_user_DllExport void dep31( + const Type31& _dep31) + { + m_dep31 = _dep31; + } + + /*! + * @brief This function moves the value in member dep31 + * @param _dep31 New value to be moved in member dep31 + */ + eProsima_user_DllExport void dep31( + Type31&& _dep31) + { + m_dep31 = std::move(_dep31); + } + + /*! + * @brief This function returns a constant reference to member dep31 + * @return Constant reference to member dep31 + */ + eProsima_user_DllExport const Type31& dep31() const + { + return m_dep31; + } + + /*! + * @brief This function returns a reference to member dep31 + * @return Reference to member dep31 + */ + eProsima_user_DllExport Type31& dep31() + { + return m_dep31; + } + + + /*! + * @brief This function copies the value in member dep32 + * @param _dep32 New value to be copied in member dep32 + */ + eProsima_user_DllExport void dep32( + const Type32& _dep32) + { + m_dep32 = _dep32; + } + + /*! + * @brief This function moves the value in member dep32 + * @param _dep32 New value to be moved in member dep32 + */ + eProsima_user_DllExport void dep32( + Type32&& _dep32) + { + m_dep32 = std::move(_dep32); + } + + /*! + * @brief This function returns a constant reference to member dep32 + * @return Constant reference to member dep32 + */ + eProsima_user_DllExport const Type32& dep32() const + { + return m_dep32; + } + + /*! + * @brief This function returns a reference to member dep32 + * @return Reference to member dep32 + */ + eProsima_user_DllExport Type32& dep32() + { + return m_dep32; + } + + + /*! + * @brief This function copies the value in member dep33 + * @param _dep33 New value to be copied in member dep33 + */ + eProsima_user_DllExport void dep33( + const Type33& _dep33) + { + m_dep33 = _dep33; + } + + /*! + * @brief This function moves the value in member dep33 + * @param _dep33 New value to be moved in member dep33 + */ + eProsima_user_DllExport void dep33( + Type33&& _dep33) + { + m_dep33 = std::move(_dep33); + } + + /*! + * @brief This function returns a constant reference to member dep33 + * @return Constant reference to member dep33 + */ + eProsima_user_DllExport const Type33& dep33() const + { + return m_dep33; + } + + /*! + * @brief This function returns a reference to member dep33 + * @return Reference to member dep33 + */ + eProsima_user_DllExport Type33& dep33() + { + return m_dep33; + } + + + /*! + * @brief This function copies the value in member dep34 + * @param _dep34 New value to be copied in member dep34 + */ + eProsima_user_DllExport void dep34( + const Type34& _dep34) + { + m_dep34 = _dep34; + } + + /*! + * @brief This function moves the value in member dep34 + * @param _dep34 New value to be moved in member dep34 + */ + eProsima_user_DllExport void dep34( + Type34&& _dep34) + { + m_dep34 = std::move(_dep34); + } + + /*! + * @brief This function returns a constant reference to member dep34 + * @return Constant reference to member dep34 + */ + eProsima_user_DllExport const Type34& dep34() const + { + return m_dep34; + } + + /*! + * @brief This function returns a reference to member dep34 + * @return Reference to member dep34 + */ + eProsima_user_DllExport Type34& dep34() + { + return m_dep34; + } + + + /*! + * @brief This function copies the value in member dep35 + * @param _dep35 New value to be copied in member dep35 + */ + eProsima_user_DllExport void dep35( + const Type35& _dep35) + { + m_dep35 = _dep35; + } + + /*! + * @brief This function moves the value in member dep35 + * @param _dep35 New value to be moved in member dep35 + */ + eProsima_user_DllExport void dep35( + Type35&& _dep35) + { + m_dep35 = std::move(_dep35); + } + + /*! + * @brief This function returns a constant reference to member dep35 + * @return Constant reference to member dep35 + */ + eProsima_user_DllExport const Type35& dep35() const + { + return m_dep35; + } + + /*! + * @brief This function returns a reference to member dep35 + * @return Reference to member dep35 + */ + eProsima_user_DllExport Type35& dep35() + { + return m_dep35; + } + + + /*! + * @brief This function copies the value in member dep36 + * @param _dep36 New value to be copied in member dep36 + */ + eProsima_user_DllExport void dep36( + const Type36& _dep36) + { + m_dep36 = _dep36; + } + + /*! + * @brief This function moves the value in member dep36 + * @param _dep36 New value to be moved in member dep36 + */ + eProsima_user_DllExport void dep36( + Type36&& _dep36) + { + m_dep36 = std::move(_dep36); + } + + /*! + * @brief This function returns a constant reference to member dep36 + * @return Constant reference to member dep36 + */ + eProsima_user_DllExport const Type36& dep36() const + { + return m_dep36; + } + + /*! + * @brief This function returns a reference to member dep36 + * @return Reference to member dep36 + */ + eProsima_user_DllExport Type36& dep36() + { + return m_dep36; + } + + + /*! + * @brief This function copies the value in member dep37 + * @param _dep37 New value to be copied in member dep37 + */ + eProsima_user_DllExport void dep37( + const Type37& _dep37) + { + m_dep37 = _dep37; + } + + /*! + * @brief This function moves the value in member dep37 + * @param _dep37 New value to be moved in member dep37 + */ + eProsima_user_DllExport void dep37( + Type37&& _dep37) + { + m_dep37 = std::move(_dep37); + } + + /*! + * @brief This function returns a constant reference to member dep37 + * @return Constant reference to member dep37 + */ + eProsima_user_DllExport const Type37& dep37() const + { + return m_dep37; + } + + /*! + * @brief This function returns a reference to member dep37 + * @return Reference to member dep37 + */ + eProsima_user_DllExport Type37& dep37() + { + return m_dep37; + } + + + /*! + * @brief This function copies the value in member dep38 + * @param _dep38 New value to be copied in member dep38 + */ + eProsima_user_DllExport void dep38( + const Type38& _dep38) + { + m_dep38 = _dep38; + } + + /*! + * @brief This function moves the value in member dep38 + * @param _dep38 New value to be moved in member dep38 + */ + eProsima_user_DllExport void dep38( + Type38&& _dep38) + { + m_dep38 = std::move(_dep38); + } + + /*! + * @brief This function returns a constant reference to member dep38 + * @return Constant reference to member dep38 + */ + eProsima_user_DllExport const Type38& dep38() const + { + return m_dep38; + } + + /*! + * @brief This function returns a reference to member dep38 + * @return Reference to member dep38 + */ + eProsima_user_DllExport Type38& dep38() + { + return m_dep38; + } + + + /*! + * @brief This function copies the value in member dep39 + * @param _dep39 New value to be copied in member dep39 + */ + eProsima_user_DllExport void dep39( + const Type39& _dep39) + { + m_dep39 = _dep39; + } + + /*! + * @brief This function moves the value in member dep39 + * @param _dep39 New value to be moved in member dep39 + */ + eProsima_user_DllExport void dep39( + Type39&& _dep39) + { + m_dep39 = std::move(_dep39); + } + + /*! + * @brief This function returns a constant reference to member dep39 + * @return Constant reference to member dep39 + */ + eProsima_user_DllExport const Type39& dep39() const + { + return m_dep39; + } + + /*! + * @brief This function returns a reference to member dep39 + * @return Reference to member dep39 + */ + eProsima_user_DllExport Type39& dep39() + { + return m_dep39; + } + + + /*! + * @brief This function copies the value in member dep40 + * @param _dep40 New value to be copied in member dep40 + */ + eProsima_user_DllExport void dep40( + const Type40& _dep40) + { + m_dep40 = _dep40; + } + + /*! + * @brief This function moves the value in member dep40 + * @param _dep40 New value to be moved in member dep40 + */ + eProsima_user_DllExport void dep40( + Type40&& _dep40) + { + m_dep40 = std::move(_dep40); + } + + /*! + * @brief This function returns a constant reference to member dep40 + * @return Constant reference to member dep40 + */ + eProsima_user_DllExport const Type40& dep40() const + { + return m_dep40; + } + + /*! + * @brief This function returns a reference to member dep40 + * @return Reference to member dep40 + */ + eProsima_user_DllExport Type40& dep40() + { + return m_dep40; + } + + + /*! + * @brief This function copies the value in member dep41 + * @param _dep41 New value to be copied in member dep41 + */ + eProsima_user_DllExport void dep41( + const Type41& _dep41) + { + m_dep41 = _dep41; + } + + /*! + * @brief This function moves the value in member dep41 + * @param _dep41 New value to be moved in member dep41 + */ + eProsima_user_DllExport void dep41( + Type41&& _dep41) + { + m_dep41 = std::move(_dep41); + } + + /*! + * @brief This function returns a constant reference to member dep41 + * @return Constant reference to member dep41 + */ + eProsima_user_DllExport const Type41& dep41() const + { + return m_dep41; + } + + /*! + * @brief This function returns a reference to member dep41 + * @return Reference to member dep41 + */ + eProsima_user_DllExport Type41& dep41() + { + return m_dep41; + } + + + /*! + * @brief This function copies the value in member dep42 + * @param _dep42 New value to be copied in member dep42 + */ + eProsima_user_DllExport void dep42( + const Type42& _dep42) + { + m_dep42 = _dep42; + } + + /*! + * @brief This function moves the value in member dep42 + * @param _dep42 New value to be moved in member dep42 + */ + eProsima_user_DllExport void dep42( + Type42&& _dep42) + { + m_dep42 = std::move(_dep42); + } + + /*! + * @brief This function returns a constant reference to member dep42 + * @return Constant reference to member dep42 + */ + eProsima_user_DllExport const Type42& dep42() const + { + return m_dep42; + } + + /*! + * @brief This function returns a reference to member dep42 + * @return Reference to member dep42 + */ + eProsima_user_DllExport Type42& dep42() + { + return m_dep42; + } + + + /*! + * @brief This function copies the value in member dep43 + * @param _dep43 New value to be copied in member dep43 + */ + eProsima_user_DllExport void dep43( + const Type43& _dep43) + { + m_dep43 = _dep43; + } + + /*! + * @brief This function moves the value in member dep43 + * @param _dep43 New value to be moved in member dep43 + */ + eProsima_user_DllExport void dep43( + Type43&& _dep43) + { + m_dep43 = std::move(_dep43); + } + + /*! + * @brief This function returns a constant reference to member dep43 + * @return Constant reference to member dep43 + */ + eProsima_user_DllExport const Type43& dep43() const + { + return m_dep43; + } + + /*! + * @brief This function returns a reference to member dep43 + * @return Reference to member dep43 + */ + eProsima_user_DllExport Type43& dep43() + { + return m_dep43; + } + + + /*! + * @brief This function copies the value in member dep44 + * @param _dep44 New value to be copied in member dep44 + */ + eProsima_user_DllExport void dep44( + const Type44& _dep44) + { + m_dep44 = _dep44; + } + + /*! + * @brief This function moves the value in member dep44 + * @param _dep44 New value to be moved in member dep44 + */ + eProsima_user_DllExport void dep44( + Type44&& _dep44) + { + m_dep44 = std::move(_dep44); + } + + /*! + * @brief This function returns a constant reference to member dep44 + * @return Constant reference to member dep44 + */ + eProsima_user_DllExport const Type44& dep44() const + { + return m_dep44; + } + + /*! + * @brief This function returns a reference to member dep44 + * @return Reference to member dep44 + */ + eProsima_user_DllExport Type44& dep44() + { + return m_dep44; + } + + + /*! + * @brief This function copies the value in member dep45 + * @param _dep45 New value to be copied in member dep45 + */ + eProsima_user_DllExport void dep45( + const Type45& _dep45) + { + m_dep45 = _dep45; + } + + /*! + * @brief This function moves the value in member dep45 + * @param _dep45 New value to be moved in member dep45 + */ + eProsima_user_DllExport void dep45( + Type45&& _dep45) + { + m_dep45 = std::move(_dep45); + } + + /*! + * @brief This function returns a constant reference to member dep45 + * @return Constant reference to member dep45 + */ + eProsima_user_DllExport const Type45& dep45() const + { + return m_dep45; + } + + /*! + * @brief This function returns a reference to member dep45 + * @return Reference to member dep45 + */ + eProsima_user_DllExport Type45& dep45() + { + return m_dep45; + } + + + /*! + * @brief This function copies the value in member dep46 + * @param _dep46 New value to be copied in member dep46 + */ + eProsima_user_DllExport void dep46( + const Type46& _dep46) + { + m_dep46 = _dep46; + } + + /*! + * @brief This function moves the value in member dep46 + * @param _dep46 New value to be moved in member dep46 + */ + eProsima_user_DllExport void dep46( + Type46&& _dep46) + { + m_dep46 = std::move(_dep46); + } + + /*! + * @brief This function returns a constant reference to member dep46 + * @return Constant reference to member dep46 + */ + eProsima_user_DllExport const Type46& dep46() const + { + return m_dep46; + } + + /*! + * @brief This function returns a reference to member dep46 + * @return Reference to member dep46 + */ + eProsima_user_DllExport Type46& dep46() + { + return m_dep46; + } + + + /*! + * @brief This function copies the value in member dep47 + * @param _dep47 New value to be copied in member dep47 + */ + eProsima_user_DllExport void dep47( + const Type47& _dep47) + { + m_dep47 = _dep47; + } + + /*! + * @brief This function moves the value in member dep47 + * @param _dep47 New value to be moved in member dep47 + */ + eProsima_user_DllExport void dep47( + Type47&& _dep47) + { + m_dep47 = std::move(_dep47); + } + + /*! + * @brief This function returns a constant reference to member dep47 + * @return Constant reference to member dep47 + */ + eProsima_user_DllExport const Type47& dep47() const + { + return m_dep47; + } + + /*! + * @brief This function returns a reference to member dep47 + * @return Reference to member dep47 + */ + eProsima_user_DllExport Type47& dep47() + { + return m_dep47; + } + + + /*! + * @brief This function copies the value in member dep48 + * @param _dep48 New value to be copied in member dep48 + */ + eProsima_user_DllExport void dep48( + const Type48& _dep48) + { + m_dep48 = _dep48; + } + + /*! + * @brief This function moves the value in member dep48 + * @param _dep48 New value to be moved in member dep48 + */ + eProsima_user_DllExport void dep48( + Type48&& _dep48) + { + m_dep48 = std::move(_dep48); + } + + /*! + * @brief This function returns a constant reference to member dep48 + * @return Constant reference to member dep48 + */ + eProsima_user_DllExport const Type48& dep48() const + { + return m_dep48; + } + + /*! + * @brief This function returns a reference to member dep48 + * @return Reference to member dep48 + */ + eProsima_user_DllExport Type48& dep48() + { + return m_dep48; + } + + + /*! + * @brief This function copies the value in member dep49 + * @param _dep49 New value to be copied in member dep49 + */ + eProsima_user_DllExport void dep49( + const Type49& _dep49) + { + m_dep49 = _dep49; + } + + /*! + * @brief This function moves the value in member dep49 + * @param _dep49 New value to be moved in member dep49 + */ + eProsima_user_DllExport void dep49( + Type49&& _dep49) + { + m_dep49 = std::move(_dep49); + } + + /*! + * @brief This function returns a constant reference to member dep49 + * @return Constant reference to member dep49 + */ + eProsima_user_DllExport const Type49& dep49() const + { + return m_dep49; + } + + /*! + * @brief This function returns a reference to member dep49 + * @return Reference to member dep49 + */ + eProsima_user_DllExport Type49& dep49() + { + return m_dep49; + } + + + /*! + * @brief This function copies the value in member dep50 + * @param _dep50 New value to be copied in member dep50 + */ + eProsima_user_DllExport void dep50( + const Type50& _dep50) + { + m_dep50 = _dep50; + } + + /*! + * @brief This function moves the value in member dep50 + * @param _dep50 New value to be moved in member dep50 + */ + eProsima_user_DllExport void dep50( + Type50&& _dep50) + { + m_dep50 = std::move(_dep50); + } + + /*! + * @brief This function returns a constant reference to member dep50 + * @return Constant reference to member dep50 + */ + eProsima_user_DllExport const Type50& dep50() const + { + return m_dep50; + } + + /*! + * @brief This function returns a reference to member dep50 + * @return Reference to member dep50 + */ + eProsima_user_DllExport Type50& dep50() + { + return m_dep50; + } + + + /*! + * @brief This function copies the value in member dep51 + * @param _dep51 New value to be copied in member dep51 + */ + eProsima_user_DllExport void dep51( + const Type51& _dep51) + { + m_dep51 = _dep51; + } + + /*! + * @brief This function moves the value in member dep51 + * @param _dep51 New value to be moved in member dep51 + */ + eProsima_user_DllExport void dep51( + Type51&& _dep51) + { + m_dep51 = std::move(_dep51); + } + + /*! + * @brief This function returns a constant reference to member dep51 + * @return Constant reference to member dep51 + */ + eProsima_user_DllExport const Type51& dep51() const + { + return m_dep51; + } + + /*! + * @brief This function returns a reference to member dep51 + * @return Reference to member dep51 + */ + eProsima_user_DllExport Type51& dep51() + { + return m_dep51; + } + + + /*! + * @brief This function copies the value in member dep52 + * @param _dep52 New value to be copied in member dep52 + */ + eProsima_user_DllExport void dep52( + const Type52& _dep52) + { + m_dep52 = _dep52; + } + + /*! + * @brief This function moves the value in member dep52 + * @param _dep52 New value to be moved in member dep52 + */ + eProsima_user_DllExport void dep52( + Type52&& _dep52) + { + m_dep52 = std::move(_dep52); + } + + /*! + * @brief This function returns a constant reference to member dep52 + * @return Constant reference to member dep52 + */ + eProsima_user_DllExport const Type52& dep52() const + { + return m_dep52; + } + + /*! + * @brief This function returns a reference to member dep52 + * @return Reference to member dep52 + */ + eProsima_user_DllExport Type52& dep52() + { + return m_dep52; + } + + + /*! + * @brief This function copies the value in member dep53 + * @param _dep53 New value to be copied in member dep53 + */ + eProsima_user_DllExport void dep53( + const Type53& _dep53) + { + m_dep53 = _dep53; + } + + /*! + * @brief This function moves the value in member dep53 + * @param _dep53 New value to be moved in member dep53 + */ + eProsima_user_DllExport void dep53( + Type53&& _dep53) + { + m_dep53 = std::move(_dep53); + } + + /*! + * @brief This function returns a constant reference to member dep53 + * @return Constant reference to member dep53 + */ + eProsima_user_DllExport const Type53& dep53() const + { + return m_dep53; + } + + /*! + * @brief This function returns a reference to member dep53 + * @return Reference to member dep53 + */ + eProsima_user_DllExport Type53& dep53() + { + return m_dep53; + } + + + /*! + * @brief This function copies the value in member dep54 + * @param _dep54 New value to be copied in member dep54 + */ + eProsima_user_DllExport void dep54( + const Type54& _dep54) + { + m_dep54 = _dep54; + } + + /*! + * @brief This function moves the value in member dep54 + * @param _dep54 New value to be moved in member dep54 + */ + eProsima_user_DllExport void dep54( + Type54&& _dep54) + { + m_dep54 = std::move(_dep54); + } + + /*! + * @brief This function returns a constant reference to member dep54 + * @return Constant reference to member dep54 + */ + eProsima_user_DllExport const Type54& dep54() const + { + return m_dep54; + } + + /*! + * @brief This function returns a reference to member dep54 + * @return Reference to member dep54 + */ + eProsima_user_DllExport Type54& dep54() + { + return m_dep54; + } + + + /*! + * @brief This function copies the value in member dep55 + * @param _dep55 New value to be copied in member dep55 + */ + eProsima_user_DllExport void dep55( + const Type55& _dep55) + { + m_dep55 = _dep55; + } + + /*! + * @brief This function moves the value in member dep55 + * @param _dep55 New value to be moved in member dep55 + */ + eProsima_user_DllExport void dep55( + Type55&& _dep55) + { + m_dep55 = std::move(_dep55); + } + + /*! + * @brief This function returns a constant reference to member dep55 + * @return Constant reference to member dep55 + */ + eProsima_user_DllExport const Type55& dep55() const + { + return m_dep55; + } + + /*! + * @brief This function returns a reference to member dep55 + * @return Reference to member dep55 + */ + eProsima_user_DllExport Type55& dep55() + { + return m_dep55; + } + + + /*! + * @brief This function copies the value in member dep56 + * @param _dep56 New value to be copied in member dep56 + */ + eProsima_user_DllExport void dep56( + const Type56& _dep56) + { + m_dep56 = _dep56; + } + + /*! + * @brief This function moves the value in member dep56 + * @param _dep56 New value to be moved in member dep56 + */ + eProsima_user_DllExport void dep56( + Type56&& _dep56) + { + m_dep56 = std::move(_dep56); + } + + /*! + * @brief This function returns a constant reference to member dep56 + * @return Constant reference to member dep56 + */ + eProsima_user_DllExport const Type56& dep56() const + { + return m_dep56; + } + + /*! + * @brief This function returns a reference to member dep56 + * @return Reference to member dep56 + */ + eProsima_user_DllExport Type56& dep56() + { + return m_dep56; + } + + + /*! + * @brief This function copies the value in member dep57 + * @param _dep57 New value to be copied in member dep57 + */ + eProsima_user_DllExport void dep57( + const Type57& _dep57) + { + m_dep57 = _dep57; + } + + /*! + * @brief This function moves the value in member dep57 + * @param _dep57 New value to be moved in member dep57 + */ + eProsima_user_DllExport void dep57( + Type57&& _dep57) + { + m_dep57 = std::move(_dep57); + } + + /*! + * @brief This function returns a constant reference to member dep57 + * @return Constant reference to member dep57 + */ + eProsima_user_DllExport const Type57& dep57() const + { + return m_dep57; + } + + /*! + * @brief This function returns a reference to member dep57 + * @return Reference to member dep57 + */ + eProsima_user_DllExport Type57& dep57() + { + return m_dep57; + } + + + /*! + * @brief This function copies the value in member dep58 + * @param _dep58 New value to be copied in member dep58 + */ + eProsima_user_DllExport void dep58( + const Type58& _dep58) + { + m_dep58 = _dep58; + } + + /*! + * @brief This function moves the value in member dep58 + * @param _dep58 New value to be moved in member dep58 + */ + eProsima_user_DllExport void dep58( + Type58&& _dep58) + { + m_dep58 = std::move(_dep58); + } + + /*! + * @brief This function returns a constant reference to member dep58 + * @return Constant reference to member dep58 + */ + eProsima_user_DllExport const Type58& dep58() const + { + return m_dep58; + } + + /*! + * @brief This function returns a reference to member dep58 + * @return Reference to member dep58 + */ + eProsima_user_DllExport Type58& dep58() + { + return m_dep58; + } + + + /*! + * @brief This function copies the value in member dep59 + * @param _dep59 New value to be copied in member dep59 + */ + eProsima_user_DllExport void dep59( + const Type59& _dep59) + { + m_dep59 = _dep59; + } + + /*! + * @brief This function moves the value in member dep59 + * @param _dep59 New value to be moved in member dep59 + */ + eProsima_user_DllExport void dep59( + Type59&& _dep59) + { + m_dep59 = std::move(_dep59); + } + + /*! + * @brief This function returns a constant reference to member dep59 + * @return Constant reference to member dep59 + */ + eProsima_user_DllExport const Type59& dep59() const + { + return m_dep59; + } + + /*! + * @brief This function returns a reference to member dep59 + * @return Reference to member dep59 + */ + eProsima_user_DllExport Type59& dep59() + { + return m_dep59; + } + + + /*! + * @brief This function copies the value in member dep60 + * @param _dep60 New value to be copied in member dep60 + */ + eProsima_user_DllExport void dep60( + const Type60& _dep60) + { + m_dep60 = _dep60; + } + + /*! + * @brief This function moves the value in member dep60 + * @param _dep60 New value to be moved in member dep60 + */ + eProsima_user_DllExport void dep60( + Type60&& _dep60) + { + m_dep60 = std::move(_dep60); + } + + /*! + * @brief This function returns a constant reference to member dep60 + * @return Constant reference to member dep60 + */ + eProsima_user_DllExport const Type60& dep60() const + { + return m_dep60; + } + + /*! + * @brief This function returns a reference to member dep60 + * @return Reference to member dep60 + */ + eProsima_user_DllExport Type60& dep60() + { + return m_dep60; + } + + + /*! + * @brief This function copies the value in member dep61 + * @param _dep61 New value to be copied in member dep61 + */ + eProsima_user_DllExport void dep61( + const Type61& _dep61) + { + m_dep61 = _dep61; + } + + /*! + * @brief This function moves the value in member dep61 + * @param _dep61 New value to be moved in member dep61 + */ + eProsima_user_DllExport void dep61( + Type61&& _dep61) + { + m_dep61 = std::move(_dep61); + } + + /*! + * @brief This function returns a constant reference to member dep61 + * @return Constant reference to member dep61 + */ + eProsima_user_DllExport const Type61& dep61() const + { + return m_dep61; + } + + /*! + * @brief This function returns a reference to member dep61 + * @return Reference to member dep61 + */ + eProsima_user_DllExport Type61& dep61() + { + return m_dep61; + } + + + /*! + * @brief This function copies the value in member dep62 + * @param _dep62 New value to be copied in member dep62 + */ + eProsima_user_DllExport void dep62( + const Type62& _dep62) + { + m_dep62 = _dep62; + } + + /*! + * @brief This function moves the value in member dep62 + * @param _dep62 New value to be moved in member dep62 + */ + eProsima_user_DllExport void dep62( + Type62&& _dep62) + { + m_dep62 = std::move(_dep62); + } + + /*! + * @brief This function returns a constant reference to member dep62 + * @return Constant reference to member dep62 + */ + eProsima_user_DllExport const Type62& dep62() const + { + return m_dep62; + } + + /*! + * @brief This function returns a reference to member dep62 + * @return Reference to member dep62 + */ + eProsima_user_DllExport Type62& dep62() + { + return m_dep62; + } + + + /*! + * @brief This function copies the value in member dep63 + * @param _dep63 New value to be copied in member dep63 + */ + eProsima_user_DllExport void dep63( + const Type63& _dep63) + { + m_dep63 = _dep63; + } + + /*! + * @brief This function moves the value in member dep63 + * @param _dep63 New value to be moved in member dep63 + */ + eProsima_user_DllExport void dep63( + Type63&& _dep63) + { + m_dep63 = std::move(_dep63); + } + + /*! + * @brief This function returns a constant reference to member dep63 + * @return Constant reference to member dep63 + */ + eProsima_user_DllExport const Type63& dep63() const + { + return m_dep63; + } + + /*! + * @brief This function returns a reference to member dep63 + * @return Reference to member dep63 + */ + eProsima_user_DllExport Type63& dep63() + { + return m_dep63; + } + + + /*! + * @brief This function copies the value in member dep64 + * @param _dep64 New value to be copied in member dep64 + */ + eProsima_user_DllExport void dep64( + const Type64& _dep64) + { + m_dep64 = _dep64; + } + + /*! + * @brief This function moves the value in member dep64 + * @param _dep64 New value to be moved in member dep64 + */ + eProsima_user_DllExport void dep64( + Type64&& _dep64) + { + m_dep64 = std::move(_dep64); + } + + /*! + * @brief This function returns a constant reference to member dep64 + * @return Constant reference to member dep64 + */ + eProsima_user_DllExport const Type64& dep64() const + { + return m_dep64; + } + + /*! + * @brief This function returns a reference to member dep64 + * @return Reference to member dep64 + */ + eProsima_user_DllExport Type64& dep64() + { + return m_dep64; + } + + + /*! + * @brief This function copies the value in member dep65 + * @param _dep65 New value to be copied in member dep65 + */ + eProsima_user_DllExport void dep65( + const Type65& _dep65) + { + m_dep65 = _dep65; + } + + /*! + * @brief This function moves the value in member dep65 + * @param _dep65 New value to be moved in member dep65 + */ + eProsima_user_DllExport void dep65( + Type65&& _dep65) + { + m_dep65 = std::move(_dep65); + } + + /*! + * @brief This function returns a constant reference to member dep65 + * @return Constant reference to member dep65 + */ + eProsima_user_DllExport const Type65& dep65() const + { + return m_dep65; + } + + /*! + * @brief This function returns a reference to member dep65 + * @return Reference to member dep65 + */ + eProsima_user_DllExport Type65& dep65() + { + return m_dep65; + } + + + /*! + * @brief This function copies the value in member dep66 + * @param _dep66 New value to be copied in member dep66 + */ + eProsima_user_DllExport void dep66( + const Type66& _dep66) + { + m_dep66 = _dep66; + } + + /*! + * @brief This function moves the value in member dep66 + * @param _dep66 New value to be moved in member dep66 + */ + eProsima_user_DllExport void dep66( + Type66&& _dep66) + { + m_dep66 = std::move(_dep66); + } + + /*! + * @brief This function returns a constant reference to member dep66 + * @return Constant reference to member dep66 + */ + eProsima_user_DllExport const Type66& dep66() const + { + return m_dep66; + } + + /*! + * @brief This function returns a reference to member dep66 + * @return Reference to member dep66 + */ + eProsima_user_DllExport Type66& dep66() + { + return m_dep66; + } + + + /*! + * @brief This function copies the value in member dep67 + * @param _dep67 New value to be copied in member dep67 + */ + eProsima_user_DllExport void dep67( + const Type67& _dep67) + { + m_dep67 = _dep67; + } + + /*! + * @brief This function moves the value in member dep67 + * @param _dep67 New value to be moved in member dep67 + */ + eProsima_user_DllExport void dep67( + Type67&& _dep67) + { + m_dep67 = std::move(_dep67); + } + + /*! + * @brief This function returns a constant reference to member dep67 + * @return Constant reference to member dep67 + */ + eProsima_user_DllExport const Type67& dep67() const + { + return m_dep67; + } + + /*! + * @brief This function returns a reference to member dep67 + * @return Reference to member dep67 + */ + eProsima_user_DllExport Type67& dep67() + { + return m_dep67; + } + + + /*! + * @brief This function copies the value in member dep68 + * @param _dep68 New value to be copied in member dep68 + */ + eProsima_user_DllExport void dep68( + const Type68& _dep68) + { + m_dep68 = _dep68; + } + + /*! + * @brief This function moves the value in member dep68 + * @param _dep68 New value to be moved in member dep68 + */ + eProsima_user_DllExport void dep68( + Type68&& _dep68) + { + m_dep68 = std::move(_dep68); + } + + /*! + * @brief This function returns a constant reference to member dep68 + * @return Constant reference to member dep68 + */ + eProsima_user_DllExport const Type68& dep68() const + { + return m_dep68; + } + + /*! + * @brief This function returns a reference to member dep68 + * @return Reference to member dep68 + */ + eProsima_user_DllExport Type68& dep68() + { + return m_dep68; + } + + + /*! + * @brief This function copies the value in member dep69 + * @param _dep69 New value to be copied in member dep69 + */ + eProsima_user_DllExport void dep69( + const Type69& _dep69) + { + m_dep69 = _dep69; + } + + /*! + * @brief This function moves the value in member dep69 + * @param _dep69 New value to be moved in member dep69 + */ + eProsima_user_DllExport void dep69( + Type69&& _dep69) + { + m_dep69 = std::move(_dep69); + } + + /*! + * @brief This function returns a constant reference to member dep69 + * @return Constant reference to member dep69 + */ + eProsima_user_DllExport const Type69& dep69() const + { + return m_dep69; + } + + /*! + * @brief This function returns a reference to member dep69 + * @return Reference to member dep69 + */ + eProsima_user_DllExport Type69& dep69() + { + return m_dep69; + } + + + /*! + * @brief This function copies the value in member dep70 + * @param _dep70 New value to be copied in member dep70 + */ + eProsima_user_DllExport void dep70( + const Type70& _dep70) + { + m_dep70 = _dep70; + } + + /*! + * @brief This function moves the value in member dep70 + * @param _dep70 New value to be moved in member dep70 + */ + eProsima_user_DllExport void dep70( + Type70&& _dep70) + { + m_dep70 = std::move(_dep70); + } + + /*! + * @brief This function returns a constant reference to member dep70 + * @return Constant reference to member dep70 + */ + eProsima_user_DllExport const Type70& dep70() const + { + return m_dep70; + } + + /*! + * @brief This function returns a reference to member dep70 + * @return Reference to member dep70 + */ + eProsima_user_DllExport Type70& dep70() + { + return m_dep70; + } + + + /*! + * @brief This function copies the value in member dep71 + * @param _dep71 New value to be copied in member dep71 + */ + eProsima_user_DllExport void dep71( + const Type71& _dep71) + { + m_dep71 = _dep71; + } + + /*! + * @brief This function moves the value in member dep71 + * @param _dep71 New value to be moved in member dep71 + */ + eProsima_user_DllExport void dep71( + Type71&& _dep71) + { + m_dep71 = std::move(_dep71); + } + + /*! + * @brief This function returns a constant reference to member dep71 + * @return Constant reference to member dep71 + */ + eProsima_user_DllExport const Type71& dep71() const + { + return m_dep71; + } + + /*! + * @brief This function returns a reference to member dep71 + * @return Reference to member dep71 + */ + eProsima_user_DllExport Type71& dep71() + { + return m_dep71; + } + + + /*! + * @brief This function copies the value in member dep72 + * @param _dep72 New value to be copied in member dep72 + */ + eProsima_user_DllExport void dep72( + const Type72& _dep72) + { + m_dep72 = _dep72; + } + + /*! + * @brief This function moves the value in member dep72 + * @param _dep72 New value to be moved in member dep72 + */ + eProsima_user_DllExport void dep72( + Type72&& _dep72) + { + m_dep72 = std::move(_dep72); + } + + /*! + * @brief This function returns a constant reference to member dep72 + * @return Constant reference to member dep72 + */ + eProsima_user_DllExport const Type72& dep72() const + { + return m_dep72; + } + + /*! + * @brief This function returns a reference to member dep72 + * @return Reference to member dep72 + */ + eProsima_user_DllExport Type72& dep72() + { + return m_dep72; + } + + + /*! + * @brief This function copies the value in member dep73 + * @param _dep73 New value to be copied in member dep73 + */ + eProsima_user_DllExport void dep73( + const Type73& _dep73) + { + m_dep73 = _dep73; + } + + /*! + * @brief This function moves the value in member dep73 + * @param _dep73 New value to be moved in member dep73 + */ + eProsima_user_DllExport void dep73( + Type73&& _dep73) + { + m_dep73 = std::move(_dep73); + } + + /*! + * @brief This function returns a constant reference to member dep73 + * @return Constant reference to member dep73 + */ + eProsima_user_DllExport const Type73& dep73() const + { + return m_dep73; + } + + /*! + * @brief This function returns a reference to member dep73 + * @return Reference to member dep73 + */ + eProsima_user_DllExport Type73& dep73() + { + return m_dep73; + } + + + /*! + * @brief This function copies the value in member dep74 + * @param _dep74 New value to be copied in member dep74 + */ + eProsima_user_DllExport void dep74( + const Type74& _dep74) + { + m_dep74 = _dep74; + } + + /*! + * @brief This function moves the value in member dep74 + * @param _dep74 New value to be moved in member dep74 + */ + eProsima_user_DllExport void dep74( + Type74&& _dep74) + { + m_dep74 = std::move(_dep74); + } + + /*! + * @brief This function returns a constant reference to member dep74 + * @return Constant reference to member dep74 + */ + eProsima_user_DllExport const Type74& dep74() const + { + return m_dep74; + } + + /*! + * @brief This function returns a reference to member dep74 + * @return Reference to member dep74 + */ + eProsima_user_DllExport Type74& dep74() + { + return m_dep74; + } + + + /*! + * @brief This function copies the value in member dep75 + * @param _dep75 New value to be copied in member dep75 + */ + eProsima_user_DllExport void dep75( + const Type75& _dep75) + { + m_dep75 = _dep75; + } + + /*! + * @brief This function moves the value in member dep75 + * @param _dep75 New value to be moved in member dep75 + */ + eProsima_user_DllExport void dep75( + Type75&& _dep75) + { + m_dep75 = std::move(_dep75); + } + + /*! + * @brief This function returns a constant reference to member dep75 + * @return Constant reference to member dep75 + */ + eProsima_user_DllExport const Type75& dep75() const + { + return m_dep75; + } + + /*! + * @brief This function returns a reference to member dep75 + * @return Reference to member dep75 + */ + eProsima_user_DllExport Type75& dep75() + { + return m_dep75; + } + + + /*! + * @brief This function copies the value in member dep76 + * @param _dep76 New value to be copied in member dep76 + */ + eProsima_user_DllExport void dep76( + const Type76& _dep76) + { + m_dep76 = _dep76; + } + + /*! + * @brief This function moves the value in member dep76 + * @param _dep76 New value to be moved in member dep76 + */ + eProsima_user_DllExport void dep76( + Type76&& _dep76) + { + m_dep76 = std::move(_dep76); + } + + /*! + * @brief This function returns a constant reference to member dep76 + * @return Constant reference to member dep76 + */ + eProsima_user_DllExport const Type76& dep76() const + { + return m_dep76; + } + + /*! + * @brief This function returns a reference to member dep76 + * @return Reference to member dep76 + */ + eProsima_user_DllExport Type76& dep76() + { + return m_dep76; + } + + + /*! + * @brief This function copies the value in member dep77 + * @param _dep77 New value to be copied in member dep77 + */ + eProsima_user_DllExport void dep77( + const Type77& _dep77) + { + m_dep77 = _dep77; + } + + /*! + * @brief This function moves the value in member dep77 + * @param _dep77 New value to be moved in member dep77 + */ + eProsima_user_DllExport void dep77( + Type77&& _dep77) + { + m_dep77 = std::move(_dep77); + } + + /*! + * @brief This function returns a constant reference to member dep77 + * @return Constant reference to member dep77 + */ + eProsima_user_DllExport const Type77& dep77() const + { + return m_dep77; + } + + /*! + * @brief This function returns a reference to member dep77 + * @return Reference to member dep77 + */ + eProsima_user_DllExport Type77& dep77() + { + return m_dep77; + } + + + /*! + * @brief This function copies the value in member dep78 + * @param _dep78 New value to be copied in member dep78 + */ + eProsima_user_DllExport void dep78( + const Type78& _dep78) + { + m_dep78 = _dep78; + } + + /*! + * @brief This function moves the value in member dep78 + * @param _dep78 New value to be moved in member dep78 + */ + eProsima_user_DllExport void dep78( + Type78&& _dep78) + { + m_dep78 = std::move(_dep78); + } + + /*! + * @brief This function returns a constant reference to member dep78 + * @return Constant reference to member dep78 + */ + eProsima_user_DllExport const Type78& dep78() const + { + return m_dep78; + } + + /*! + * @brief This function returns a reference to member dep78 + * @return Reference to member dep78 + */ + eProsima_user_DllExport Type78& dep78() + { + return m_dep78; + } + + + /*! + * @brief This function copies the value in member dep79 + * @param _dep79 New value to be copied in member dep79 + */ + eProsima_user_DllExport void dep79( + const Type79& _dep79) + { + m_dep79 = _dep79; + } + + /*! + * @brief This function moves the value in member dep79 + * @param _dep79 New value to be moved in member dep79 + */ + eProsima_user_DllExport void dep79( + Type79&& _dep79) + { + m_dep79 = std::move(_dep79); + } + + /*! + * @brief This function returns a constant reference to member dep79 + * @return Constant reference to member dep79 + */ + eProsima_user_DllExport const Type79& dep79() const + { + return m_dep79; + } + + /*! + * @brief This function returns a reference to member dep79 + * @return Reference to member dep79 + */ + eProsima_user_DllExport Type79& dep79() + { + return m_dep79; + } + + + /*! + * @brief This function copies the value in member dep80 + * @param _dep80 New value to be copied in member dep80 + */ + eProsima_user_DllExport void dep80( + const Type80& _dep80) + { + m_dep80 = _dep80; + } + + /*! + * @brief This function moves the value in member dep80 + * @param _dep80 New value to be moved in member dep80 + */ + eProsima_user_DllExport void dep80( + Type80&& _dep80) + { + m_dep80 = std::move(_dep80); + } + + /*! + * @brief This function returns a constant reference to member dep80 + * @return Constant reference to member dep80 + */ + eProsima_user_DllExport const Type80& dep80() const + { + return m_dep80; + } + + /*! + * @brief This function returns a reference to member dep80 + * @return Reference to member dep80 + */ + eProsima_user_DllExport Type80& dep80() + { + return m_dep80; + } + + + /*! + * @brief This function copies the value in member dep81 + * @param _dep81 New value to be copied in member dep81 + */ + eProsima_user_DllExport void dep81( + const Type81& _dep81) + { + m_dep81 = _dep81; + } + + /*! + * @brief This function moves the value in member dep81 + * @param _dep81 New value to be moved in member dep81 + */ + eProsima_user_DllExport void dep81( + Type81&& _dep81) + { + m_dep81 = std::move(_dep81); + } + + /*! + * @brief This function returns a constant reference to member dep81 + * @return Constant reference to member dep81 + */ + eProsima_user_DllExport const Type81& dep81() const + { + return m_dep81; + } + + /*! + * @brief This function returns a reference to member dep81 + * @return Reference to member dep81 + */ + eProsima_user_DllExport Type81& dep81() + { + return m_dep81; + } + + + /*! + * @brief This function copies the value in member dep82 + * @param _dep82 New value to be copied in member dep82 + */ + eProsima_user_DllExport void dep82( + const Type82& _dep82) + { + m_dep82 = _dep82; + } + + /*! + * @brief This function moves the value in member dep82 + * @param _dep82 New value to be moved in member dep82 + */ + eProsima_user_DllExport void dep82( + Type82&& _dep82) + { + m_dep82 = std::move(_dep82); + } + + /*! + * @brief This function returns a constant reference to member dep82 + * @return Constant reference to member dep82 + */ + eProsima_user_DllExport const Type82& dep82() const + { + return m_dep82; + } + + /*! + * @brief This function returns a reference to member dep82 + * @return Reference to member dep82 + */ + eProsima_user_DllExport Type82& dep82() + { + return m_dep82; + } + + + /*! + * @brief This function copies the value in member dep83 + * @param _dep83 New value to be copied in member dep83 + */ + eProsima_user_DllExport void dep83( + const Type83& _dep83) + { + m_dep83 = _dep83; + } + + /*! + * @brief This function moves the value in member dep83 + * @param _dep83 New value to be moved in member dep83 + */ + eProsima_user_DllExport void dep83( + Type83&& _dep83) + { + m_dep83 = std::move(_dep83); + } + + /*! + * @brief This function returns a constant reference to member dep83 + * @return Constant reference to member dep83 + */ + eProsima_user_DllExport const Type83& dep83() const + { + return m_dep83; + } + + /*! + * @brief This function returns a reference to member dep83 + * @return Reference to member dep83 + */ + eProsima_user_DllExport Type83& dep83() + { + return m_dep83; + } + + + /*! + * @brief This function copies the value in member dep84 + * @param _dep84 New value to be copied in member dep84 + */ + eProsima_user_DllExport void dep84( + const Type84& _dep84) + { + m_dep84 = _dep84; + } + + /*! + * @brief This function moves the value in member dep84 + * @param _dep84 New value to be moved in member dep84 + */ + eProsima_user_DllExport void dep84( + Type84&& _dep84) + { + m_dep84 = std::move(_dep84); + } + + /*! + * @brief This function returns a constant reference to member dep84 + * @return Constant reference to member dep84 + */ + eProsima_user_DllExport const Type84& dep84() const + { + return m_dep84; + } + + /*! + * @brief This function returns a reference to member dep84 + * @return Reference to member dep84 + */ + eProsima_user_DllExport Type84& dep84() + { + return m_dep84; + } + + + /*! + * @brief This function copies the value in member dep85 + * @param _dep85 New value to be copied in member dep85 + */ + eProsima_user_DllExport void dep85( + const Type85& _dep85) + { + m_dep85 = _dep85; + } + + /*! + * @brief This function moves the value in member dep85 + * @param _dep85 New value to be moved in member dep85 + */ + eProsima_user_DllExport void dep85( + Type85&& _dep85) + { + m_dep85 = std::move(_dep85); + } + + /*! + * @brief This function returns a constant reference to member dep85 + * @return Constant reference to member dep85 + */ + eProsima_user_DllExport const Type85& dep85() const + { + return m_dep85; + } + + /*! + * @brief This function returns a reference to member dep85 + * @return Reference to member dep85 + */ + eProsima_user_DllExport Type85& dep85() + { + return m_dep85; + } + + + /*! + * @brief This function copies the value in member dep86 + * @param _dep86 New value to be copied in member dep86 + */ + eProsima_user_DllExport void dep86( + const Type86& _dep86) + { + m_dep86 = _dep86; + } + + /*! + * @brief This function moves the value in member dep86 + * @param _dep86 New value to be moved in member dep86 + */ + eProsima_user_DllExport void dep86( + Type86&& _dep86) + { + m_dep86 = std::move(_dep86); + } + + /*! + * @brief This function returns a constant reference to member dep86 + * @return Constant reference to member dep86 + */ + eProsima_user_DllExport const Type86& dep86() const + { + return m_dep86; + } + + /*! + * @brief This function returns a reference to member dep86 + * @return Reference to member dep86 + */ + eProsima_user_DllExport Type86& dep86() + { + return m_dep86; + } + + + /*! + * @brief This function copies the value in member dep87 + * @param _dep87 New value to be copied in member dep87 + */ + eProsima_user_DllExport void dep87( + const Type87& _dep87) + { + m_dep87 = _dep87; + } + + /*! + * @brief This function moves the value in member dep87 + * @param _dep87 New value to be moved in member dep87 + */ + eProsima_user_DllExport void dep87( + Type87&& _dep87) + { + m_dep87 = std::move(_dep87); + } + + /*! + * @brief This function returns a constant reference to member dep87 + * @return Constant reference to member dep87 + */ + eProsima_user_DllExport const Type87& dep87() const + { + return m_dep87; + } + + /*! + * @brief This function returns a reference to member dep87 + * @return Reference to member dep87 + */ + eProsima_user_DllExport Type87& dep87() + { + return m_dep87; + } + + + /*! + * @brief This function copies the value in member dep88 + * @param _dep88 New value to be copied in member dep88 + */ + eProsima_user_DllExport void dep88( + const Type88& _dep88) + { + m_dep88 = _dep88; + } + + /*! + * @brief This function moves the value in member dep88 + * @param _dep88 New value to be moved in member dep88 + */ + eProsima_user_DllExport void dep88( + Type88&& _dep88) + { + m_dep88 = std::move(_dep88); + } + + /*! + * @brief This function returns a constant reference to member dep88 + * @return Constant reference to member dep88 + */ + eProsima_user_DllExport const Type88& dep88() const + { + return m_dep88; + } + + /*! + * @brief This function returns a reference to member dep88 + * @return Reference to member dep88 + */ + eProsima_user_DllExport Type88& dep88() + { + return m_dep88; + } + + + /*! + * @brief This function copies the value in member dep89 + * @param _dep89 New value to be copied in member dep89 + */ + eProsima_user_DllExport void dep89( + const Type89& _dep89) + { + m_dep89 = _dep89; + } + + /*! + * @brief This function moves the value in member dep89 + * @param _dep89 New value to be moved in member dep89 + */ + eProsima_user_DllExport void dep89( + Type89&& _dep89) + { + m_dep89 = std::move(_dep89); + } + + /*! + * @brief This function returns a constant reference to member dep89 + * @return Constant reference to member dep89 + */ + eProsima_user_DllExport const Type89& dep89() const + { + return m_dep89; + } + + /*! + * @brief This function returns a reference to member dep89 + * @return Reference to member dep89 + */ + eProsima_user_DllExport Type89& dep89() + { + return m_dep89; + } + + + /*! + * @brief This function copies the value in member dep90 + * @param _dep90 New value to be copied in member dep90 + */ + eProsima_user_DllExport void dep90( + const Type90& _dep90) + { + m_dep90 = _dep90; + } + + /*! + * @brief This function moves the value in member dep90 + * @param _dep90 New value to be moved in member dep90 + */ + eProsima_user_DllExport void dep90( + Type90&& _dep90) + { + m_dep90 = std::move(_dep90); + } + + /*! + * @brief This function returns a constant reference to member dep90 + * @return Constant reference to member dep90 + */ + eProsima_user_DllExport const Type90& dep90() const + { + return m_dep90; + } + + /*! + * @brief This function returns a reference to member dep90 + * @return Reference to member dep90 + */ + eProsima_user_DllExport Type90& dep90() + { + return m_dep90; + } + + + /*! + * @brief This function copies the value in member dep91 + * @param _dep91 New value to be copied in member dep91 + */ + eProsima_user_DllExport void dep91( + const Type91& _dep91) + { + m_dep91 = _dep91; + } + + /*! + * @brief This function moves the value in member dep91 + * @param _dep91 New value to be moved in member dep91 + */ + eProsima_user_DllExport void dep91( + Type91&& _dep91) + { + m_dep91 = std::move(_dep91); + } + + /*! + * @brief This function returns a constant reference to member dep91 + * @return Constant reference to member dep91 + */ + eProsima_user_DllExport const Type91& dep91() const + { + return m_dep91; + } + + /*! + * @brief This function returns a reference to member dep91 + * @return Reference to member dep91 + */ + eProsima_user_DllExport Type91& dep91() + { + return m_dep91; + } + + + /*! + * @brief This function copies the value in member dep92 + * @param _dep92 New value to be copied in member dep92 + */ + eProsima_user_DllExport void dep92( + const Type92& _dep92) + { + m_dep92 = _dep92; + } + + /*! + * @brief This function moves the value in member dep92 + * @param _dep92 New value to be moved in member dep92 + */ + eProsima_user_DllExport void dep92( + Type92&& _dep92) + { + m_dep92 = std::move(_dep92); + } + + /*! + * @brief This function returns a constant reference to member dep92 + * @return Constant reference to member dep92 + */ + eProsima_user_DllExport const Type92& dep92() const + { + return m_dep92; + } + + /*! + * @brief This function returns a reference to member dep92 + * @return Reference to member dep92 + */ + eProsima_user_DllExport Type92& dep92() + { + return m_dep92; + } + + + /*! + * @brief This function copies the value in member dep93 + * @param _dep93 New value to be copied in member dep93 + */ + eProsima_user_DllExport void dep93( + const Type93& _dep93) + { + m_dep93 = _dep93; + } + + /*! + * @brief This function moves the value in member dep93 + * @param _dep93 New value to be moved in member dep93 + */ + eProsima_user_DllExport void dep93( + Type93&& _dep93) + { + m_dep93 = std::move(_dep93); + } + + /*! + * @brief This function returns a constant reference to member dep93 + * @return Constant reference to member dep93 + */ + eProsima_user_DllExport const Type93& dep93() const + { + return m_dep93; + } + + /*! + * @brief This function returns a reference to member dep93 + * @return Reference to member dep93 + */ + eProsima_user_DllExport Type93& dep93() + { + return m_dep93; + } + + + /*! + * @brief This function copies the value in member dep94 + * @param _dep94 New value to be copied in member dep94 + */ + eProsima_user_DllExport void dep94( + const Type94& _dep94) + { + m_dep94 = _dep94; + } + + /*! + * @brief This function moves the value in member dep94 + * @param _dep94 New value to be moved in member dep94 + */ + eProsima_user_DllExport void dep94( + Type94&& _dep94) + { + m_dep94 = std::move(_dep94); + } + + /*! + * @brief This function returns a constant reference to member dep94 + * @return Constant reference to member dep94 + */ + eProsima_user_DllExport const Type94& dep94() const + { + return m_dep94; + } + + /*! + * @brief This function returns a reference to member dep94 + * @return Reference to member dep94 + */ + eProsima_user_DllExport Type94& dep94() + { + return m_dep94; + } + + + /*! + * @brief This function copies the value in member dep95 + * @param _dep95 New value to be copied in member dep95 + */ + eProsima_user_DllExport void dep95( + const Type95& _dep95) + { + m_dep95 = _dep95; + } + + /*! + * @brief This function moves the value in member dep95 + * @param _dep95 New value to be moved in member dep95 + */ + eProsima_user_DllExport void dep95( + Type95&& _dep95) + { + m_dep95 = std::move(_dep95); + } + + /*! + * @brief This function returns a constant reference to member dep95 + * @return Constant reference to member dep95 + */ + eProsima_user_DllExport const Type95& dep95() const + { + return m_dep95; + } + + /*! + * @brief This function returns a reference to member dep95 + * @return Reference to member dep95 + */ + eProsima_user_DllExport Type95& dep95() + { + return m_dep95; + } + + + /*! + * @brief This function copies the value in member dep96 + * @param _dep96 New value to be copied in member dep96 + */ + eProsima_user_DllExport void dep96( + const Type96& _dep96) + { + m_dep96 = _dep96; + } + + /*! + * @brief This function moves the value in member dep96 + * @param _dep96 New value to be moved in member dep96 + */ + eProsima_user_DllExport void dep96( + Type96&& _dep96) + { + m_dep96 = std::move(_dep96); + } + + /*! + * @brief This function returns a constant reference to member dep96 + * @return Constant reference to member dep96 + */ + eProsima_user_DllExport const Type96& dep96() const + { + return m_dep96; + } + + /*! + * @brief This function returns a reference to member dep96 + * @return Reference to member dep96 + */ + eProsima_user_DllExport Type96& dep96() + { + return m_dep96; + } + + + /*! + * @brief This function copies the value in member dep97 + * @param _dep97 New value to be copied in member dep97 + */ + eProsima_user_DllExport void dep97( + const Type97& _dep97) + { + m_dep97 = _dep97; + } + + /*! + * @brief This function moves the value in member dep97 + * @param _dep97 New value to be moved in member dep97 + */ + eProsima_user_DllExport void dep97( + Type97&& _dep97) + { + m_dep97 = std::move(_dep97); + } + + /*! + * @brief This function returns a constant reference to member dep97 + * @return Constant reference to member dep97 + */ + eProsima_user_DllExport const Type97& dep97() const + { + return m_dep97; + } + + /*! + * @brief This function returns a reference to member dep97 + * @return Reference to member dep97 + */ + eProsima_user_DllExport Type97& dep97() + { + return m_dep97; + } + + + /*! + * @brief This function copies the value in member dep98 + * @param _dep98 New value to be copied in member dep98 + */ + eProsima_user_DllExport void dep98( + const Type98& _dep98) + { + m_dep98 = _dep98; + } + + /*! + * @brief This function moves the value in member dep98 + * @param _dep98 New value to be moved in member dep98 + */ + eProsima_user_DllExport void dep98( + Type98&& _dep98) + { + m_dep98 = std::move(_dep98); + } + + /*! + * @brief This function returns a constant reference to member dep98 + * @return Constant reference to member dep98 + */ + eProsima_user_DllExport const Type98& dep98() const + { + return m_dep98; + } + + /*! + * @brief This function returns a reference to member dep98 + * @return Reference to member dep98 + */ + eProsima_user_DllExport Type98& dep98() + { + return m_dep98; + } + + + /*! + * @brief This function copies the value in member dep99 + * @param _dep99 New value to be copied in member dep99 + */ + eProsima_user_DllExport void dep99( + const Type99& _dep99) + { + m_dep99 = _dep99; + } + + /*! + * @brief This function moves the value in member dep99 + * @param _dep99 New value to be moved in member dep99 + */ + eProsima_user_DllExport void dep99( + Type99&& _dep99) + { + m_dep99 = std::move(_dep99); + } + + /*! + * @brief This function returns a constant reference to member dep99 + * @return Constant reference to member dep99 + */ + eProsima_user_DllExport const Type99& dep99() const + { + return m_dep99; + } + + /*! + * @brief This function returns a reference to member dep99 + * @return Reference to member dep99 + */ + eProsima_user_DllExport Type99& dep99() + { + return m_dep99; + } + + + /*! + * @brief This function copies the value in member dep100 + * @param _dep100 New value to be copied in member dep100 + */ + eProsima_user_DllExport void dep100( + const Type100& _dep100) + { + m_dep100 = _dep100; + } + + /*! + * @brief This function moves the value in member dep100 + * @param _dep100 New value to be moved in member dep100 + */ + eProsima_user_DllExport void dep100( + Type100&& _dep100) + { + m_dep100 = std::move(_dep100); + } + + /*! + * @brief This function returns a constant reference to member dep100 + * @return Constant reference to member dep100 + */ + eProsima_user_DllExport const Type100& dep100() const + { + return m_dep100; + } + + /*! + * @brief This function returns a reference to member dep100 + * @return Reference to member dep100 + */ + eProsima_user_DllExport Type100& dep100() + { + return m_dep100; } private: + uint16_t m_index{0}; Type1 m_dep1; Type2 m_dep2; Type3 m_dep3; + Type4 m_dep4; + Type5 m_dep5; + Type6 m_dep6; + Type7 m_dep7; + Type8 m_dep8; + Type9 m_dep9; + Type10 m_dep10; + Type11 m_dep11; + Type12 m_dep12; + Type13 m_dep13; + Type14 m_dep14; + Type15 m_dep15; + Type16 m_dep16; + Type17 m_dep17; + Type18 m_dep18; + Type19 m_dep19; + Type20 m_dep20; + Type21 m_dep21; + Type22 m_dep22; + Type23 m_dep23; + Type24 m_dep24; + Type25 m_dep25; + Type26 m_dep26; + Type27 m_dep27; + Type28 m_dep28; + Type29 m_dep29; + Type30 m_dep30; + Type31 m_dep31; + Type32 m_dep32; + Type33 m_dep33; + Type34 m_dep34; + Type35 m_dep35; + Type36 m_dep36; + Type37 m_dep37; + Type38 m_dep38; + Type39 m_dep39; + Type40 m_dep40; + Type41 m_dep41; + Type42 m_dep42; + Type43 m_dep43; + Type44 m_dep44; + Type45 m_dep45; + Type46 m_dep46; + Type47 m_dep47; + Type48 m_dep48; + Type49 m_dep49; + Type50 m_dep50; + Type51 m_dep51; + Type52 m_dep52; + Type53 m_dep53; + Type54 m_dep54; + Type55 m_dep55; + Type56 m_dep56; + Type57 m_dep57; + Type58 m_dep58; + Type59 m_dep59; + Type60 m_dep60; + Type61 m_dep61; + Type62 m_dep62; + Type63 m_dep63; + Type64 m_dep64; + Type65 m_dep65; + Type66 m_dep66; + Type67 m_dep67; + Type68 m_dep68; + Type69 m_dep69; + Type70 m_dep70; + Type71 m_dep71; + Type72 m_dep72; + Type73 m_dep73; + Type74 m_dep74; + Type75 m_dep75; + Type76 m_dep76; + Type77 m_dep77; + Type78 m_dep78; + Type79 m_dep79; + Type80 m_dep80; + Type81 m_dep81; + Type82 m_dep82; + Type83 m_dep83; + Type84 m_dep84; + Type85 m_dep85; + Type86 m_dep86; + Type87 m_dep87; + Type88 m_dep88; + Type89 m_dep89; + Type90 m_dep90; + Type91 m_dep91; + Type92 m_dep92; + Type93 m_dep93; + Type94 m_dep94; + Type95 m_dep95; + Type96 m_dep96; + Type97 m_dep97; + Type98 m_dep98; + Type99 m_dep99; + Type100 m_dep100; }; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.idl b/test/dds/xtypes/idl/XtypesTestsTypeBig.idl index fd04c54c926..c0f9c0d69fd 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBig.idl +++ b/test/dds/xtypes/idl/XtypesTestsTypeBig.idl @@ -2,9 +2,497 @@ #include "XtypesTestsType2.idl" #include "XtypesTestsType3.idl" -struct TypeBig -{ +struct Type4 +{ + unsigned short index; +}; +struct Type5 +{ + unsigned short index; +}; +struct Type6 +{ + unsigned short index; +}; +struct Type7 +{ + unsigned short index; +}; +struct Type8 +{ + unsigned short index; +}; +struct Type9 +{ + unsigned short index; +}; +struct Type10 +{ + unsigned short index; +}; +struct Type11 +{ + unsigned short index; +}; +struct Type12 +{ + unsigned short index; +}; +struct Type13 +{ + unsigned short index; +}; +struct Type14 +{ + unsigned short index; +}; +struct Type15 +{ + unsigned short index; +}; +struct Type16 +{ + unsigned short index; +}; +struct Type17 +{ + unsigned short index; +}; +struct Type18 +{ + unsigned short index; +}; +struct Type19 +{ + unsigned short index; +}; +struct Type20 +{ + unsigned short index; +}; +struct Type21 +{ + unsigned short index; +}; +struct Type22 +{ + unsigned short index; +}; +struct Type23 +{ + unsigned short index; +}; +struct Type24 +{ + unsigned short index; +}; +struct Type25 +{ + unsigned short index; +}; +struct Type26 +{ + unsigned short index; +}; +struct Type27 +{ + unsigned short index; +}; +struct Type28 +{ + unsigned short index; +}; +struct Type29 +{ + unsigned short index; +}; +struct Type30 +{ + unsigned short index; +}; +struct Type31 +{ + unsigned short index; +}; +struct Type32 +{ + unsigned short index; +}; +struct Type33 +{ + unsigned short index; +}; +struct Type34 +{ + unsigned short index; +}; +struct Type35 +{ + unsigned short index; +}; +struct Type36 +{ + unsigned short index; +}; +struct Type37 +{ + unsigned short index; +}; +struct Type38 +{ + unsigned short index; +}; +struct Type39 +{ + unsigned short index; +}; +struct Type40 +{ + unsigned short index; +}; +struct Type41 +{ + unsigned short index; +}; +struct Type42 +{ + unsigned short index; +}; +struct Type43 +{ + unsigned short index; +}; +struct Type44 +{ + unsigned short index; +}; +struct Type45 +{ + unsigned short index; +}; +struct Type46 +{ + unsigned short index; +}; +struct Type47 +{ + unsigned short index; +}; +struct Type48 +{ + unsigned short index; +}; +struct Type49 +{ + unsigned short index; +}; +struct Type50 +{ + unsigned short index; +}; +struct Type51 +{ + unsigned short index; +}; +struct Type52 +{ + unsigned short index; +}; +struct Type53 +{ + unsigned short index; +}; +struct Type54 +{ + unsigned short index; +}; +struct Type55 +{ + unsigned short index; +}; +struct Type56 +{ + unsigned short index; +}; +struct Type57 +{ + unsigned short index; +}; +struct Type58 +{ + unsigned short index; +}; +struct Type59 +{ + unsigned short index; +}; +struct Type60 +{ + unsigned short index; +}; +struct Type61 +{ + unsigned short index; +}; +struct Type62 +{ + unsigned short index; +}; +struct Type63 +{ + unsigned short index; +}; +struct Type64 +{ + unsigned short index; +}; +struct Type65 +{ + unsigned short index; +}; +struct Type66 +{ + unsigned short index; +}; +struct Type67 +{ + unsigned short index; +}; +struct Type68 +{ + unsigned short index; +}; +struct Type69 +{ + unsigned short index; +}; +struct Type70 +{ + unsigned short index; +}; +struct Type71 +{ + unsigned short index; +}; +struct Type72 +{ + unsigned short index; +}; +struct Type73 +{ + unsigned short index; +}; +struct Type74 +{ + unsigned short index; +}; +struct Type75 +{ + unsigned short index; +}; +struct Type76 +{ + unsigned short index; +}; +struct Type77 +{ + unsigned short index; +}; +struct Type78 +{ + unsigned short index; +}; +struct Type79 +{ + unsigned short index; +}; +struct Type80 +{ + unsigned short index; +}; +struct Type81 +{ + unsigned short index; +}; +struct Type82 +{ + unsigned short index; +}; +struct Type83 +{ + unsigned short index; +}; +struct Type84 +{ + unsigned short index; +}; +struct Type85 +{ + unsigned short index; +}; +struct Type86 +{ + unsigned short index; +}; +struct Type87 +{ + unsigned short index; +}; +struct Type88 +{ + unsigned short index; +}; +struct Type89 +{ + unsigned short index; +}; +struct Type90 +{ + unsigned short index; +}; +struct Type91 +{ + unsigned short index; +}; +struct Type92 +{ + unsigned short index; +}; +struct Type93 +{ + unsigned short index; +}; +struct Type94 +{ + unsigned short index; +}; +struct Type95 +{ + unsigned short index; +}; +struct Type96 +{ + unsigned short index; +}; +struct Type97 +{ + unsigned short index; +}; +struct Type98 +{ + unsigned short index; +}; +struct Type99 +{ + unsigned short index; +}; +struct Type100 +{ + unsigned short index; +}; + + +struct TypeBig +{ + unsigned short index; Type1 dep1; Type2 dep2; Type3 dep3; -}; + Type4 dep4; + Type5 dep5; + Type6 dep6; + Type7 dep7; + Type8 dep8; + Type9 dep9; + Type10 dep10; + Type11 dep11; + Type12 dep12; + Type13 dep13; + Type14 dep14; + Type15 dep15; + Type16 dep16; + Type17 dep17; + Type18 dep18; + Type19 dep19; + Type20 dep20; + Type21 dep21; + Type22 dep22; + Type23 dep23; + Type24 dep24; + Type25 dep25; + Type26 dep26; + Type27 dep27; + Type28 dep28; + Type29 dep29; + Type30 dep30; + Type31 dep31; + Type32 dep32; + Type33 dep33; + Type34 dep34; + Type35 dep35; + Type36 dep36; + Type37 dep37; + Type38 dep38; + Type39 dep39; + Type40 dep40; + Type41 dep41; + Type42 dep42; + Type43 dep43; + Type44 dep44; + Type45 dep45; + Type46 dep46; + Type47 dep47; + Type48 dep48; + Type49 dep49; + Type50 dep50; + Type51 dep51; + Type52 dep52; + Type53 dep53; + Type54 dep54; + Type55 dep55; + Type56 dep56; + Type57 dep57; + Type58 dep58; + Type59 dep59; + Type60 dep60; + Type61 dep61; + Type62 dep62; + Type63 dep63; + Type64 dep64; + Type65 dep65; + Type66 dep66; + Type67 dep67; + Type68 dep68; + Type69 dep69; + Type70 dep70; + Type71 dep71; + Type72 dep72; + Type73 dep73; + Type74 dep74; + Type75 dep75; + Type76 dep76; + Type77 dep77; + Type78 dep78; + Type79 dep79; + Type80 dep80; + Type81 dep81; + Type82 dep82; + Type83 dep83; + Type84 dep84; + Type85 dep85; + Type86 dep86; + Type87 dep87; + Type88 dep88; + Type89 dep89; + Type90 dep90; + Type91 dep91; + Type92 dep92; + Type93 dep93; + Type94 dep94; + Type95 dep95; + Type96 dep96; + Type97 dep97; + Type98 dep98; + Type99 dep99; + Type100 dep100; +}; \ No newline at end of file diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp index 103f0d17501..6352586588c 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp @@ -24,9 +24,302 @@ #include "XtypesTestsTypeBig.hpp" -constexpr uint32_t TypeBig_max_cdr_typesize {28UL}; +constexpr uint32_t Type30_max_cdr_typesize {6UL}; +constexpr uint32_t Type30_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type35_max_cdr_typesize {6UL}; +constexpr uint32_t Type35_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type36_max_cdr_typesize {6UL}; +constexpr uint32_t Type36_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type100_max_cdr_typesize {6UL}; +constexpr uint32_t Type100_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type37_max_cdr_typesize {6UL}; +constexpr uint32_t Type37_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type38_max_cdr_typesize {6UL}; +constexpr uint32_t Type38_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type31_max_cdr_typesize {6UL}; +constexpr uint32_t Type31_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type32_max_cdr_typesize {6UL}; +constexpr uint32_t Type32_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type33_max_cdr_typesize {6UL}; +constexpr uint32_t Type33_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type34_max_cdr_typesize {6UL}; +constexpr uint32_t Type34_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type28_max_cdr_typesize {6UL}; +constexpr uint32_t Type28_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type29_max_cdr_typesize {6UL}; +constexpr uint32_t Type29_max_key_cdr_typesize {0UL}; + +constexpr uint32_t TypeBig_max_cdr_typesize {806UL}; constexpr uint32_t TypeBig_max_key_cdr_typesize {0UL}; +constexpr uint32_t Type24_max_cdr_typesize {6UL}; +constexpr uint32_t Type24_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type25_max_cdr_typesize {6UL}; +constexpr uint32_t Type25_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type26_max_cdr_typesize {6UL}; +constexpr uint32_t Type26_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type27_max_cdr_typesize {6UL}; +constexpr uint32_t Type27_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type20_max_cdr_typesize {6UL}; +constexpr uint32_t Type20_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type21_max_cdr_typesize {6UL}; +constexpr uint32_t Type21_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type22_max_cdr_typesize {6UL}; +constexpr uint32_t Type22_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type23_max_cdr_typesize {6UL}; +constexpr uint32_t Type23_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type17_max_cdr_typesize {6UL}; +constexpr uint32_t Type17_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type18_max_cdr_typesize {6UL}; +constexpr uint32_t Type18_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type19_max_cdr_typesize {6UL}; +constexpr uint32_t Type19_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type50_max_cdr_typesize {6UL}; +constexpr uint32_t Type50_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type51_max_cdr_typesize {6UL}; +constexpr uint32_t Type51_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type52_max_cdr_typesize {6UL}; +constexpr uint32_t Type52_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type57_max_cdr_typesize {6UL}; +constexpr uint32_t Type57_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type58_max_cdr_typesize {6UL}; +constexpr uint32_t Type58_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type59_max_cdr_typesize {6UL}; +constexpr uint32_t Type59_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type53_max_cdr_typesize {6UL}; +constexpr uint32_t Type53_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type54_max_cdr_typesize {6UL}; +constexpr uint32_t Type54_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type55_max_cdr_typesize {6UL}; +constexpr uint32_t Type55_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type56_max_cdr_typesize {6UL}; +constexpr uint32_t Type56_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type40_max_cdr_typesize {6UL}; +constexpr uint32_t Type40_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type41_max_cdr_typesize {6UL}; +constexpr uint32_t Type41_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type46_max_cdr_typesize {6UL}; +constexpr uint32_t Type46_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type47_max_cdr_typesize {6UL}; +constexpr uint32_t Type47_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type48_max_cdr_typesize {6UL}; +constexpr uint32_t Type48_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type49_max_cdr_typesize {6UL}; +constexpr uint32_t Type49_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type42_max_cdr_typesize {6UL}; +constexpr uint32_t Type42_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type43_max_cdr_typesize {6UL}; +constexpr uint32_t Type43_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type44_max_cdr_typesize {6UL}; +constexpr uint32_t Type44_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type45_max_cdr_typesize {6UL}; +constexpr uint32_t Type45_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type39_max_cdr_typesize {6UL}; +constexpr uint32_t Type39_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type71_max_cdr_typesize {6UL}; +constexpr uint32_t Type71_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type72_max_cdr_typesize {6UL}; +constexpr uint32_t Type72_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type73_max_cdr_typesize {6UL}; +constexpr uint32_t Type73_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type74_max_cdr_typesize {6UL}; +constexpr uint32_t Type74_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type70_max_cdr_typesize {6UL}; +constexpr uint32_t Type70_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type79_max_cdr_typesize {6UL}; +constexpr uint32_t Type79_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type75_max_cdr_typesize {6UL}; +constexpr uint32_t Type75_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type76_max_cdr_typesize {6UL}; +constexpr uint32_t Type76_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type77_max_cdr_typesize {6UL}; +constexpr uint32_t Type77_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type78_max_cdr_typesize {6UL}; +constexpr uint32_t Type78_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type60_max_cdr_typesize {6UL}; +constexpr uint32_t Type60_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type61_max_cdr_typesize {6UL}; +constexpr uint32_t Type61_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type62_max_cdr_typesize {6UL}; +constexpr uint32_t Type62_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type63_max_cdr_typesize {6UL}; +constexpr uint32_t Type63_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type68_max_cdr_typesize {6UL}; +constexpr uint32_t Type68_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type69_max_cdr_typesize {6UL}; +constexpr uint32_t Type69_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type64_max_cdr_typesize {6UL}; +constexpr uint32_t Type64_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type65_max_cdr_typesize {6UL}; +constexpr uint32_t Type65_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type66_max_cdr_typesize {6UL}; +constexpr uint32_t Type66_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type67_max_cdr_typesize {6UL}; +constexpr uint32_t Type67_max_key_cdr_typesize {0UL}; + + +constexpr uint32_t Type93_max_cdr_typesize {6UL}; +constexpr uint32_t Type93_max_key_cdr_typesize {0UL}; + + +constexpr uint32_t Type94_max_cdr_typesize {6UL}; +constexpr uint32_t Type94_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type4_max_cdr_typesize {6UL}; +constexpr uint32_t Type4_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type95_max_cdr_typesize {6UL}; +constexpr uint32_t Type95_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type5_max_cdr_typesize {6UL}; +constexpr uint32_t Type5_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type96_max_cdr_typesize {6UL}; +constexpr uint32_t Type96_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type6_max_cdr_typesize {6UL}; +constexpr uint32_t Type6_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type7_max_cdr_typesize {6UL}; +constexpr uint32_t Type7_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type90_max_cdr_typesize {6UL}; +constexpr uint32_t Type90_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type8_max_cdr_typesize {6UL}; +constexpr uint32_t Type8_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type91_max_cdr_typesize {6UL}; +constexpr uint32_t Type91_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type9_max_cdr_typesize {6UL}; +constexpr uint32_t Type9_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type92_max_cdr_typesize {6UL}; +constexpr uint32_t Type92_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type13_max_cdr_typesize {6UL}; +constexpr uint32_t Type13_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type14_max_cdr_typesize {6UL}; +constexpr uint32_t Type14_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type15_max_cdr_typesize {6UL}; +constexpr uint32_t Type15_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type16_max_cdr_typesize {6UL}; +constexpr uint32_t Type16_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type97_max_cdr_typesize {6UL}; +constexpr uint32_t Type97_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type10_max_cdr_typesize {6UL}; +constexpr uint32_t Type10_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type98_max_cdr_typesize {6UL}; +constexpr uint32_t Type98_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type11_max_cdr_typesize {6UL}; +constexpr uint32_t Type11_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type99_max_cdr_typesize {6UL}; +constexpr uint32_t Type99_max_key_cdr_typesize {0UL}; + + +constexpr uint32_t Type12_max_cdr_typesize {6UL}; +constexpr uint32_t Type12_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type82_max_cdr_typesize {6UL}; +constexpr uint32_t Type82_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type83_max_cdr_typesize {6UL}; +constexpr uint32_t Type83_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type84_max_cdr_typesize {6UL}; +constexpr uint32_t Type84_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type85_max_cdr_typesize {6UL}; +constexpr uint32_t Type85_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type80_max_cdr_typesize {6UL}; +constexpr uint32_t Type80_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type81_max_cdr_typesize {6UL}; +constexpr uint32_t Type81_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type86_max_cdr_typesize {6UL}; +constexpr uint32_t Type86_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type87_max_cdr_typesize {6UL}; +constexpr uint32_t Type87_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type88_max_cdr_typesize {6UL}; +constexpr uint32_t Type88_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type89_max_cdr_typesize {6UL}; +constexpr uint32_t Type89_max_key_cdr_typesize {0UL}; namespace eprosima { @@ -35,6 +328,394 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type4& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type5& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type6& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type7& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type8& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type9& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type10& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type11& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type12& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type13& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type14& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type15& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type16& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type17& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type18& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type19& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type20& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type21& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type22& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type23& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type24& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type25& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type26& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type27& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type28& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type29& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type30& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type31& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type32& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type33& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type34& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type35& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type36& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type37& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type38& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type39& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type40& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type41& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type42& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type43& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type44& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type45& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type46& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type47& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type48& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type49& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type50& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type51& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type52& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type53& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type54& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type55& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type56& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type57& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type58& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type59& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type60& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type61& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type62& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type63& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type64& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type65& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type66& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type67& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type68& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type69& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type70& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type71& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type72& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type73& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type74& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type75& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type76& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type77& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type78& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type79& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type80& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type81& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type82& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type83& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type84& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type85& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type86& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type87& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type88& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type89& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type90& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type91& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type92& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type93& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type94& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type95& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type96& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type97& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type98& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type99& data); + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type100& data); + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const TypeBig& data); diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp index a074b0b3a87..36a2d9d725d 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp @@ -37,7 +37,7 @@ namespace fastcdr { template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, - const TypeBig& data, + const Type4& data, size_t& current_alignment) { static_cast(data); @@ -51,13 +51,83 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.dep1(), current_alignment); + data.index(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.dep2(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), - data.dep3(), current_alignment); + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type4& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type4& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type4& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type5& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -68,7 +138,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( template<> eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, - const TypeBig& data) + const Type5& data) { eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, @@ -77,9 +147,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.dep1() - << eprosima::fastcdr::MemberId(1) << data.dep2() - << eprosima::fastcdr::MemberId(2) << data.dep3() + << eprosima::fastcdr::MemberId(0) << data.index() ; scdr.end_serialize_type(current_state); } @@ -87,7 +155,7 @@ eProsima_user_DllExport void serialize( template<> eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, - TypeBig& data) + Type5& data) { cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : @@ -98,15 +166,8103 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.dep1(); + dcdr >> data.index(); break; - case 1: - dcdr >> data.dep2(); + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type5& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type6& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type6& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type6& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); break; - case 2: - dcdr >> data.dep3(); + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type6& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type7& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type7& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type7& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type7& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type8& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type8& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type8& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type8& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type9& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type9& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type9& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type9& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type10& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type10& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type10& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type10& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type11& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type11& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type11& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type11& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type12& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type12& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type12& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type12& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type13& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type13& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type13& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type13& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type14& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type14& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type14& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type14& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type15& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type15& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type15& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type15& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type16& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type16& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type16& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type16& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type17& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type17& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type17& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type17& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type18& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type18& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type18& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type18& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type19& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type19& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type19& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type19& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type20& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type20& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type20& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type20& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type21& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type21& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type21& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type21& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type22& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type22& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type22& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type22& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type23& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type23& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type23& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type23& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type24& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type24& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type24& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type24& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type25& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type25& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type25& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type25& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type26& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type26& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type26& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type26& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type27& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type27& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type27& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type27& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type28& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type28& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type28& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type28& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type29& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type29& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type29& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type29& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type30& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type30& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type30& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type30& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type31& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type31& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type31& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type31& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type32& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type32& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type32& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type32& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type33& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type33& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type33& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type33& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type34& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type34& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type34& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type34& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type35& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type35& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type35& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type35& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type36& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type36& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type36& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type36& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type37& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type37& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type37& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type37& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type38& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type38& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type38& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type38& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type39& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type39& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type39& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type39& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type40& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type40& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type40& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type40& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type41& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type41& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type41& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type41& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type42& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type42& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type42& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type42& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type43& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type43& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type43& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type43& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type44& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type44& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type44& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type44& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type45& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type45& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type45& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type45& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type46& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type46& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type46& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type46& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type47& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type47& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type47& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type47& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type48& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type48& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type48& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type48& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type49& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type49& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type49& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type49& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type50& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type50& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type50& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type50& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type51& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type51& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type51& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type51& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type52& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type52& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type52& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type52& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type53& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type53& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type53& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type53& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type54& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type54& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type54& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type54& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type55& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type55& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type55& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type55& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type56& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type56& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type56& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type56& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type57& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type57& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type57& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type57& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type58& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type58& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type58& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type58& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type59& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type59& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type59& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type59& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type60& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type60& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type60& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type60& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type61& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type61& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type61& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type61& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type62& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type62& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type62& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type62& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type63& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type63& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type63& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type63& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type64& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type64& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type64& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type64& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type65& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type65& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type65& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type65& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type66& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type66& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type66& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type66& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type67& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type67& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type67& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type67& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type68& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type68& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type68& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type68& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type69& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type69& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type69& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type69& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type70& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type70& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type70& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type70& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type71& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type71& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type71& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type71& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type72& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type72& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type72& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type72& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type73& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type73& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type73& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type73& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type74& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type74& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type74& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type74& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type75& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type75& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type75& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type75& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type76& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type76& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type76& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type76& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type77& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type77& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type77& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type77& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type78& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type78& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type78& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type78& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type79& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type79& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type79& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type79& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type80& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type80& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type80& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type80& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type81& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type81& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type81& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type81& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type82& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type82& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type82& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type82& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type83& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type83& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type83& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type83& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type84& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type84& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type84& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type84& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type85& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type85& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type85& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type85& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type86& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type86& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type86& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type86& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type87& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type87& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type87& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type87& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type88& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type88& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type88& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type88& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type89& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type89& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type89& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type89& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type90& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type90& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type90& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type90& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type91& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type91& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type91& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type91& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type92& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type92& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type92& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type92& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type93& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type93& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type93& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type93& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type94& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type94& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type94& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type94& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type95& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type95& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type95& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type95& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type96& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type96& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type96& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type96& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type97& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type97& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type97& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type97& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type98& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type98& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type98& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type98& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type99& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type99& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type99& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type99& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const Type100& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const Type100& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type100& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type100& data) +{ + static_cast(scdr); + static_cast(data); +} + + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const TypeBig& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.dep1(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.dep2(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(3), + data.dep3(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(4), + data.dep4(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(5), + data.dep5(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(6), + data.dep6(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(7), + data.dep7(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(8), + data.dep8(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(9), + data.dep9(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(10), + data.dep10(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(11), + data.dep11(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(12), + data.dep12(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(13), + data.dep13(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(14), + data.dep14(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(15), + data.dep15(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(16), + data.dep16(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(17), + data.dep17(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(18), + data.dep18(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(19), + data.dep19(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(20), + data.dep20(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(21), + data.dep21(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(22), + data.dep22(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(23), + data.dep23(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(24), + data.dep24(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(25), + data.dep25(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(26), + data.dep26(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(27), + data.dep27(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(28), + data.dep28(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(29), + data.dep29(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(30), + data.dep30(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(31), + data.dep31(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(32), + data.dep32(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(33), + data.dep33(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(34), + data.dep34(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(35), + data.dep35(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(36), + data.dep36(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(37), + data.dep37(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(38), + data.dep38(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(39), + data.dep39(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(40), + data.dep40(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(41), + data.dep41(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(42), + data.dep42(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(43), + data.dep43(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(44), + data.dep44(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(45), + data.dep45(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(46), + data.dep46(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(47), + data.dep47(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(48), + data.dep48(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(49), + data.dep49(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(50), + data.dep50(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(51), + data.dep51(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(52), + data.dep52(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(53), + data.dep53(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(54), + data.dep54(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(55), + data.dep55(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(56), + data.dep56(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(57), + data.dep57(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(58), + data.dep58(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(59), + data.dep59(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(60), + data.dep60(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(61), + data.dep61(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(62), + data.dep62(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(63), + data.dep63(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(64), + data.dep64(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(65), + data.dep65(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(66), + data.dep66(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(67), + data.dep67(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(68), + data.dep68(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(69), + data.dep69(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(70), + data.dep70(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(71), + data.dep71(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(72), + data.dep72(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(73), + data.dep73(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(74), + data.dep74(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(75), + data.dep75(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(76), + data.dep76(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(77), + data.dep77(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(78), + data.dep78(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(79), + data.dep79(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(80), + data.dep80(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(81), + data.dep81(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(82), + data.dep82(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(83), + data.dep83(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(84), + data.dep84(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(85), + data.dep85(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(86), + data.dep86(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(87), + data.dep87(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(88), + data.dep88(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(89), + data.dep89(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(90), + data.dep90(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(91), + data.dep91(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(92), + data.dep92(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(93), + data.dep93(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(94), + data.dep94(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(95), + data.dep95(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(96), + data.dep96(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(97), + data.dep97(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(98), + data.dep98(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(99), + data.dep99(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(100), + data.dep100(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const TypeBig& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(1) << data.dep1() + << eprosima::fastcdr::MemberId(2) << data.dep2() + << eprosima::fastcdr::MemberId(3) << data.dep3() + << eprosima::fastcdr::MemberId(4) << data.dep4() + << eprosima::fastcdr::MemberId(5) << data.dep5() + << eprosima::fastcdr::MemberId(6) << data.dep6() + << eprosima::fastcdr::MemberId(7) << data.dep7() + << eprosima::fastcdr::MemberId(8) << data.dep8() + << eprosima::fastcdr::MemberId(9) << data.dep9() + << eprosima::fastcdr::MemberId(10) << data.dep10() + << eprosima::fastcdr::MemberId(11) << data.dep11() + << eprosima::fastcdr::MemberId(12) << data.dep12() + << eprosima::fastcdr::MemberId(13) << data.dep13() + << eprosima::fastcdr::MemberId(14) << data.dep14() + << eprosima::fastcdr::MemberId(15) << data.dep15() + << eprosima::fastcdr::MemberId(16) << data.dep16() + << eprosima::fastcdr::MemberId(17) << data.dep17() + << eprosima::fastcdr::MemberId(18) << data.dep18() + << eprosima::fastcdr::MemberId(19) << data.dep19() + << eprosima::fastcdr::MemberId(20) << data.dep20() + << eprosima::fastcdr::MemberId(21) << data.dep21() + << eprosima::fastcdr::MemberId(22) << data.dep22() + << eprosima::fastcdr::MemberId(23) << data.dep23() + << eprosima::fastcdr::MemberId(24) << data.dep24() + << eprosima::fastcdr::MemberId(25) << data.dep25() + << eprosima::fastcdr::MemberId(26) << data.dep26() + << eprosima::fastcdr::MemberId(27) << data.dep27() + << eprosima::fastcdr::MemberId(28) << data.dep28() + << eprosima::fastcdr::MemberId(29) << data.dep29() + << eprosima::fastcdr::MemberId(30) << data.dep30() + << eprosima::fastcdr::MemberId(31) << data.dep31() + << eprosima::fastcdr::MemberId(32) << data.dep32() + << eprosima::fastcdr::MemberId(33) << data.dep33() + << eprosima::fastcdr::MemberId(34) << data.dep34() + << eprosima::fastcdr::MemberId(35) << data.dep35() + << eprosima::fastcdr::MemberId(36) << data.dep36() + << eprosima::fastcdr::MemberId(37) << data.dep37() + << eprosima::fastcdr::MemberId(38) << data.dep38() + << eprosima::fastcdr::MemberId(39) << data.dep39() + << eprosima::fastcdr::MemberId(40) << data.dep40() + << eprosima::fastcdr::MemberId(41) << data.dep41() + << eprosima::fastcdr::MemberId(42) << data.dep42() + << eprosima::fastcdr::MemberId(43) << data.dep43() + << eprosima::fastcdr::MemberId(44) << data.dep44() + << eprosima::fastcdr::MemberId(45) << data.dep45() + << eprosima::fastcdr::MemberId(46) << data.dep46() + << eprosima::fastcdr::MemberId(47) << data.dep47() + << eprosima::fastcdr::MemberId(48) << data.dep48() + << eprosima::fastcdr::MemberId(49) << data.dep49() + << eprosima::fastcdr::MemberId(50) << data.dep50() + << eprosima::fastcdr::MemberId(51) << data.dep51() + << eprosima::fastcdr::MemberId(52) << data.dep52() + << eprosima::fastcdr::MemberId(53) << data.dep53() + << eprosima::fastcdr::MemberId(54) << data.dep54() + << eprosima::fastcdr::MemberId(55) << data.dep55() + << eprosima::fastcdr::MemberId(56) << data.dep56() + << eprosima::fastcdr::MemberId(57) << data.dep57() + << eprosima::fastcdr::MemberId(58) << data.dep58() + << eprosima::fastcdr::MemberId(59) << data.dep59() + << eprosima::fastcdr::MemberId(60) << data.dep60() + << eprosima::fastcdr::MemberId(61) << data.dep61() + << eprosima::fastcdr::MemberId(62) << data.dep62() + << eprosima::fastcdr::MemberId(63) << data.dep63() + << eprosima::fastcdr::MemberId(64) << data.dep64() + << eprosima::fastcdr::MemberId(65) << data.dep65() + << eprosima::fastcdr::MemberId(66) << data.dep66() + << eprosima::fastcdr::MemberId(67) << data.dep67() + << eprosima::fastcdr::MemberId(68) << data.dep68() + << eprosima::fastcdr::MemberId(69) << data.dep69() + << eprosima::fastcdr::MemberId(70) << data.dep70() + << eprosima::fastcdr::MemberId(71) << data.dep71() + << eprosima::fastcdr::MemberId(72) << data.dep72() + << eprosima::fastcdr::MemberId(73) << data.dep73() + << eprosima::fastcdr::MemberId(74) << data.dep74() + << eprosima::fastcdr::MemberId(75) << data.dep75() + << eprosima::fastcdr::MemberId(76) << data.dep76() + << eprosima::fastcdr::MemberId(77) << data.dep77() + << eprosima::fastcdr::MemberId(78) << data.dep78() + << eprosima::fastcdr::MemberId(79) << data.dep79() + << eprosima::fastcdr::MemberId(80) << data.dep80() + << eprosima::fastcdr::MemberId(81) << data.dep81() + << eprosima::fastcdr::MemberId(82) << data.dep82() + << eprosima::fastcdr::MemberId(83) << data.dep83() + << eprosima::fastcdr::MemberId(84) << data.dep84() + << eprosima::fastcdr::MemberId(85) << data.dep85() + << eprosima::fastcdr::MemberId(86) << data.dep86() + << eprosima::fastcdr::MemberId(87) << data.dep87() + << eprosima::fastcdr::MemberId(88) << data.dep88() + << eprosima::fastcdr::MemberId(89) << data.dep89() + << eprosima::fastcdr::MemberId(90) << data.dep90() + << eprosima::fastcdr::MemberId(91) << data.dep91() + << eprosima::fastcdr::MemberId(92) << data.dep92() + << eprosima::fastcdr::MemberId(93) << data.dep93() + << eprosima::fastcdr::MemberId(94) << data.dep94() + << eprosima::fastcdr::MemberId(95) << data.dep95() + << eprosima::fastcdr::MemberId(96) << data.dep96() + << eprosima::fastcdr::MemberId(97) << data.dep97() + << eprosima::fastcdr::MemberId(98) << data.dep98() + << eprosima::fastcdr::MemberId(99) << data.dep99() + << eprosima::fastcdr::MemberId(100) << data.dep100() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + TypeBig& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + case 1: + dcdr >> data.dep1(); + break; + + case 2: + dcdr >> data.dep2(); + break; + + case 3: + dcdr >> data.dep3(); + break; + + case 4: + dcdr >> data.dep4(); + break; + + case 5: + dcdr >> data.dep5(); + break; + + case 6: + dcdr >> data.dep6(); + break; + + case 7: + dcdr >> data.dep7(); + break; + + case 8: + dcdr >> data.dep8(); + break; + + case 9: + dcdr >> data.dep9(); + break; + + case 10: + dcdr >> data.dep10(); + break; + + case 11: + dcdr >> data.dep11(); + break; + + case 12: + dcdr >> data.dep12(); + break; + + case 13: + dcdr >> data.dep13(); + break; + + case 14: + dcdr >> data.dep14(); + break; + + case 15: + dcdr >> data.dep15(); + break; + + case 16: + dcdr >> data.dep16(); + break; + + case 17: + dcdr >> data.dep17(); + break; + + case 18: + dcdr >> data.dep18(); + break; + + case 19: + dcdr >> data.dep19(); + break; + + case 20: + dcdr >> data.dep20(); + break; + + case 21: + dcdr >> data.dep21(); + break; + + case 22: + dcdr >> data.dep22(); + break; + + case 23: + dcdr >> data.dep23(); + break; + + case 24: + dcdr >> data.dep24(); + break; + + case 25: + dcdr >> data.dep25(); + break; + + case 26: + dcdr >> data.dep26(); + break; + + case 27: + dcdr >> data.dep27(); + break; + + case 28: + dcdr >> data.dep28(); + break; + + case 29: + dcdr >> data.dep29(); + break; + + case 30: + dcdr >> data.dep30(); + break; + + case 31: + dcdr >> data.dep31(); + break; + + case 32: + dcdr >> data.dep32(); + break; + + case 33: + dcdr >> data.dep33(); + break; + + case 34: + dcdr >> data.dep34(); + break; + + case 35: + dcdr >> data.dep35(); + break; + + case 36: + dcdr >> data.dep36(); + break; + + case 37: + dcdr >> data.dep37(); + break; + + case 38: + dcdr >> data.dep38(); + break; + + case 39: + dcdr >> data.dep39(); + break; + + case 40: + dcdr >> data.dep40(); + break; + + case 41: + dcdr >> data.dep41(); + break; + + case 42: + dcdr >> data.dep42(); + break; + + case 43: + dcdr >> data.dep43(); + break; + + case 44: + dcdr >> data.dep44(); + break; + + case 45: + dcdr >> data.dep45(); + break; + + case 46: + dcdr >> data.dep46(); + break; + + case 47: + dcdr >> data.dep47(); + break; + + case 48: + dcdr >> data.dep48(); + break; + + case 49: + dcdr >> data.dep49(); + break; + + case 50: + dcdr >> data.dep50(); + break; + + case 51: + dcdr >> data.dep51(); + break; + + case 52: + dcdr >> data.dep52(); + break; + + case 53: + dcdr >> data.dep53(); + break; + + case 54: + dcdr >> data.dep54(); + break; + + case 55: + dcdr >> data.dep55(); + break; + + case 56: + dcdr >> data.dep56(); + break; + + case 57: + dcdr >> data.dep57(); + break; + + case 58: + dcdr >> data.dep58(); + break; + + case 59: + dcdr >> data.dep59(); + break; + + case 60: + dcdr >> data.dep60(); + break; + + case 61: + dcdr >> data.dep61(); + break; + + case 62: + dcdr >> data.dep62(); + break; + + case 63: + dcdr >> data.dep63(); + break; + + case 64: + dcdr >> data.dep64(); + break; + + case 65: + dcdr >> data.dep65(); + break; + + case 66: + dcdr >> data.dep66(); + break; + + case 67: + dcdr >> data.dep67(); + break; + + case 68: + dcdr >> data.dep68(); + break; + + case 69: + dcdr >> data.dep69(); + break; + + case 70: + dcdr >> data.dep70(); + break; + + case 71: + dcdr >> data.dep71(); + break; + + case 72: + dcdr >> data.dep72(); + break; + + case 73: + dcdr >> data.dep73(); + break; + + case 74: + dcdr >> data.dep74(); + break; + + case 75: + dcdr >> data.dep75(); + break; + + case 76: + dcdr >> data.dep76(); + break; + + case 77: + dcdr >> data.dep77(); + break; + + case 78: + dcdr >> data.dep78(); + break; + + case 79: + dcdr >> data.dep79(); + break; + + case 80: + dcdr >> data.dep80(); + break; + + case 81: + dcdr >> data.dep81(); + break; + + case 82: + dcdr >> data.dep82(); + break; + + case 83: + dcdr >> data.dep83(); + break; + + case 84: + dcdr >> data.dep84(); + break; + + case 85: + dcdr >> data.dep85(); + break; + + case 86: + dcdr >> data.dep86(); + break; + + case 87: + dcdr >> data.dep87(); + break; + + case 88: + dcdr >> data.dep88(); + break; + + case 89: + dcdr >> data.dep89(); + break; + + case 90: + dcdr >> data.dep90(); + break; + + case 91: + dcdr >> data.dep91(); + break; + + case 92: + dcdr >> data.dep92(); + break; + + case 93: + dcdr >> data.dep93(); + break; + + case 94: + dcdr >> data.dep94(); + break; + + case 95: + dcdr >> data.dep95(); + break; + + case 96: + dcdr >> data.dep96(); + break; + + case 97: + dcdr >> data.dep97(); + break; + + case 98: + dcdr >> data.dep98(); + break; + + case 99: + dcdr >> data.dep99(); + break; + + case 100: + dcdr >> data.dep100(); break; default: diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx index cccc72ae3e4..f8cb026ca3f 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx @@ -31,6 +31,18727 @@ using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; +Type4PubSubType::Type4PubSubType() +{ + setName("Type4"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type4::getMaxCdrSerializedSize()); +#else + Type4_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type4_max_key_cdr_typesize > 16 ? Type4_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type4PubSubType::~Type4PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type4PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type4* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type4PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type4* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type4PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type4PubSubType::createData() +{ + return reinterpret_cast(new Type4()); +} + +void Type4PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type4PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type4* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type4_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type4_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type4PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type5PubSubType::Type5PubSubType() +{ + setName("Type5"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type5::getMaxCdrSerializedSize()); +#else + Type5_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type5_max_key_cdr_typesize > 16 ? Type5_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type5PubSubType::~Type5PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type5PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type5* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type5PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type5* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type5PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type5PubSubType::createData() +{ + return reinterpret_cast(new Type5()); +} + +void Type5PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type5PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type5* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type5_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type5_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type5PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type6PubSubType::Type6PubSubType() +{ + setName("Type6"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type6::getMaxCdrSerializedSize()); +#else + Type6_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type6_max_key_cdr_typesize > 16 ? Type6_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type6PubSubType::~Type6PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type6PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type6* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type6PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type6* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type6PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type6PubSubType::createData() +{ + return reinterpret_cast(new Type6()); +} + +void Type6PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type6PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type6* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type6_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type6_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type6PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type7PubSubType::Type7PubSubType() +{ + setName("Type7"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type7::getMaxCdrSerializedSize()); +#else + Type7_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type7_max_key_cdr_typesize > 16 ? Type7_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type7PubSubType::~Type7PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type7PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type7* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type7PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type7* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type7PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type7PubSubType::createData() +{ + return reinterpret_cast(new Type7()); +} + +void Type7PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type7PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type7* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type7_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type7_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type7PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type8PubSubType::Type8PubSubType() +{ + setName("Type8"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type8::getMaxCdrSerializedSize()); +#else + Type8_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type8_max_key_cdr_typesize > 16 ? Type8_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type8PubSubType::~Type8PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type8PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type8* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type8PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type8* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type8PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type8PubSubType::createData() +{ + return reinterpret_cast(new Type8()); +} + +void Type8PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type8PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type8* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type8_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type8_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type8PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type9PubSubType::Type9PubSubType() +{ + setName("Type9"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type9::getMaxCdrSerializedSize()); +#else + Type9_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type9_max_key_cdr_typesize > 16 ? Type9_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type9PubSubType::~Type9PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type9PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type9* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type9PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type9* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type9PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type9PubSubType::createData() +{ + return reinterpret_cast(new Type9()); +} + +void Type9PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type9PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type9* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type9_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type9_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type9PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type10PubSubType::Type10PubSubType() +{ + setName("Type10"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type10::getMaxCdrSerializedSize()); +#else + Type10_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type10_max_key_cdr_typesize > 16 ? Type10_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type10PubSubType::~Type10PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type10PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type10* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type10PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type10* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type10PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type10PubSubType::createData() +{ + return reinterpret_cast(new Type10()); +} + +void Type10PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type10PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type10* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type10_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type10_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type10PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type11PubSubType::Type11PubSubType() +{ + setName("Type11"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type11::getMaxCdrSerializedSize()); +#else + Type11_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type11_max_key_cdr_typesize > 16 ? Type11_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type11PubSubType::~Type11PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type11PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type11* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type11PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type11* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type11PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type11PubSubType::createData() +{ + return reinterpret_cast(new Type11()); +} + +void Type11PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type11PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type11* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type11_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type11_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type11PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type12PubSubType::Type12PubSubType() +{ + setName("Type12"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type12::getMaxCdrSerializedSize()); +#else + Type12_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type12_max_key_cdr_typesize > 16 ? Type12_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type12PubSubType::~Type12PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type12PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type12* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type12PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type12* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type12PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type12PubSubType::createData() +{ + return reinterpret_cast(new Type12()); +} + +void Type12PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type12PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type12* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type12_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type12_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type12PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type13PubSubType::Type13PubSubType() +{ + setName("Type13"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type13::getMaxCdrSerializedSize()); +#else + Type13_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type13_max_key_cdr_typesize > 16 ? Type13_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type13PubSubType::~Type13PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type13PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type13* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type13PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type13* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type13PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type13PubSubType::createData() +{ + return reinterpret_cast(new Type13()); +} + +void Type13PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type13PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type13* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type13_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type13_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type13PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type14PubSubType::Type14PubSubType() +{ + setName("Type14"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type14::getMaxCdrSerializedSize()); +#else + Type14_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type14_max_key_cdr_typesize > 16 ? Type14_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type14PubSubType::~Type14PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type14PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type14* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type14PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type14* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type14PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type14PubSubType::createData() +{ + return reinterpret_cast(new Type14()); +} + +void Type14PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type14PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type14* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type14_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type14_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type14PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type15PubSubType::Type15PubSubType() +{ + setName("Type15"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type15::getMaxCdrSerializedSize()); +#else + Type15_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type15_max_key_cdr_typesize > 16 ? Type15_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type15PubSubType::~Type15PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type15PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type15* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type15PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type15* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type15PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type15PubSubType::createData() +{ + return reinterpret_cast(new Type15()); +} + +void Type15PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type15PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type15* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type15_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type15_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type15PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type16PubSubType::Type16PubSubType() +{ + setName("Type16"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type16::getMaxCdrSerializedSize()); +#else + Type16_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type16_max_key_cdr_typesize > 16 ? Type16_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type16PubSubType::~Type16PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type16PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type16* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type16PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type16* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type16PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type16PubSubType::createData() +{ + return reinterpret_cast(new Type16()); +} + +void Type16PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type16PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type16* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type16_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type16_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type16PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type17PubSubType::Type17PubSubType() +{ + setName("Type17"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type17::getMaxCdrSerializedSize()); +#else + Type17_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type17_max_key_cdr_typesize > 16 ? Type17_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type17PubSubType::~Type17PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type17PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type17* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type17PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type17* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type17PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type17PubSubType::createData() +{ + return reinterpret_cast(new Type17()); +} + +void Type17PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type17PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type17* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type17_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type17_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type17PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type18PubSubType::Type18PubSubType() +{ + setName("Type18"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type18::getMaxCdrSerializedSize()); +#else + Type18_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type18_max_key_cdr_typesize > 16 ? Type18_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type18PubSubType::~Type18PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type18PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type18* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type18PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type18* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type18PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type18PubSubType::createData() +{ + return reinterpret_cast(new Type18()); +} + +void Type18PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type18PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type18* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type18_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type18_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type18PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type19PubSubType::Type19PubSubType() +{ + setName("Type19"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type19::getMaxCdrSerializedSize()); +#else + Type19_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type19_max_key_cdr_typesize > 16 ? Type19_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type19PubSubType::~Type19PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type19PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type19* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type19PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type19* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type19PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type19PubSubType::createData() +{ + return reinterpret_cast(new Type19()); +} + +void Type19PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type19PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type19* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type19_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type19_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type19PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type20PubSubType::Type20PubSubType() +{ + setName("Type20"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type20::getMaxCdrSerializedSize()); +#else + Type20_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type20_max_key_cdr_typesize > 16 ? Type20_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type20PubSubType::~Type20PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type20PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type20* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type20PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type20* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type20PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type20PubSubType::createData() +{ + return reinterpret_cast(new Type20()); +} + +void Type20PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type20PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type20* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type20_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type20_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type20PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type21PubSubType::Type21PubSubType() +{ + setName("Type21"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type21::getMaxCdrSerializedSize()); +#else + Type21_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type21_max_key_cdr_typesize > 16 ? Type21_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type21PubSubType::~Type21PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type21PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type21* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type21PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type21* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type21PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type21PubSubType::createData() +{ + return reinterpret_cast(new Type21()); +} + +void Type21PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type21PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type21* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type21_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type21_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type21PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type22PubSubType::Type22PubSubType() +{ + setName("Type22"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type22::getMaxCdrSerializedSize()); +#else + Type22_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type22_max_key_cdr_typesize > 16 ? Type22_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type22PubSubType::~Type22PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type22PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type22* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type22PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type22* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type22PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type22PubSubType::createData() +{ + return reinterpret_cast(new Type22()); +} + +void Type22PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type22PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type22* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type22_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type22_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type22PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type23PubSubType::Type23PubSubType() +{ + setName("Type23"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type23::getMaxCdrSerializedSize()); +#else + Type23_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type23_max_key_cdr_typesize > 16 ? Type23_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type23PubSubType::~Type23PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type23PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type23* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type23PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type23* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type23PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type23PubSubType::createData() +{ + return reinterpret_cast(new Type23()); +} + +void Type23PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type23PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type23* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type23_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type23_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type23PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type24PubSubType::Type24PubSubType() +{ + setName("Type24"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type24::getMaxCdrSerializedSize()); +#else + Type24_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type24_max_key_cdr_typesize > 16 ? Type24_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type24PubSubType::~Type24PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type24PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type24* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type24PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type24* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type24PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type24PubSubType::createData() +{ + return reinterpret_cast(new Type24()); +} + +void Type24PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type24PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type24* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type24_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type24_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type24PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type25PubSubType::Type25PubSubType() +{ + setName("Type25"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type25::getMaxCdrSerializedSize()); +#else + Type25_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type25_max_key_cdr_typesize > 16 ? Type25_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type25PubSubType::~Type25PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type25PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type25* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type25PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type25* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type25PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type25PubSubType::createData() +{ + return reinterpret_cast(new Type25()); +} + +void Type25PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type25PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type25* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type25_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type25_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type25PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type26PubSubType::Type26PubSubType() +{ + setName("Type26"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type26::getMaxCdrSerializedSize()); +#else + Type26_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type26_max_key_cdr_typesize > 16 ? Type26_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type26PubSubType::~Type26PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type26PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type26* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type26PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type26* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type26PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type26PubSubType::createData() +{ + return reinterpret_cast(new Type26()); +} + +void Type26PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type26PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type26* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type26_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type26_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type26PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type27PubSubType::Type27PubSubType() +{ + setName("Type27"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type27::getMaxCdrSerializedSize()); +#else + Type27_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type27_max_key_cdr_typesize > 16 ? Type27_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type27PubSubType::~Type27PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type27PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type27* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type27PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type27* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type27PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type27PubSubType::createData() +{ + return reinterpret_cast(new Type27()); +} + +void Type27PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type27PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type27* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type27_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type27_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type27PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type28PubSubType::Type28PubSubType() +{ + setName("Type28"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type28::getMaxCdrSerializedSize()); +#else + Type28_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type28_max_key_cdr_typesize > 16 ? Type28_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type28PubSubType::~Type28PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type28PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type28* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type28PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type28* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type28PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type28PubSubType::createData() +{ + return reinterpret_cast(new Type28()); +} + +void Type28PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type28PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type28* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type28_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type28_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type28PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type29PubSubType::Type29PubSubType() +{ + setName("Type29"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type29::getMaxCdrSerializedSize()); +#else + Type29_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type29_max_key_cdr_typesize > 16 ? Type29_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type29PubSubType::~Type29PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type29PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type29* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type29PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type29* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type29PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type29PubSubType::createData() +{ + return reinterpret_cast(new Type29()); +} + +void Type29PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type29PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type29* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type29_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type29_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type29PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type30PubSubType::Type30PubSubType() +{ + setName("Type30"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type30::getMaxCdrSerializedSize()); +#else + Type30_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type30_max_key_cdr_typesize > 16 ? Type30_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type30PubSubType::~Type30PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type30PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type30* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type30PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type30* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type30PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type30PubSubType::createData() +{ + return reinterpret_cast(new Type30()); +} + +void Type30PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type30PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type30* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type30_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type30_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type30PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type31PubSubType::Type31PubSubType() +{ + setName("Type31"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type31::getMaxCdrSerializedSize()); +#else + Type31_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type31_max_key_cdr_typesize > 16 ? Type31_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type31PubSubType::~Type31PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type31PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type31* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type31PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type31* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type31PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type31PubSubType::createData() +{ + return reinterpret_cast(new Type31()); +} + +void Type31PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type31PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type31* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type31_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type31_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type31PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type32PubSubType::Type32PubSubType() +{ + setName("Type32"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type32::getMaxCdrSerializedSize()); +#else + Type32_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type32_max_key_cdr_typesize > 16 ? Type32_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type32PubSubType::~Type32PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type32PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type32* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type32PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type32* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type32PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type32PubSubType::createData() +{ + return reinterpret_cast(new Type32()); +} + +void Type32PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type32PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type32* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type32_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type32_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type32PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type33PubSubType::Type33PubSubType() +{ + setName("Type33"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type33::getMaxCdrSerializedSize()); +#else + Type33_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type33_max_key_cdr_typesize > 16 ? Type33_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type33PubSubType::~Type33PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type33PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type33* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type33PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type33* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type33PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type33PubSubType::createData() +{ + return reinterpret_cast(new Type33()); +} + +void Type33PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type33PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type33* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type33_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type33_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type33PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type34PubSubType::Type34PubSubType() +{ + setName("Type34"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type34::getMaxCdrSerializedSize()); +#else + Type34_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type34_max_key_cdr_typesize > 16 ? Type34_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type34PubSubType::~Type34PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type34PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type34* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type34PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type34* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type34PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type34PubSubType::createData() +{ + return reinterpret_cast(new Type34()); +} + +void Type34PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type34PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type34* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type34_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type34_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type34PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type35PubSubType::Type35PubSubType() +{ + setName("Type35"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type35::getMaxCdrSerializedSize()); +#else + Type35_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type35_max_key_cdr_typesize > 16 ? Type35_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type35PubSubType::~Type35PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type35PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type35* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type35PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type35* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type35PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type35PubSubType::createData() +{ + return reinterpret_cast(new Type35()); +} + +void Type35PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type35PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type35* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type35_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type35_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type35PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type36PubSubType::Type36PubSubType() +{ + setName("Type36"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type36::getMaxCdrSerializedSize()); +#else + Type36_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type36_max_key_cdr_typesize > 16 ? Type36_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type36PubSubType::~Type36PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type36PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type36* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type36PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type36* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type36PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type36PubSubType::createData() +{ + return reinterpret_cast(new Type36()); +} + +void Type36PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type36PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type36* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type36_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type36_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type36PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type37PubSubType::Type37PubSubType() +{ + setName("Type37"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type37::getMaxCdrSerializedSize()); +#else + Type37_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type37_max_key_cdr_typesize > 16 ? Type37_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type37PubSubType::~Type37PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type37PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type37* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type37PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type37* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type37PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type37PubSubType::createData() +{ + return reinterpret_cast(new Type37()); +} + +void Type37PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type37PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type37* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type37_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type37_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type37PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type38PubSubType::Type38PubSubType() +{ + setName("Type38"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type38::getMaxCdrSerializedSize()); +#else + Type38_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type38_max_key_cdr_typesize > 16 ? Type38_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type38PubSubType::~Type38PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type38PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type38* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type38PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type38* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type38PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type38PubSubType::createData() +{ + return reinterpret_cast(new Type38()); +} + +void Type38PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type38PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type38* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type38_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type38_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type38PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type39PubSubType::Type39PubSubType() +{ + setName("Type39"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type39::getMaxCdrSerializedSize()); +#else + Type39_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type39_max_key_cdr_typesize > 16 ? Type39_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type39PubSubType::~Type39PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type39PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type39* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type39PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type39* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type39PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type39PubSubType::createData() +{ + return reinterpret_cast(new Type39()); +} + +void Type39PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type39PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type39* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type39_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type39_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type39PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type40PubSubType::Type40PubSubType() +{ + setName("Type40"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type40::getMaxCdrSerializedSize()); +#else + Type40_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type40_max_key_cdr_typesize > 16 ? Type40_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type40PubSubType::~Type40PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type40PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type40* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type40PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type40* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type40PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type40PubSubType::createData() +{ + return reinterpret_cast(new Type40()); +} + +void Type40PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type40PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type40* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type40_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type40_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type40PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type41PubSubType::Type41PubSubType() +{ + setName("Type41"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type41::getMaxCdrSerializedSize()); +#else + Type41_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type41_max_key_cdr_typesize > 16 ? Type41_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type41PubSubType::~Type41PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type41PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type41* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type41PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type41* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type41PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type41PubSubType::createData() +{ + return reinterpret_cast(new Type41()); +} + +void Type41PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type41PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type41* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type41_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type41_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type41PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type42PubSubType::Type42PubSubType() +{ + setName("Type42"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type42::getMaxCdrSerializedSize()); +#else + Type42_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type42_max_key_cdr_typesize > 16 ? Type42_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type42PubSubType::~Type42PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type42PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type42* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type42PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type42* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type42PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type42PubSubType::createData() +{ + return reinterpret_cast(new Type42()); +} + +void Type42PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type42PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type42* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type42_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type42_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type42PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type43PubSubType::Type43PubSubType() +{ + setName("Type43"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type43::getMaxCdrSerializedSize()); +#else + Type43_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type43_max_key_cdr_typesize > 16 ? Type43_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type43PubSubType::~Type43PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type43PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type43* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type43PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type43* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type43PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type43PubSubType::createData() +{ + return reinterpret_cast(new Type43()); +} + +void Type43PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type43PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type43* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type43_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type43_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type43PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type44PubSubType::Type44PubSubType() +{ + setName("Type44"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type44::getMaxCdrSerializedSize()); +#else + Type44_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type44_max_key_cdr_typesize > 16 ? Type44_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type44PubSubType::~Type44PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type44PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type44* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type44PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type44* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type44PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type44PubSubType::createData() +{ + return reinterpret_cast(new Type44()); +} + +void Type44PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type44PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type44* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type44_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type44_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type44PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type45PubSubType::Type45PubSubType() +{ + setName("Type45"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type45::getMaxCdrSerializedSize()); +#else + Type45_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type45_max_key_cdr_typesize > 16 ? Type45_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type45PubSubType::~Type45PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type45PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type45* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type45PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type45* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type45PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type45PubSubType::createData() +{ + return reinterpret_cast(new Type45()); +} + +void Type45PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type45PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type45* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type45_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type45_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type45PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type46PubSubType::Type46PubSubType() +{ + setName("Type46"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type46::getMaxCdrSerializedSize()); +#else + Type46_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type46_max_key_cdr_typesize > 16 ? Type46_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type46PubSubType::~Type46PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type46PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type46* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type46PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type46* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type46PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type46PubSubType::createData() +{ + return reinterpret_cast(new Type46()); +} + +void Type46PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type46PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type46* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type46_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type46_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type46PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type47PubSubType::Type47PubSubType() +{ + setName("Type47"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type47::getMaxCdrSerializedSize()); +#else + Type47_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type47_max_key_cdr_typesize > 16 ? Type47_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type47PubSubType::~Type47PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type47PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type47* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type47PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type47* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type47PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type47PubSubType::createData() +{ + return reinterpret_cast(new Type47()); +} + +void Type47PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type47PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type47* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type47_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type47_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type47PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type48PubSubType::Type48PubSubType() +{ + setName("Type48"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type48::getMaxCdrSerializedSize()); +#else + Type48_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type48_max_key_cdr_typesize > 16 ? Type48_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type48PubSubType::~Type48PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type48PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type48* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type48PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type48* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type48PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type48PubSubType::createData() +{ + return reinterpret_cast(new Type48()); +} + +void Type48PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type48PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type48* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type48_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type48_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type48PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type49PubSubType::Type49PubSubType() +{ + setName("Type49"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type49::getMaxCdrSerializedSize()); +#else + Type49_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type49_max_key_cdr_typesize > 16 ? Type49_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type49PubSubType::~Type49PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type49PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type49* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type49PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type49* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type49PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type49PubSubType::createData() +{ + return reinterpret_cast(new Type49()); +} + +void Type49PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type49PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type49* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type49_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type49_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type49PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type50PubSubType::Type50PubSubType() +{ + setName("Type50"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type50::getMaxCdrSerializedSize()); +#else + Type50_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type50_max_key_cdr_typesize > 16 ? Type50_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type50PubSubType::~Type50PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type50PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type50* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type50PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type50* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type50PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type50PubSubType::createData() +{ + return reinterpret_cast(new Type50()); +} + +void Type50PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type50PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type50* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type50_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type50_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type50PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type51PubSubType::Type51PubSubType() +{ + setName("Type51"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type51::getMaxCdrSerializedSize()); +#else + Type51_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type51_max_key_cdr_typesize > 16 ? Type51_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type51PubSubType::~Type51PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type51PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type51* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type51PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type51* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type51PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type51PubSubType::createData() +{ + return reinterpret_cast(new Type51()); +} + +void Type51PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type51PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type51* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type51_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type51_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type51PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type52PubSubType::Type52PubSubType() +{ + setName("Type52"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type52::getMaxCdrSerializedSize()); +#else + Type52_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type52_max_key_cdr_typesize > 16 ? Type52_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type52PubSubType::~Type52PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type52PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type52* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type52PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type52* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type52PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type52PubSubType::createData() +{ + return reinterpret_cast(new Type52()); +} + +void Type52PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type52PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type52* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type52_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type52_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type52PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type53PubSubType::Type53PubSubType() +{ + setName("Type53"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type53::getMaxCdrSerializedSize()); +#else + Type53_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type53_max_key_cdr_typesize > 16 ? Type53_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type53PubSubType::~Type53PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type53PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type53* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type53PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type53* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type53PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type53PubSubType::createData() +{ + return reinterpret_cast(new Type53()); +} + +void Type53PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type53PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type53* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type53_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type53_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type53PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type54PubSubType::Type54PubSubType() +{ + setName("Type54"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type54::getMaxCdrSerializedSize()); +#else + Type54_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type54_max_key_cdr_typesize > 16 ? Type54_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type54PubSubType::~Type54PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type54PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type54* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type54PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type54* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type54PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type54PubSubType::createData() +{ + return reinterpret_cast(new Type54()); +} + +void Type54PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type54PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type54* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type54_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type54_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type54PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type55PubSubType::Type55PubSubType() +{ + setName("Type55"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type55::getMaxCdrSerializedSize()); +#else + Type55_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type55_max_key_cdr_typesize > 16 ? Type55_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type55PubSubType::~Type55PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type55PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type55* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type55PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type55* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type55PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type55PubSubType::createData() +{ + return reinterpret_cast(new Type55()); +} + +void Type55PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type55PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type55* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type55_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type55_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type55PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type56PubSubType::Type56PubSubType() +{ + setName("Type56"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type56::getMaxCdrSerializedSize()); +#else + Type56_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type56_max_key_cdr_typesize > 16 ? Type56_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type56PubSubType::~Type56PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type56PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type56* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type56PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type56* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type56PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type56PubSubType::createData() +{ + return reinterpret_cast(new Type56()); +} + +void Type56PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type56PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type56* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type56_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type56_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type56PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type57PubSubType::Type57PubSubType() +{ + setName("Type57"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type57::getMaxCdrSerializedSize()); +#else + Type57_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type57_max_key_cdr_typesize > 16 ? Type57_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type57PubSubType::~Type57PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type57PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type57* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type57PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type57* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type57PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type57PubSubType::createData() +{ + return reinterpret_cast(new Type57()); +} + +void Type57PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type57PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type57* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type57_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type57_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type57PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type58PubSubType::Type58PubSubType() +{ + setName("Type58"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type58::getMaxCdrSerializedSize()); +#else + Type58_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type58_max_key_cdr_typesize > 16 ? Type58_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type58PubSubType::~Type58PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type58PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type58* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type58PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type58* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type58PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type58PubSubType::createData() +{ + return reinterpret_cast(new Type58()); +} + +void Type58PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type58PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type58* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type58_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type58_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type58PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type59PubSubType::Type59PubSubType() +{ + setName("Type59"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type59::getMaxCdrSerializedSize()); +#else + Type59_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type59_max_key_cdr_typesize > 16 ? Type59_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type59PubSubType::~Type59PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type59PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type59* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type59PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type59* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type59PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type59PubSubType::createData() +{ + return reinterpret_cast(new Type59()); +} + +void Type59PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type59PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type59* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type59_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type59_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type59PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type60PubSubType::Type60PubSubType() +{ + setName("Type60"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type60::getMaxCdrSerializedSize()); +#else + Type60_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type60_max_key_cdr_typesize > 16 ? Type60_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type60PubSubType::~Type60PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type60PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type60* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type60PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type60* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type60PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type60PubSubType::createData() +{ + return reinterpret_cast(new Type60()); +} + +void Type60PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type60PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type60* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type60_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type60_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type60PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type61PubSubType::Type61PubSubType() +{ + setName("Type61"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type61::getMaxCdrSerializedSize()); +#else + Type61_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type61_max_key_cdr_typesize > 16 ? Type61_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type61PubSubType::~Type61PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type61PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type61* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type61PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type61* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type61PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type61PubSubType::createData() +{ + return reinterpret_cast(new Type61()); +} + +void Type61PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type61PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type61* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type61_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type61_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type61PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type62PubSubType::Type62PubSubType() +{ + setName("Type62"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type62::getMaxCdrSerializedSize()); +#else + Type62_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type62_max_key_cdr_typesize > 16 ? Type62_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type62PubSubType::~Type62PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type62PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type62* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type62PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type62* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type62PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type62PubSubType::createData() +{ + return reinterpret_cast(new Type62()); +} + +void Type62PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type62PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type62* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type62_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type62_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type62PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type63PubSubType::Type63PubSubType() +{ + setName("Type63"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type63::getMaxCdrSerializedSize()); +#else + Type63_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type63_max_key_cdr_typesize > 16 ? Type63_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type63PubSubType::~Type63PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type63PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type63* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type63PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type63* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type63PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type63PubSubType::createData() +{ + return reinterpret_cast(new Type63()); +} + +void Type63PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type63PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type63* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type63_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type63_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type63PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type64PubSubType::Type64PubSubType() +{ + setName("Type64"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type64::getMaxCdrSerializedSize()); +#else + Type64_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type64_max_key_cdr_typesize > 16 ? Type64_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type64PubSubType::~Type64PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type64PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type64* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type64PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type64* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type64PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type64PubSubType::createData() +{ + return reinterpret_cast(new Type64()); +} + +void Type64PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type64PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type64* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type64_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type64_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type64PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type65PubSubType::Type65PubSubType() +{ + setName("Type65"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type65::getMaxCdrSerializedSize()); +#else + Type65_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type65_max_key_cdr_typesize > 16 ? Type65_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type65PubSubType::~Type65PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type65PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type65* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type65PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type65* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type65PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type65PubSubType::createData() +{ + return reinterpret_cast(new Type65()); +} + +void Type65PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type65PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type65* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type65_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type65_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type65PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type66PubSubType::Type66PubSubType() +{ + setName("Type66"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type66::getMaxCdrSerializedSize()); +#else + Type66_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type66_max_key_cdr_typesize > 16 ? Type66_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type66PubSubType::~Type66PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type66PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type66* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type66PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type66* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type66PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type66PubSubType::createData() +{ + return reinterpret_cast(new Type66()); +} + +void Type66PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type66PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type66* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type66_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type66_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type66PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type67PubSubType::Type67PubSubType() +{ + setName("Type67"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type67::getMaxCdrSerializedSize()); +#else + Type67_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type67_max_key_cdr_typesize > 16 ? Type67_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type67PubSubType::~Type67PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type67PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type67* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type67PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type67* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type67PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type67PubSubType::createData() +{ + return reinterpret_cast(new Type67()); +} + +void Type67PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type67PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type67* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type67_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type67_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type67PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type68PubSubType::Type68PubSubType() +{ + setName("Type68"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type68::getMaxCdrSerializedSize()); +#else + Type68_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type68_max_key_cdr_typesize > 16 ? Type68_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type68PubSubType::~Type68PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type68PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type68* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type68PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type68* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type68PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type68PubSubType::createData() +{ + return reinterpret_cast(new Type68()); +} + +void Type68PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type68PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type68* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type68_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type68_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type68PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type69PubSubType::Type69PubSubType() +{ + setName("Type69"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type69::getMaxCdrSerializedSize()); +#else + Type69_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type69_max_key_cdr_typesize > 16 ? Type69_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type69PubSubType::~Type69PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type69PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type69* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type69PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type69* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type69PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type69PubSubType::createData() +{ + return reinterpret_cast(new Type69()); +} + +void Type69PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type69PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type69* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type69_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type69_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type69PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type70PubSubType::Type70PubSubType() +{ + setName("Type70"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type70::getMaxCdrSerializedSize()); +#else + Type70_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type70_max_key_cdr_typesize > 16 ? Type70_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type70PubSubType::~Type70PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type70PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type70* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type70PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type70* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type70PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type70PubSubType::createData() +{ + return reinterpret_cast(new Type70()); +} + +void Type70PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type70PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type70* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type70_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type70_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type70PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type71PubSubType::Type71PubSubType() +{ + setName("Type71"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type71::getMaxCdrSerializedSize()); +#else + Type71_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type71_max_key_cdr_typesize > 16 ? Type71_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type71PubSubType::~Type71PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type71PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type71* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type71PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type71* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type71PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type71PubSubType::createData() +{ + return reinterpret_cast(new Type71()); +} + +void Type71PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type71PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type71* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type71_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type71_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type71PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type72PubSubType::Type72PubSubType() +{ + setName("Type72"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type72::getMaxCdrSerializedSize()); +#else + Type72_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type72_max_key_cdr_typesize > 16 ? Type72_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type72PubSubType::~Type72PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type72PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type72* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type72PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type72* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type72PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type72PubSubType::createData() +{ + return reinterpret_cast(new Type72()); +} + +void Type72PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type72PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type72* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type72_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type72_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type72PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type73PubSubType::Type73PubSubType() +{ + setName("Type73"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type73::getMaxCdrSerializedSize()); +#else + Type73_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type73_max_key_cdr_typesize > 16 ? Type73_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type73PubSubType::~Type73PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type73PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type73* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type73PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type73* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type73PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type73PubSubType::createData() +{ + return reinterpret_cast(new Type73()); +} + +void Type73PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type73PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type73* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type73_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type73_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type73PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type74PubSubType::Type74PubSubType() +{ + setName("Type74"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type74::getMaxCdrSerializedSize()); +#else + Type74_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type74_max_key_cdr_typesize > 16 ? Type74_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type74PubSubType::~Type74PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type74PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type74* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type74PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type74* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type74PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type74PubSubType::createData() +{ + return reinterpret_cast(new Type74()); +} + +void Type74PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type74PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type74* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type74_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type74_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type74PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type75PubSubType::Type75PubSubType() +{ + setName("Type75"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type75::getMaxCdrSerializedSize()); +#else + Type75_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type75_max_key_cdr_typesize > 16 ? Type75_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type75PubSubType::~Type75PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type75PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type75* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type75PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type75* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type75PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type75PubSubType::createData() +{ + return reinterpret_cast(new Type75()); +} + +void Type75PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type75PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type75* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type75_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type75_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type75PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type76PubSubType::Type76PubSubType() +{ + setName("Type76"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type76::getMaxCdrSerializedSize()); +#else + Type76_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type76_max_key_cdr_typesize > 16 ? Type76_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type76PubSubType::~Type76PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type76PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type76* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type76PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type76* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type76PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type76PubSubType::createData() +{ + return reinterpret_cast(new Type76()); +} + +void Type76PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type76PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type76* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type76_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type76_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type76PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type77PubSubType::Type77PubSubType() +{ + setName("Type77"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type77::getMaxCdrSerializedSize()); +#else + Type77_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type77_max_key_cdr_typesize > 16 ? Type77_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type77PubSubType::~Type77PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type77PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type77* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type77PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type77* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type77PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type77PubSubType::createData() +{ + return reinterpret_cast(new Type77()); +} + +void Type77PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type77PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type77* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type77_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type77_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type77PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type78PubSubType::Type78PubSubType() +{ + setName("Type78"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type78::getMaxCdrSerializedSize()); +#else + Type78_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type78_max_key_cdr_typesize > 16 ? Type78_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type78PubSubType::~Type78PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type78PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type78* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type78PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type78* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type78PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type78PubSubType::createData() +{ + return reinterpret_cast(new Type78()); +} + +void Type78PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type78PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type78* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type78_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type78_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type78PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type79PubSubType::Type79PubSubType() +{ + setName("Type79"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type79::getMaxCdrSerializedSize()); +#else + Type79_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type79_max_key_cdr_typesize > 16 ? Type79_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type79PubSubType::~Type79PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type79PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type79* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type79PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type79* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type79PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type79PubSubType::createData() +{ + return reinterpret_cast(new Type79()); +} + +void Type79PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type79PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type79* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type79_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type79_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type79PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type80PubSubType::Type80PubSubType() +{ + setName("Type80"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type80::getMaxCdrSerializedSize()); +#else + Type80_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type80_max_key_cdr_typesize > 16 ? Type80_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type80PubSubType::~Type80PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type80PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type80* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type80PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type80* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type80PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type80PubSubType::createData() +{ + return reinterpret_cast(new Type80()); +} + +void Type80PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type80PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type80* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type80_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type80_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type80PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type81PubSubType::Type81PubSubType() +{ + setName("Type81"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type81::getMaxCdrSerializedSize()); +#else + Type81_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type81_max_key_cdr_typesize > 16 ? Type81_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type81PubSubType::~Type81PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type81PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type81* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type81PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type81* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type81PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type81PubSubType::createData() +{ + return reinterpret_cast(new Type81()); +} + +void Type81PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type81PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type81* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type81_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type81_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type81PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type82PubSubType::Type82PubSubType() +{ + setName("Type82"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type82::getMaxCdrSerializedSize()); +#else + Type82_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type82_max_key_cdr_typesize > 16 ? Type82_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type82PubSubType::~Type82PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type82PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type82* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type82PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type82* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type82PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type82PubSubType::createData() +{ + return reinterpret_cast(new Type82()); +} + +void Type82PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type82PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type82* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type82_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type82_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type82PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type83PubSubType::Type83PubSubType() +{ + setName("Type83"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type83::getMaxCdrSerializedSize()); +#else + Type83_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type83_max_key_cdr_typesize > 16 ? Type83_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type83PubSubType::~Type83PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type83PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type83* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type83PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type83* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type83PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type83PubSubType::createData() +{ + return reinterpret_cast(new Type83()); +} + +void Type83PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type83PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type83* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type83_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type83_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type83PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type84PubSubType::Type84PubSubType() +{ + setName("Type84"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type84::getMaxCdrSerializedSize()); +#else + Type84_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type84_max_key_cdr_typesize > 16 ? Type84_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type84PubSubType::~Type84PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type84PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type84* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type84PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type84* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type84PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type84PubSubType::createData() +{ + return reinterpret_cast(new Type84()); +} + +void Type84PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type84PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type84* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type84_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type84_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type84PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type85PubSubType::Type85PubSubType() +{ + setName("Type85"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type85::getMaxCdrSerializedSize()); +#else + Type85_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type85_max_key_cdr_typesize > 16 ? Type85_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type85PubSubType::~Type85PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type85PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type85* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type85PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type85* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type85PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type85PubSubType::createData() +{ + return reinterpret_cast(new Type85()); +} + +void Type85PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type85PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type85* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type85_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type85_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type85PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type86PubSubType::Type86PubSubType() +{ + setName("Type86"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type86::getMaxCdrSerializedSize()); +#else + Type86_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type86_max_key_cdr_typesize > 16 ? Type86_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type86PubSubType::~Type86PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type86PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type86* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type86PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type86* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type86PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type86PubSubType::createData() +{ + return reinterpret_cast(new Type86()); +} + +void Type86PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type86PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type86* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type86_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type86_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type86PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type87PubSubType::Type87PubSubType() +{ + setName("Type87"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type87::getMaxCdrSerializedSize()); +#else + Type87_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type87_max_key_cdr_typesize > 16 ? Type87_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type87PubSubType::~Type87PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type87PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type87* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type87PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type87* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type87PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type87PubSubType::createData() +{ + return reinterpret_cast(new Type87()); +} + +void Type87PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type87PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type87* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type87_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type87_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type87PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type88PubSubType::Type88PubSubType() +{ + setName("Type88"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type88::getMaxCdrSerializedSize()); +#else + Type88_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type88_max_key_cdr_typesize > 16 ? Type88_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type88PubSubType::~Type88PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type88PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type88* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type88PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type88* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type88PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type88PubSubType::createData() +{ + return reinterpret_cast(new Type88()); +} + +void Type88PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type88PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type88* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type88_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type88_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type88PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type89PubSubType::Type89PubSubType() +{ + setName("Type89"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type89::getMaxCdrSerializedSize()); +#else + Type89_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type89_max_key_cdr_typesize > 16 ? Type89_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type89PubSubType::~Type89PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type89PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type89* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type89PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type89* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type89PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type89PubSubType::createData() +{ + return reinterpret_cast(new Type89()); +} + +void Type89PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type89PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type89* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type89_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type89_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type89PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type90PubSubType::Type90PubSubType() +{ + setName("Type90"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type90::getMaxCdrSerializedSize()); +#else + Type90_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type90_max_key_cdr_typesize > 16 ? Type90_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type90PubSubType::~Type90PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type90PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type90* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type90PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type90* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type90PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type90PubSubType::createData() +{ + return reinterpret_cast(new Type90()); +} + +void Type90PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type90PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type90* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type90_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type90_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type90PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type91PubSubType::Type91PubSubType() +{ + setName("Type91"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type91::getMaxCdrSerializedSize()); +#else + Type91_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type91_max_key_cdr_typesize > 16 ? Type91_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type91PubSubType::~Type91PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type91PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type91* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type91PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type91* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type91PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type91PubSubType::createData() +{ + return reinterpret_cast(new Type91()); +} + +void Type91PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type91PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type91* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type91_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type91_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type91PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type92PubSubType::Type92PubSubType() +{ + setName("Type92"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type92::getMaxCdrSerializedSize()); +#else + Type92_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type92_max_key_cdr_typesize > 16 ? Type92_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type92PubSubType::~Type92PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type92PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type92* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type92PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type92* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type92PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type92PubSubType::createData() +{ + return reinterpret_cast(new Type92()); +} + +void Type92PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type92PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type92* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type92_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type92_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type92PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type93PubSubType::Type93PubSubType() +{ + setName("Type93"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type93::getMaxCdrSerializedSize()); +#else + Type93_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type93_max_key_cdr_typesize > 16 ? Type93_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type93PubSubType::~Type93PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type93PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type93* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type93PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type93* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type93PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type93PubSubType::createData() +{ + return reinterpret_cast(new Type93()); +} + +void Type93PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type93PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type93* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type93_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type93_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type93PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type94PubSubType::Type94PubSubType() +{ + setName("Type94"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type94::getMaxCdrSerializedSize()); +#else + Type94_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type94_max_key_cdr_typesize > 16 ? Type94_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type94PubSubType::~Type94PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type94PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type94* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type94PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type94* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type94PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type94PubSubType::createData() +{ + return reinterpret_cast(new Type94()); +} + +void Type94PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type94PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type94* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type94_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type94_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type94PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type95PubSubType::Type95PubSubType() +{ + setName("Type95"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type95::getMaxCdrSerializedSize()); +#else + Type95_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type95_max_key_cdr_typesize > 16 ? Type95_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type95PubSubType::~Type95PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type95PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type95* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type95PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type95* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type95PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type95PubSubType::createData() +{ + return reinterpret_cast(new Type95()); +} + +void Type95PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type95PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type95* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type95_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type95_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type95PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type96PubSubType::Type96PubSubType() +{ + setName("Type96"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type96::getMaxCdrSerializedSize()); +#else + Type96_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type96_max_key_cdr_typesize > 16 ? Type96_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type96PubSubType::~Type96PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type96PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type96* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type96PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type96* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type96PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type96PubSubType::createData() +{ + return reinterpret_cast(new Type96()); +} + +void Type96PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type96PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type96* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type96_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type96_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type96PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type97PubSubType::Type97PubSubType() +{ + setName("Type97"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type97::getMaxCdrSerializedSize()); +#else + Type97_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type97_max_key_cdr_typesize > 16 ? Type97_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type97PubSubType::~Type97PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type97PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type97* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type97PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type97* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type97PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type97PubSubType::createData() +{ + return reinterpret_cast(new Type97()); +} + +void Type97PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type97PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type97* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type97_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type97_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type97PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type98PubSubType::Type98PubSubType() +{ + setName("Type98"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type98::getMaxCdrSerializedSize()); +#else + Type98_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type98_max_key_cdr_typesize > 16 ? Type98_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type98PubSubType::~Type98PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type98PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type98* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type98PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type98* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type98PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type98PubSubType::createData() +{ + return reinterpret_cast(new Type98()); +} + +void Type98PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type98PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type98* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type98_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type98_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type98PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type99PubSubType::Type99PubSubType() +{ + setName("Type99"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type99::getMaxCdrSerializedSize()); +#else + Type99_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type99_max_key_cdr_typesize > 16 ? Type99_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type99PubSubType::~Type99PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type99PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type99* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type99PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type99* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type99PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type99PubSubType::createData() +{ + return reinterpret_cast(new Type99()); +} + +void Type99PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type99PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type99* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type99_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type99_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type99PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + +Type100PubSubType::Type100PubSubType() +{ + setName("Type100"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Type100::getMaxCdrSerializedSize()); +#else + Type100_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Type100_max_key_cdr_typesize > 16 ? Type100_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +Type100PubSubType::~Type100PubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool Type100PubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Type100* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool Type100PubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Type100* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function Type100PubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* Type100PubSubType::createData() +{ + return reinterpret_cast(new Type100()); +} + +void Type100PubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type100PubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Type100* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Type100_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Type100_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void Type100PubSubType::register_type_object_representation() const +{ + register_XtypesTestsTypeBig_type_objects(); +} + TypeBigPubSubType::TypeBigPubSubType() { setName("TypeBig"); diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h index b376c35aee5..ce4774c179e 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h @@ -41,6 +41,8833 @@ #endif // GEN_API_VER +/*! + * @brief This class represents the TopicDataType of the type Type4 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type4PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type4 type; + + eProsima_user_DllExport Type4PubSubType(); + + eProsima_user_DllExport ~Type4PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type5 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type5PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type5 type; + + eProsima_user_DllExport Type5PubSubType(); + + eProsima_user_DllExport ~Type5PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type6 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type6PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type6 type; + + eProsima_user_DllExport Type6PubSubType(); + + eProsima_user_DllExport ~Type6PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type7 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type7PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type7 type; + + eProsima_user_DllExport Type7PubSubType(); + + eProsima_user_DllExport ~Type7PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type8 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type8PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type8 type; + + eProsima_user_DllExport Type8PubSubType(); + + eProsima_user_DllExport ~Type8PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type9 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type9PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type9 type; + + eProsima_user_DllExport Type9PubSubType(); + + eProsima_user_DllExport ~Type9PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type10 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type10PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type10 type; + + eProsima_user_DllExport Type10PubSubType(); + + eProsima_user_DllExport ~Type10PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type11 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type11PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type11 type; + + eProsima_user_DllExport Type11PubSubType(); + + eProsima_user_DllExport ~Type11PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type12 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type12PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type12 type; + + eProsima_user_DllExport Type12PubSubType(); + + eProsima_user_DllExport ~Type12PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type13 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type13PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type13 type; + + eProsima_user_DllExport Type13PubSubType(); + + eProsima_user_DllExport ~Type13PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type14 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type14PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type14 type; + + eProsima_user_DllExport Type14PubSubType(); + + eProsima_user_DllExport ~Type14PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type15 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type15PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type15 type; + + eProsima_user_DllExport Type15PubSubType(); + + eProsima_user_DllExport ~Type15PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type16 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type16PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type16 type; + + eProsima_user_DllExport Type16PubSubType(); + + eProsima_user_DllExport ~Type16PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type17 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type17PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type17 type; + + eProsima_user_DllExport Type17PubSubType(); + + eProsima_user_DllExport ~Type17PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type18 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type18PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type18 type; + + eProsima_user_DllExport Type18PubSubType(); + + eProsima_user_DllExport ~Type18PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type19 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type19PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type19 type; + + eProsima_user_DllExport Type19PubSubType(); + + eProsima_user_DllExport ~Type19PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type20 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type20PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type20 type; + + eProsima_user_DllExport Type20PubSubType(); + + eProsima_user_DllExport ~Type20PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type21 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type21PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type21 type; + + eProsima_user_DllExport Type21PubSubType(); + + eProsima_user_DllExport ~Type21PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type22 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type22PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type22 type; + + eProsima_user_DllExport Type22PubSubType(); + + eProsima_user_DllExport ~Type22PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type23 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type23PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type23 type; + + eProsima_user_DllExport Type23PubSubType(); + + eProsima_user_DllExport ~Type23PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type24 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type24PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type24 type; + + eProsima_user_DllExport Type24PubSubType(); + + eProsima_user_DllExport ~Type24PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type25 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type25PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type25 type; + + eProsima_user_DllExport Type25PubSubType(); + + eProsima_user_DllExport ~Type25PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type26 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type26PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type26 type; + + eProsima_user_DllExport Type26PubSubType(); + + eProsima_user_DllExport ~Type26PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type27 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type27PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type27 type; + + eProsima_user_DllExport Type27PubSubType(); + + eProsima_user_DllExport ~Type27PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type28 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type28PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type28 type; + + eProsima_user_DllExport Type28PubSubType(); + + eProsima_user_DllExport ~Type28PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type29 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type29PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type29 type; + + eProsima_user_DllExport Type29PubSubType(); + + eProsima_user_DllExport ~Type29PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type30 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type30PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type30 type; + + eProsima_user_DllExport Type30PubSubType(); + + eProsima_user_DllExport ~Type30PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type31 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type31PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type31 type; + + eProsima_user_DllExport Type31PubSubType(); + + eProsima_user_DllExport ~Type31PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type32 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type32PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type32 type; + + eProsima_user_DllExport Type32PubSubType(); + + eProsima_user_DllExport ~Type32PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type33 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type33PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type33 type; + + eProsima_user_DllExport Type33PubSubType(); + + eProsima_user_DllExport ~Type33PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type34 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type34PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type34 type; + + eProsima_user_DllExport Type34PubSubType(); + + eProsima_user_DllExport ~Type34PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type35 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type35PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type35 type; + + eProsima_user_DllExport Type35PubSubType(); + + eProsima_user_DllExport ~Type35PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type36 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type36PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type36 type; + + eProsima_user_DllExport Type36PubSubType(); + + eProsima_user_DllExport ~Type36PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type37 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type37PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type37 type; + + eProsima_user_DllExport Type37PubSubType(); + + eProsima_user_DllExport ~Type37PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type38 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type38PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type38 type; + + eProsima_user_DllExport Type38PubSubType(); + + eProsima_user_DllExport ~Type38PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type39 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type39PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type39 type; + + eProsima_user_DllExport Type39PubSubType(); + + eProsima_user_DllExport ~Type39PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type40 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type40PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type40 type; + + eProsima_user_DllExport Type40PubSubType(); + + eProsima_user_DllExport ~Type40PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type41 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type41PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type41 type; + + eProsima_user_DllExport Type41PubSubType(); + + eProsima_user_DllExport ~Type41PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type42 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type42PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type42 type; + + eProsima_user_DllExport Type42PubSubType(); + + eProsima_user_DllExport ~Type42PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type43 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type43PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type43 type; + + eProsima_user_DllExport Type43PubSubType(); + + eProsima_user_DllExport ~Type43PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type44 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type44PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type44 type; + + eProsima_user_DllExport Type44PubSubType(); + + eProsima_user_DllExport ~Type44PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type45 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type45PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type45 type; + + eProsima_user_DllExport Type45PubSubType(); + + eProsima_user_DllExport ~Type45PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type46 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type46PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type46 type; + + eProsima_user_DllExport Type46PubSubType(); + + eProsima_user_DllExport ~Type46PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type47 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type47PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type47 type; + + eProsima_user_DllExport Type47PubSubType(); + + eProsima_user_DllExport ~Type47PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type48 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type48PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type48 type; + + eProsima_user_DllExport Type48PubSubType(); + + eProsima_user_DllExport ~Type48PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type49 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type49PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type49 type; + + eProsima_user_DllExport Type49PubSubType(); + + eProsima_user_DllExport ~Type49PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type50 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type50PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type50 type; + + eProsima_user_DllExport Type50PubSubType(); + + eProsima_user_DllExport ~Type50PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type51 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type51PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type51 type; + + eProsima_user_DllExport Type51PubSubType(); + + eProsima_user_DllExport ~Type51PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type52 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type52PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type52 type; + + eProsima_user_DllExport Type52PubSubType(); + + eProsima_user_DllExport ~Type52PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type53 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type53PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type53 type; + + eProsima_user_DllExport Type53PubSubType(); + + eProsima_user_DllExport ~Type53PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type54 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type54PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type54 type; + + eProsima_user_DllExport Type54PubSubType(); + + eProsima_user_DllExport ~Type54PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type55 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type55PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type55 type; + + eProsima_user_DllExport Type55PubSubType(); + + eProsima_user_DllExport ~Type55PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type56 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type56PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type56 type; + + eProsima_user_DllExport Type56PubSubType(); + + eProsima_user_DllExport ~Type56PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type57 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type57PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type57 type; + + eProsima_user_DllExport Type57PubSubType(); + + eProsima_user_DllExport ~Type57PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type58 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type58PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type58 type; + + eProsima_user_DllExport Type58PubSubType(); + + eProsima_user_DllExport ~Type58PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type59 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type59PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type59 type; + + eProsima_user_DllExport Type59PubSubType(); + + eProsima_user_DllExport ~Type59PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type60 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type60PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type60 type; + + eProsima_user_DllExport Type60PubSubType(); + + eProsima_user_DllExport ~Type60PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type61 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type61PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type61 type; + + eProsima_user_DllExport Type61PubSubType(); + + eProsima_user_DllExport ~Type61PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type62 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type62PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type62 type; + + eProsima_user_DllExport Type62PubSubType(); + + eProsima_user_DllExport ~Type62PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type63 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type63PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type63 type; + + eProsima_user_DllExport Type63PubSubType(); + + eProsima_user_DllExport ~Type63PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type64 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type64PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type64 type; + + eProsima_user_DllExport Type64PubSubType(); + + eProsima_user_DllExport ~Type64PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type65 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type65PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type65 type; + + eProsima_user_DllExport Type65PubSubType(); + + eProsima_user_DllExport ~Type65PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type66 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type66PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type66 type; + + eProsima_user_DllExport Type66PubSubType(); + + eProsima_user_DllExport ~Type66PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type67 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type67PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type67 type; + + eProsima_user_DllExport Type67PubSubType(); + + eProsima_user_DllExport ~Type67PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type68 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type68PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type68 type; + + eProsima_user_DllExport Type68PubSubType(); + + eProsima_user_DllExport ~Type68PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type69 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type69PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type69 type; + + eProsima_user_DllExport Type69PubSubType(); + + eProsima_user_DllExport ~Type69PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type70 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type70PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type70 type; + + eProsima_user_DllExport Type70PubSubType(); + + eProsima_user_DllExport ~Type70PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type71 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type71PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type71 type; + + eProsima_user_DllExport Type71PubSubType(); + + eProsima_user_DllExport ~Type71PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type72 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type72PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type72 type; + + eProsima_user_DllExport Type72PubSubType(); + + eProsima_user_DllExport ~Type72PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type73 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type73PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type73 type; + + eProsima_user_DllExport Type73PubSubType(); + + eProsima_user_DllExport ~Type73PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type74 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type74PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type74 type; + + eProsima_user_DllExport Type74PubSubType(); + + eProsima_user_DllExport ~Type74PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type75 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type75PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type75 type; + + eProsima_user_DllExport Type75PubSubType(); + + eProsima_user_DllExport ~Type75PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type76 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type76PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type76 type; + + eProsima_user_DllExport Type76PubSubType(); + + eProsima_user_DllExport ~Type76PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type77 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type77PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type77 type; + + eProsima_user_DllExport Type77PubSubType(); + + eProsima_user_DllExport ~Type77PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type78 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type78PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type78 type; + + eProsima_user_DllExport Type78PubSubType(); + + eProsima_user_DllExport ~Type78PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type79 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type79PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type79 type; + + eProsima_user_DllExport Type79PubSubType(); + + eProsima_user_DllExport ~Type79PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type80 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type80PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type80 type; + + eProsima_user_DllExport Type80PubSubType(); + + eProsima_user_DllExport ~Type80PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type81 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type81PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type81 type; + + eProsima_user_DllExport Type81PubSubType(); + + eProsima_user_DllExport ~Type81PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type82 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type82PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type82 type; + + eProsima_user_DllExport Type82PubSubType(); + + eProsima_user_DllExport ~Type82PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type83 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type83PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type83 type; + + eProsima_user_DllExport Type83PubSubType(); + + eProsima_user_DllExport ~Type83PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type84 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type84PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type84 type; + + eProsima_user_DllExport Type84PubSubType(); + + eProsima_user_DllExport ~Type84PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type85 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type85PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type85 type; + + eProsima_user_DllExport Type85PubSubType(); + + eProsima_user_DllExport ~Type85PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type86 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type86PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type86 type; + + eProsima_user_DllExport Type86PubSubType(); + + eProsima_user_DllExport ~Type86PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type87 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type87PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type87 type; + + eProsima_user_DllExport Type87PubSubType(); + + eProsima_user_DllExport ~Type87PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type88 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type88PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type88 type; + + eProsima_user_DllExport Type88PubSubType(); + + eProsima_user_DllExport ~Type88PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type89 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type89PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type89 type; + + eProsima_user_DllExport Type89PubSubType(); + + eProsima_user_DllExport ~Type89PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type90 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type90PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type90 type; + + eProsima_user_DllExport Type90PubSubType(); + + eProsima_user_DllExport ~Type90PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type91 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type91PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type91 type; + + eProsima_user_DllExport Type91PubSubType(); + + eProsima_user_DllExport ~Type91PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type92 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type92PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type92 type; + + eProsima_user_DllExport Type92PubSubType(); + + eProsima_user_DllExport ~Type92PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type93 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type93PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type93 type; + + eProsima_user_DllExport Type93PubSubType(); + + eProsima_user_DllExport ~Type93PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type94 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type94PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type94 type; + + eProsima_user_DllExport Type94PubSubType(); + + eProsima_user_DllExport ~Type94PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type95 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type95PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type95 type; + + eProsima_user_DllExport Type95PubSubType(); + + eProsima_user_DllExport ~Type95PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type96 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type96PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type96 type; + + eProsima_user_DllExport Type96PubSubType(); + + eProsima_user_DllExport ~Type96PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type97 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type97PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type97 type; + + eProsima_user_DllExport Type97PubSubType(); + + eProsima_user_DllExport ~Type97PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type98 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type98PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type98 type; + + eProsima_user_DllExport Type98PubSubType(); + + eProsima_user_DllExport ~Type98PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type99 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type99PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type99 type; + + eProsima_user_DllExport Type99PubSubType(); + + eProsima_user_DllExport ~Type99PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +/*! + * @brief This class represents the TopicDataType of the type Type100 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type100PubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Type100 type; + + eProsima_user_DllExport Type100PubSubType(); + + eProsima_user_DllExport ~Type100PubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + /*! * @brief This class represents the TopicDataType of the type TypeBig defined by the user in the IDL file. * @ingroup XtypesTestsTypeBig diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx index 8179e562828..7db43c643ed 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx @@ -52,50 +52,24558 @@ void register_XtypesTestsTypeBig_type_objects() register_Type3_type_identifier(); + register_Type4_type_identifier(); + + register_Type5_type_identifier(); + + register_Type6_type_identifier(); + + register_Type7_type_identifier(); + + register_Type8_type_identifier(); + + register_Type9_type_identifier(); + + register_Type10_type_identifier(); + + register_Type11_type_identifier(); + + register_Type12_type_identifier(); + + register_Type13_type_identifier(); + + register_Type14_type_identifier(); + + register_Type15_type_identifier(); + + register_Type16_type_identifier(); + + register_Type17_type_identifier(); + + register_Type18_type_identifier(); + + register_Type19_type_identifier(); + + register_Type20_type_identifier(); + + register_Type21_type_identifier(); + + register_Type22_type_identifier(); + + register_Type23_type_identifier(); + + register_Type24_type_identifier(); + + register_Type25_type_identifier(); + + register_Type26_type_identifier(); + + register_Type27_type_identifier(); + + register_Type28_type_identifier(); + + register_Type29_type_identifier(); + + register_Type30_type_identifier(); + + register_Type31_type_identifier(); + + register_Type32_type_identifier(); + + register_Type33_type_identifier(); + + register_Type34_type_identifier(); + + register_Type35_type_identifier(); + + register_Type36_type_identifier(); + + register_Type37_type_identifier(); + + register_Type38_type_identifier(); + + register_Type39_type_identifier(); + + register_Type40_type_identifier(); + + register_Type41_type_identifier(); + + register_Type42_type_identifier(); + + register_Type43_type_identifier(); + + register_Type44_type_identifier(); + + register_Type45_type_identifier(); + + register_Type46_type_identifier(); + + register_Type47_type_identifier(); + + register_Type48_type_identifier(); + + register_Type49_type_identifier(); + + register_Type50_type_identifier(); + + register_Type51_type_identifier(); + + register_Type52_type_identifier(); + + register_Type53_type_identifier(); + + register_Type54_type_identifier(); + + register_Type55_type_identifier(); + + register_Type56_type_identifier(); + + register_Type57_type_identifier(); + + register_Type58_type_identifier(); + + register_Type59_type_identifier(); + + register_Type60_type_identifier(); + + register_Type61_type_identifier(); + + register_Type62_type_identifier(); + + register_Type63_type_identifier(); + + register_Type64_type_identifier(); + + register_Type65_type_identifier(); + + register_Type66_type_identifier(); + + register_Type67_type_identifier(); + + register_Type68_type_identifier(); + + register_Type69_type_identifier(); + + register_Type70_type_identifier(); + + register_Type71_type_identifier(); + + register_Type72_type_identifier(); + + register_Type73_type_identifier(); + + register_Type74_type_identifier(); + + register_Type75_type_identifier(); + + register_Type76_type_identifier(); + + register_Type77_type_identifier(); + + register_Type78_type_identifier(); + + register_Type79_type_identifier(); + + register_Type80_type_identifier(); + + register_Type81_type_identifier(); + + register_Type82_type_identifier(); + + register_Type83_type_identifier(); + + register_Type84_type_identifier(); + + register_Type85_type_identifier(); + + register_Type86_type_identifier(); + + register_Type87_type_identifier(); + + register_Type88_type_identifier(); + + register_Type89_type_identifier(); + + register_Type90_type_identifier(); + + register_Type91_type_identifier(); + + register_Type92_type_identifier(); + + register_Type93_type_identifier(); + + register_Type94_type_identifier(); + + register_Type95_type_identifier(); + + register_Type96_type_identifier(); + + register_Type97_type_identifier(); + + register_Type98_type_identifier(); + + register_Type99_type_identifier(); + + register_Type100_type_identifier(); + register_TypeBig_type_identifier(); }); } -void register_TypeBig_type_identifier() +void register_Type4_type_identifier() { { - StructTypeFlag struct_flags_TypeBig = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type4 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - ReturnCode_t return_code_TypeBig; - TypeIdentifierPair type_ids_TypeBig; - QualifiedTypeName type_name_TypeBig = "TypeBig"; - eprosima::fastcdr::optional type_ann_builtin_TypeBig; - eprosima::fastcdr::optional ann_custom_TypeBig; - CompleteTypeDetail detail_TypeBig = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeBig, ann_custom_TypeBig, type_name_TypeBig.to_string()); - CompleteStructHeader header_TypeBig; - header_TypeBig = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeBig); - CompleteStructMemberSeq member_seq_TypeBig; + ReturnCode_t return_code_Type4; + TypeIdentifierPair type_ids_Type4; + QualifiedTypeName type_name_Type4 = "Type4"; + eprosima::fastcdr::optional type_ann_builtin_Type4; + eprosima::fastcdr::optional ann_custom_Type4; + CompleteTypeDetail detail_Type4 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type4, ann_custom_Type4, type_name_Type4.to_string()); + CompleteStructHeader header_Type4; + header_Type4 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type4); + CompleteStructMemberSeq member_seq_Type4; + { + return_code_Type4 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type4); + + if (return_code_Type4 != 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_Type4.type_identifier1()._d() || TK_NONE == type_ids_Type4.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type4.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type4.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type4.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type4.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type4.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type4.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type4.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type4.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type4.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type4.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type4.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type4.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type4.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type4.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type4.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type4.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type4.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type4.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type4.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type4.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type4.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type4.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type4.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_Type4.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type4); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type4, member_index); + } + CompleteStructType struct_type_Type4 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type4, header_Type4, member_seq_Type4); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type4, type_name_Type4.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type4 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type4 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type4", type_ids_Type4); + if (return_code_Type4 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type4: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type5_type_identifier() +{ + { + StructTypeFlag struct_flags_Type5 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type5; + TypeIdentifierPair type_ids_Type5; + QualifiedTypeName type_name_Type5 = "Type5"; + eprosima::fastcdr::optional type_ann_builtin_Type5; + eprosima::fastcdr::optional ann_custom_Type5; + CompleteTypeDetail detail_Type5 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type5, ann_custom_Type5, type_name_Type5.to_string()); + CompleteStructHeader header_Type5; + header_Type5 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type5); + CompleteStructMemberSeq member_seq_Type5; + { + return_code_Type5 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type5); + + if (return_code_Type5 != 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_Type5.type_identifier1()._d() || TK_NONE == type_ids_Type5.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type5.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type5.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type5.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type5.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type5.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type5.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type5.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type5.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type5.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type5.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type5.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type5.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type5.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type5.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type5.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type5.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type5.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type5.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type5.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type5.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type5.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type5.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type5.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_Type5.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type5); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type5, member_index); + } + CompleteStructType struct_type_Type5 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type5, header_Type5, member_seq_Type5); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type5, type_name_Type5.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type5 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type5 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type5", type_ids_Type5); + if (return_code_Type5 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type5: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type6_type_identifier() +{ + { + StructTypeFlag struct_flags_Type6 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type6; + TypeIdentifierPair type_ids_Type6; + QualifiedTypeName type_name_Type6 = "Type6"; + eprosima::fastcdr::optional type_ann_builtin_Type6; + eprosima::fastcdr::optional ann_custom_Type6; + CompleteTypeDetail detail_Type6 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type6, ann_custom_Type6, type_name_Type6.to_string()); + CompleteStructHeader header_Type6; + header_Type6 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type6); + CompleteStructMemberSeq member_seq_Type6; + { + return_code_Type6 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type6); + + if (return_code_Type6 != 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_Type6.type_identifier1()._d() || TK_NONE == type_ids_Type6.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type6.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type6.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type6.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type6.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type6.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type6.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type6.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type6.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type6.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type6.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type6.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type6.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type6.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type6.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type6.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type6.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type6.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type6.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type6.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type6.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type6.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type6.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type6.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_Type6.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type6); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type6, member_index); + } + CompleteStructType struct_type_Type6 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type6, header_Type6, member_seq_Type6); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type6, type_name_Type6.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type6 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type6 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type6", type_ids_Type6); + if (return_code_Type6 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type6: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type7_type_identifier() +{ + { + StructTypeFlag struct_flags_Type7 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type7; + TypeIdentifierPair type_ids_Type7; + QualifiedTypeName type_name_Type7 = "Type7"; + eprosima::fastcdr::optional type_ann_builtin_Type7; + eprosima::fastcdr::optional ann_custom_Type7; + CompleteTypeDetail detail_Type7 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type7, ann_custom_Type7, type_name_Type7.to_string()); + CompleteStructHeader header_Type7; + header_Type7 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type7); + CompleteStructMemberSeq member_seq_Type7; + { + return_code_Type7 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type7); + + if (return_code_Type7 != 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_Type7.type_identifier1()._d() || TK_NONE == type_ids_Type7.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type7.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type7.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type7.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type7.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type7.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type7.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type7.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type7.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type7.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type7.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type7.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type7.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type7.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type7.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type7.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type7.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type7.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type7.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type7.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type7.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type7.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type7.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type7.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_Type7.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type7); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type7, member_index); + } + CompleteStructType struct_type_Type7 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type7, header_Type7, member_seq_Type7); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type7, type_name_Type7.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type7 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type7 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type7", type_ids_Type7); + if (return_code_Type7 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type7: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type8_type_identifier() +{ + { + StructTypeFlag struct_flags_Type8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type8; + TypeIdentifierPair type_ids_Type8; + QualifiedTypeName type_name_Type8 = "Type8"; + eprosima::fastcdr::optional type_ann_builtin_Type8; + eprosima::fastcdr::optional ann_custom_Type8; + CompleteTypeDetail detail_Type8 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type8, ann_custom_Type8, type_name_Type8.to_string()); + CompleteStructHeader header_Type8; + header_Type8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type8); + CompleteStructMemberSeq member_seq_Type8; + { + return_code_Type8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type8); + + if (return_code_Type8 != 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_Type8.type_identifier1()._d() || TK_NONE == type_ids_Type8.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type8.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type8.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type8.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type8.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type8.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type8.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type8.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type8.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type8.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type8.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type8.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type8.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type8.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type8.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type8.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type8.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type8.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type8.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type8.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type8.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type8.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type8.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type8.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_Type8.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type8); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type8, member_index); + } + CompleteStructType struct_type_Type8 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type8, header_Type8, member_seq_Type8); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type8, type_name_Type8.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type8 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type8", type_ids_Type8); + if (return_code_Type8 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type8: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type9_type_identifier() +{ + { + StructTypeFlag struct_flags_Type9 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type9; + TypeIdentifierPair type_ids_Type9; + QualifiedTypeName type_name_Type9 = "Type9"; + eprosima::fastcdr::optional type_ann_builtin_Type9; + eprosima::fastcdr::optional ann_custom_Type9; + CompleteTypeDetail detail_Type9 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type9, ann_custom_Type9, type_name_Type9.to_string()); + CompleteStructHeader header_Type9; + header_Type9 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type9); + CompleteStructMemberSeq member_seq_Type9; + { + return_code_Type9 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type9); + + if (return_code_Type9 != 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_Type9.type_identifier1()._d() || TK_NONE == type_ids_Type9.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type9.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type9.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type9.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type9.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type9.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type9.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type9.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type9.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type9.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type9.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type9.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type9.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type9.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type9.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type9.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type9.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type9.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type9.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type9.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type9.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type9.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type9.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type9.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_Type9.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type9); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type9, member_index); + } + CompleteStructType struct_type_Type9 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type9, header_Type9, member_seq_Type9); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type9, type_name_Type9.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type9 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type9 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type9", type_ids_Type9); + if (return_code_Type9 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type9: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type10_type_identifier() +{ + { + StructTypeFlag struct_flags_Type10 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type10; + TypeIdentifierPair type_ids_Type10; + QualifiedTypeName type_name_Type10 = "Type10"; + eprosima::fastcdr::optional type_ann_builtin_Type10; + eprosima::fastcdr::optional ann_custom_Type10; + CompleteTypeDetail detail_Type10 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type10, ann_custom_Type10, type_name_Type10.to_string()); + CompleteStructHeader header_Type10; + header_Type10 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type10); + CompleteStructMemberSeq member_seq_Type10; + { + return_code_Type10 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type10); + + if (return_code_Type10 != 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_Type10.type_identifier1()._d() || TK_NONE == type_ids_Type10.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type10.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type10.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type10.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type10.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type10.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type10.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type10.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type10.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type10.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type10.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type10.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type10.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type10.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type10.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type10.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type10.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type10.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type10.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type10.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type10.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type10.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type10.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type10.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_Type10.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type10); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type10, member_index); + } + CompleteStructType struct_type_Type10 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type10, header_Type10, member_seq_Type10); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type10, type_name_Type10.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type10 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type10 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type10", type_ids_Type10); + if (return_code_Type10 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type10: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type11_type_identifier() +{ + { + StructTypeFlag struct_flags_Type11 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type11; + TypeIdentifierPair type_ids_Type11; + QualifiedTypeName type_name_Type11 = "Type11"; + eprosima::fastcdr::optional type_ann_builtin_Type11; + eprosima::fastcdr::optional ann_custom_Type11; + CompleteTypeDetail detail_Type11 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type11, ann_custom_Type11, type_name_Type11.to_string()); + CompleteStructHeader header_Type11; + header_Type11 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type11); + CompleteStructMemberSeq member_seq_Type11; + { + return_code_Type11 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type11); + + if (return_code_Type11 != 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_Type11.type_identifier1()._d() || TK_NONE == type_ids_Type11.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type11.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type11.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type11.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type11.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type11.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type11.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type11.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type11.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type11.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type11.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type11.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type11.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type11.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type11.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type11.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type11.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type11.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type11.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type11.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type11.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type11.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type11.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type11.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_Type11.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type11); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type11, member_index); + } + CompleteStructType struct_type_Type11 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type11, header_Type11, member_seq_Type11); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type11, type_name_Type11.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type11 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type11 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type11", type_ids_Type11); + if (return_code_Type11 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type11: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type12_type_identifier() +{ + { + StructTypeFlag struct_flags_Type12 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type12; + TypeIdentifierPair type_ids_Type12; + QualifiedTypeName type_name_Type12 = "Type12"; + eprosima::fastcdr::optional type_ann_builtin_Type12; + eprosima::fastcdr::optional ann_custom_Type12; + CompleteTypeDetail detail_Type12 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type12, ann_custom_Type12, type_name_Type12.to_string()); + CompleteStructHeader header_Type12; + header_Type12 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type12); + CompleteStructMemberSeq member_seq_Type12; + { + return_code_Type12 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type12); + + if (return_code_Type12 != 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_Type12.type_identifier1()._d() || TK_NONE == type_ids_Type12.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type12.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type12.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type12.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type12.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type12.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type12.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type12.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type12.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type12.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type12.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type12.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type12.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type12.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type12.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type12.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type12.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type12.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type12.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type12.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type12.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type12.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type12.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type12.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_Type12.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type12); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type12, member_index); + } + CompleteStructType struct_type_Type12 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type12, header_Type12, member_seq_Type12); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type12, type_name_Type12.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type12 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type12 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type12", type_ids_Type12); + if (return_code_Type12 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type12: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type13_type_identifier() +{ + { + StructTypeFlag struct_flags_Type13 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type13; + TypeIdentifierPair type_ids_Type13; + QualifiedTypeName type_name_Type13 = "Type13"; + eprosima::fastcdr::optional type_ann_builtin_Type13; + eprosima::fastcdr::optional ann_custom_Type13; + CompleteTypeDetail detail_Type13 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type13, ann_custom_Type13, type_name_Type13.to_string()); + CompleteStructHeader header_Type13; + header_Type13 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type13); + CompleteStructMemberSeq member_seq_Type13; + { + return_code_Type13 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type13); + + if (return_code_Type13 != 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_Type13.type_identifier1()._d() || TK_NONE == type_ids_Type13.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type13.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type13.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type13.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type13.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type13.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type13.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type13.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type13.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type13.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type13.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type13.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type13.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type13.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type13.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type13.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type13.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type13.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type13.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type13.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type13.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type13.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type13.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type13.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_Type13.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type13); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type13, member_index); + } + CompleteStructType struct_type_Type13 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type13, header_Type13, member_seq_Type13); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type13, type_name_Type13.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type13 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type13 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type13", type_ids_Type13); + if (return_code_Type13 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type13: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type14_type_identifier() +{ + { + StructTypeFlag struct_flags_Type14 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type14; + TypeIdentifierPair type_ids_Type14; + QualifiedTypeName type_name_Type14 = "Type14"; + eprosima::fastcdr::optional type_ann_builtin_Type14; + eprosima::fastcdr::optional ann_custom_Type14; + CompleteTypeDetail detail_Type14 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type14, ann_custom_Type14, type_name_Type14.to_string()); + CompleteStructHeader header_Type14; + header_Type14 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type14); + CompleteStructMemberSeq member_seq_Type14; + { + return_code_Type14 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type14); + + if (return_code_Type14 != 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_Type14.type_identifier1()._d() || TK_NONE == type_ids_Type14.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type14.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type14.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type14.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type14.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type14.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type14.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type14.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type14.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type14.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type14.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type14.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type14.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type14.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type14.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type14.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type14.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type14.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type14.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type14.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type14.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type14.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type14.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type14.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_Type14.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type14); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type14, member_index); + } + CompleteStructType struct_type_Type14 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type14, header_Type14, member_seq_Type14); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type14, type_name_Type14.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type14 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type14 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type14", type_ids_Type14); + if (return_code_Type14 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type14: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type15_type_identifier() +{ + { + StructTypeFlag struct_flags_Type15 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type15; + TypeIdentifierPair type_ids_Type15; + QualifiedTypeName type_name_Type15 = "Type15"; + eprosima::fastcdr::optional type_ann_builtin_Type15; + eprosima::fastcdr::optional ann_custom_Type15; + CompleteTypeDetail detail_Type15 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type15, ann_custom_Type15, type_name_Type15.to_string()); + CompleteStructHeader header_Type15; + header_Type15 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type15); + CompleteStructMemberSeq member_seq_Type15; + { + return_code_Type15 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type15); + + if (return_code_Type15 != 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_Type15.type_identifier1()._d() || TK_NONE == type_ids_Type15.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type15.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type15.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type15.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type15.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type15.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type15.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type15.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type15.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type15.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type15.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type15.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type15.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type15.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type15.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type15.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type15.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type15.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type15.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type15.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type15.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type15.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type15.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type15.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_Type15.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type15); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type15, member_index); + } + CompleteStructType struct_type_Type15 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type15, header_Type15, member_seq_Type15); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type15, type_name_Type15.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type15 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type15 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type15", type_ids_Type15); + if (return_code_Type15 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type15: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type16_type_identifier() +{ + { + StructTypeFlag struct_flags_Type16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type16; + TypeIdentifierPair type_ids_Type16; + QualifiedTypeName type_name_Type16 = "Type16"; + eprosima::fastcdr::optional type_ann_builtin_Type16; + eprosima::fastcdr::optional ann_custom_Type16; + CompleteTypeDetail detail_Type16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type16, ann_custom_Type16, type_name_Type16.to_string()); + CompleteStructHeader header_Type16; + header_Type16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type16); + CompleteStructMemberSeq member_seq_Type16; + { + return_code_Type16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type16); + + if (return_code_Type16 != 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_Type16.type_identifier1()._d() || TK_NONE == type_ids_Type16.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type16.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type16.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type16.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type16.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type16.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type16.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type16.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type16.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type16.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type16.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type16.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type16.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type16.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type16.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type16.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type16.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type16.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type16.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type16.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type16.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type16.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type16.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type16.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_Type16.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type16); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type16, member_index); + } + CompleteStructType struct_type_Type16 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type16, header_Type16, member_seq_Type16); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type16, type_name_Type16.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type16 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type16", type_ids_Type16); + if (return_code_Type16 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type17_type_identifier() +{ + { + StructTypeFlag struct_flags_Type17 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type17; + TypeIdentifierPair type_ids_Type17; + QualifiedTypeName type_name_Type17 = "Type17"; + eprosima::fastcdr::optional type_ann_builtin_Type17; + eprosima::fastcdr::optional ann_custom_Type17; + CompleteTypeDetail detail_Type17 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type17, ann_custom_Type17, type_name_Type17.to_string()); + CompleteStructHeader header_Type17; + header_Type17 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type17); + CompleteStructMemberSeq member_seq_Type17; + { + return_code_Type17 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type17); + + if (return_code_Type17 != 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_Type17.type_identifier1()._d() || TK_NONE == type_ids_Type17.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type17.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type17.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type17.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type17.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type17.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type17.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type17.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type17.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type17.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type17.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type17.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type17.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type17.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type17.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type17.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type17.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type17.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type17.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type17.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type17.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type17.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type17.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type17.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_Type17.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type17); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type17, member_index); + } + CompleteStructType struct_type_Type17 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type17, header_Type17, member_seq_Type17); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type17, type_name_Type17.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type17 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type17 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type17", type_ids_Type17); + if (return_code_Type17 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type17: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type18_type_identifier() +{ + { + StructTypeFlag struct_flags_Type18 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type18; + TypeIdentifierPair type_ids_Type18; + QualifiedTypeName type_name_Type18 = "Type18"; + eprosima::fastcdr::optional type_ann_builtin_Type18; + eprosima::fastcdr::optional ann_custom_Type18; + CompleteTypeDetail detail_Type18 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type18, ann_custom_Type18, type_name_Type18.to_string()); + CompleteStructHeader header_Type18; + header_Type18 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type18); + CompleteStructMemberSeq member_seq_Type18; + { + return_code_Type18 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type18); + + if (return_code_Type18 != 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_Type18.type_identifier1()._d() || TK_NONE == type_ids_Type18.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type18.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type18.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type18.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type18.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type18.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type18.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type18.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type18.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type18.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type18.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type18.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type18.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type18.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type18.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type18.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type18.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type18.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type18.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type18.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type18.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type18.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type18.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type18.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_Type18.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type18); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type18, member_index); + } + CompleteStructType struct_type_Type18 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type18, header_Type18, member_seq_Type18); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type18, type_name_Type18.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type18 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type18 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type18", type_ids_Type18); + if (return_code_Type18 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type18: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type19_type_identifier() +{ + { + StructTypeFlag struct_flags_Type19 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type19; + TypeIdentifierPair type_ids_Type19; + QualifiedTypeName type_name_Type19 = "Type19"; + eprosima::fastcdr::optional type_ann_builtin_Type19; + eprosima::fastcdr::optional ann_custom_Type19; + CompleteTypeDetail detail_Type19 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type19, ann_custom_Type19, type_name_Type19.to_string()); + CompleteStructHeader header_Type19; + header_Type19 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type19); + CompleteStructMemberSeq member_seq_Type19; + { + return_code_Type19 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type19); + + if (return_code_Type19 != 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_Type19.type_identifier1()._d() || TK_NONE == type_ids_Type19.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type19.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type19.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type19.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type19.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type19.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type19.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type19.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type19.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type19.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type19.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type19.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type19.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type19.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type19.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type19.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type19.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type19.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type19.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type19.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type19.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type19.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type19.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type19.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_Type19.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type19); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type19, member_index); + } + CompleteStructType struct_type_Type19 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type19, header_Type19, member_seq_Type19); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type19, type_name_Type19.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type19 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type19 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type19", type_ids_Type19); + if (return_code_Type19 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type19: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type20_type_identifier() +{ + { + StructTypeFlag struct_flags_Type20 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type20; + TypeIdentifierPair type_ids_Type20; + QualifiedTypeName type_name_Type20 = "Type20"; + eprosima::fastcdr::optional type_ann_builtin_Type20; + eprosima::fastcdr::optional ann_custom_Type20; + CompleteTypeDetail detail_Type20 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type20, ann_custom_Type20, type_name_Type20.to_string()); + CompleteStructHeader header_Type20; + header_Type20 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type20); + CompleteStructMemberSeq member_seq_Type20; + { + return_code_Type20 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type20); + + if (return_code_Type20 != 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_Type20.type_identifier1()._d() || TK_NONE == type_ids_Type20.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type20.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type20.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type20.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type20.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type20.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type20.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type20.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type20.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type20.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type20.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type20.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type20.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type20.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type20.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type20.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type20.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type20.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type20.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type20.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type20.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type20.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type20.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type20.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_Type20.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type20); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type20, member_index); + } + CompleteStructType struct_type_Type20 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type20, header_Type20, member_seq_Type20); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type20, type_name_Type20.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type20 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type20 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type20", type_ids_Type20); + if (return_code_Type20 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type20: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type21_type_identifier() +{ + { + StructTypeFlag struct_flags_Type21 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type21; + TypeIdentifierPair type_ids_Type21; + QualifiedTypeName type_name_Type21 = "Type21"; + eprosima::fastcdr::optional type_ann_builtin_Type21; + eprosima::fastcdr::optional ann_custom_Type21; + CompleteTypeDetail detail_Type21 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type21, ann_custom_Type21, type_name_Type21.to_string()); + CompleteStructHeader header_Type21; + header_Type21 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type21); + CompleteStructMemberSeq member_seq_Type21; + { + return_code_Type21 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type21); + + if (return_code_Type21 != 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_Type21.type_identifier1()._d() || TK_NONE == type_ids_Type21.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type21.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type21.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type21.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type21.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type21.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type21.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type21.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type21.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type21.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type21.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type21.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type21.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type21.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type21.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type21.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type21.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type21.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type21.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type21.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type21.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type21.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type21.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type21.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_Type21.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type21); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type21, member_index); + } + CompleteStructType struct_type_Type21 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type21, header_Type21, member_seq_Type21); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type21, type_name_Type21.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type21 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type21 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type21", type_ids_Type21); + if (return_code_Type21 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type21: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type22_type_identifier() +{ + { + StructTypeFlag struct_flags_Type22 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type22; + TypeIdentifierPair type_ids_Type22; + QualifiedTypeName type_name_Type22 = "Type22"; + eprosima::fastcdr::optional type_ann_builtin_Type22; + eprosima::fastcdr::optional ann_custom_Type22; + CompleteTypeDetail detail_Type22 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type22, ann_custom_Type22, type_name_Type22.to_string()); + CompleteStructHeader header_Type22; + header_Type22 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type22); + CompleteStructMemberSeq member_seq_Type22; + { + return_code_Type22 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type22); + + if (return_code_Type22 != 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_Type22.type_identifier1()._d() || TK_NONE == type_ids_Type22.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type22.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type22.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type22.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type22.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type22.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type22.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type22.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type22.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type22.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type22.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type22.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type22.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type22.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type22.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type22.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type22.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type22.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type22.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type22.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type22.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type22.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type22.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type22.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_Type22.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type22); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type22, member_index); + } + CompleteStructType struct_type_Type22 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type22, header_Type22, member_seq_Type22); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type22, type_name_Type22.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type22 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type22 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type22", type_ids_Type22); + if (return_code_Type22 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type22: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type23_type_identifier() +{ + { + StructTypeFlag struct_flags_Type23 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type23; + TypeIdentifierPair type_ids_Type23; + QualifiedTypeName type_name_Type23 = "Type23"; + eprosima::fastcdr::optional type_ann_builtin_Type23; + eprosima::fastcdr::optional ann_custom_Type23; + CompleteTypeDetail detail_Type23 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type23, ann_custom_Type23, type_name_Type23.to_string()); + CompleteStructHeader header_Type23; + header_Type23 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type23); + CompleteStructMemberSeq member_seq_Type23; + { + return_code_Type23 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type23); + + if (return_code_Type23 != 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_Type23.type_identifier1()._d() || TK_NONE == type_ids_Type23.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type23.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type23.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type23.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type23.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type23.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type23.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type23.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type23.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type23.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type23.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type23.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type23.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type23.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type23.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type23.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type23.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type23.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type23.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type23.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type23.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type23.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type23.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type23.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_Type23.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type23); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type23, member_index); + } + CompleteStructType struct_type_Type23 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type23, header_Type23, member_seq_Type23); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type23, type_name_Type23.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type23 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type23 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type23", type_ids_Type23); + if (return_code_Type23 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type23: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type24_type_identifier() +{ + { + StructTypeFlag struct_flags_Type24 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type24; + TypeIdentifierPair type_ids_Type24; + QualifiedTypeName type_name_Type24 = "Type24"; + eprosima::fastcdr::optional type_ann_builtin_Type24; + eprosima::fastcdr::optional ann_custom_Type24; + CompleteTypeDetail detail_Type24 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type24, ann_custom_Type24, type_name_Type24.to_string()); + CompleteStructHeader header_Type24; + header_Type24 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type24); + CompleteStructMemberSeq member_seq_Type24; + { + return_code_Type24 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type24); + + if (return_code_Type24 != 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_Type24.type_identifier1()._d() || TK_NONE == type_ids_Type24.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type24.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type24.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type24.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type24.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type24.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type24.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type24.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type24.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type24.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type24.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type24.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type24.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type24.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type24.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type24.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type24.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type24.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type24.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type24.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type24.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type24.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type24.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type24.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_Type24.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type24); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type24, member_index); + } + CompleteStructType struct_type_Type24 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type24, header_Type24, member_seq_Type24); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type24, type_name_Type24.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type24 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type24 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type24", type_ids_Type24); + if (return_code_Type24 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type24: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type25_type_identifier() +{ + { + StructTypeFlag struct_flags_Type25 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type25; + TypeIdentifierPair type_ids_Type25; + QualifiedTypeName type_name_Type25 = "Type25"; + eprosima::fastcdr::optional type_ann_builtin_Type25; + eprosima::fastcdr::optional ann_custom_Type25; + CompleteTypeDetail detail_Type25 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type25, ann_custom_Type25, type_name_Type25.to_string()); + CompleteStructHeader header_Type25; + header_Type25 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type25); + CompleteStructMemberSeq member_seq_Type25; + { + return_code_Type25 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type25); + + if (return_code_Type25 != 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_Type25.type_identifier1()._d() || TK_NONE == type_ids_Type25.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type25.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type25.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type25.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type25.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type25.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type25.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type25.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type25.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type25.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type25.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type25.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type25.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type25.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type25.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type25.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type25.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type25.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type25.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type25.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type25.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type25.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type25.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type25.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_Type25.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type25); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type25, member_index); + } + CompleteStructType struct_type_Type25 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type25, header_Type25, member_seq_Type25); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type25, type_name_Type25.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type25 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type25 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type25", type_ids_Type25); + if (return_code_Type25 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type25: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type26_type_identifier() +{ + { + StructTypeFlag struct_flags_Type26 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type26; + TypeIdentifierPair type_ids_Type26; + QualifiedTypeName type_name_Type26 = "Type26"; + eprosima::fastcdr::optional type_ann_builtin_Type26; + eprosima::fastcdr::optional ann_custom_Type26; + CompleteTypeDetail detail_Type26 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type26, ann_custom_Type26, type_name_Type26.to_string()); + CompleteStructHeader header_Type26; + header_Type26 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type26); + CompleteStructMemberSeq member_seq_Type26; + { + return_code_Type26 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type26); + + if (return_code_Type26 != 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_Type26.type_identifier1()._d() || TK_NONE == type_ids_Type26.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type26.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type26.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type26.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type26.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type26.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type26.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type26.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type26.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type26.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type26.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type26.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type26.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type26.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type26.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type26.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type26.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type26.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type26.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type26.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type26.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type26.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type26.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type26.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_Type26.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type26); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type26, member_index); + } + CompleteStructType struct_type_Type26 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type26, header_Type26, member_seq_Type26); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type26, type_name_Type26.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type26 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type26 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type26", type_ids_Type26); + if (return_code_Type26 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type26: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type27_type_identifier() +{ + { + StructTypeFlag struct_flags_Type27 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type27; + TypeIdentifierPair type_ids_Type27; + QualifiedTypeName type_name_Type27 = "Type27"; + eprosima::fastcdr::optional type_ann_builtin_Type27; + eprosima::fastcdr::optional ann_custom_Type27; + CompleteTypeDetail detail_Type27 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type27, ann_custom_Type27, type_name_Type27.to_string()); + CompleteStructHeader header_Type27; + header_Type27 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type27); + CompleteStructMemberSeq member_seq_Type27; + { + return_code_Type27 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type27); + + if (return_code_Type27 != 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_Type27.type_identifier1()._d() || TK_NONE == type_ids_Type27.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type27.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type27.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type27.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type27.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type27.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type27.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type27.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type27.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type27.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type27.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type27.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type27.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type27.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type27.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type27.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type27.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type27.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type27.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type27.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type27.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type27.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type27.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type27.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_Type27.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type27); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type27, member_index); + } + CompleteStructType struct_type_Type27 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type27, header_Type27, member_seq_Type27); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type27, type_name_Type27.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type27 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type27 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type27", type_ids_Type27); + if (return_code_Type27 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type27: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type28_type_identifier() +{ + { + StructTypeFlag struct_flags_Type28 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type28; + TypeIdentifierPair type_ids_Type28; + QualifiedTypeName type_name_Type28 = "Type28"; + eprosima::fastcdr::optional type_ann_builtin_Type28; + eprosima::fastcdr::optional ann_custom_Type28; + CompleteTypeDetail detail_Type28 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type28, ann_custom_Type28, type_name_Type28.to_string()); + CompleteStructHeader header_Type28; + header_Type28 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type28); + CompleteStructMemberSeq member_seq_Type28; + { + return_code_Type28 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type28); + + if (return_code_Type28 != 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_Type28.type_identifier1()._d() || TK_NONE == type_ids_Type28.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type28.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type28.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type28.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type28.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type28.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type28.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type28.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type28.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type28.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type28.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type28.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type28.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type28.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type28.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type28.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type28.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type28.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type28.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type28.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type28.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type28.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type28.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type28.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_Type28.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type28); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type28, member_index); + } + CompleteStructType struct_type_Type28 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type28, header_Type28, member_seq_Type28); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type28, type_name_Type28.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type28 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type28 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type28", type_ids_Type28); + if (return_code_Type28 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type28: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type29_type_identifier() +{ + { + StructTypeFlag struct_flags_Type29 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type29; + TypeIdentifierPair type_ids_Type29; + QualifiedTypeName type_name_Type29 = "Type29"; + eprosima::fastcdr::optional type_ann_builtin_Type29; + eprosima::fastcdr::optional ann_custom_Type29; + CompleteTypeDetail detail_Type29 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type29, ann_custom_Type29, type_name_Type29.to_string()); + CompleteStructHeader header_Type29; + header_Type29 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type29); + CompleteStructMemberSeq member_seq_Type29; + { + return_code_Type29 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type29); + + if (return_code_Type29 != 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_Type29.type_identifier1()._d() || TK_NONE == type_ids_Type29.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type29.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type29.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type29.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type29.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type29.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type29.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type29.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type29.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type29.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type29.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type29.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type29.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type29.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type29.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type29.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type29.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type29.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type29.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type29.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type29.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type29.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type29.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type29.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_Type29.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type29); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type29, member_index); + } + CompleteStructType struct_type_Type29 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type29, header_Type29, member_seq_Type29); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type29, type_name_Type29.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type29 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type29 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type29", type_ids_Type29); + if (return_code_Type29 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type29: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type30_type_identifier() +{ + { + StructTypeFlag struct_flags_Type30 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type30; + TypeIdentifierPair type_ids_Type30; + QualifiedTypeName type_name_Type30 = "Type30"; + eprosima::fastcdr::optional type_ann_builtin_Type30; + eprosima::fastcdr::optional ann_custom_Type30; + CompleteTypeDetail detail_Type30 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type30, ann_custom_Type30, type_name_Type30.to_string()); + CompleteStructHeader header_Type30; + header_Type30 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type30); + CompleteStructMemberSeq member_seq_Type30; + { + return_code_Type30 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type30); + + if (return_code_Type30 != 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_Type30.type_identifier1()._d() || TK_NONE == type_ids_Type30.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type30.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type30.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type30.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type30.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type30.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type30.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type30.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type30.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type30.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type30.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type30.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type30.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type30.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type30.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type30.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type30.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type30.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type30.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type30.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type30.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type30.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type30.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type30.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_Type30.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type30); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type30, member_index); + } + CompleteStructType struct_type_Type30 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type30, header_Type30, member_seq_Type30); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type30, type_name_Type30.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type30 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type30 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type30", type_ids_Type30); + if (return_code_Type30 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type30: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type31_type_identifier() +{ + { + StructTypeFlag struct_flags_Type31 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type31; + TypeIdentifierPair type_ids_Type31; + QualifiedTypeName type_name_Type31 = "Type31"; + eprosima::fastcdr::optional type_ann_builtin_Type31; + eprosima::fastcdr::optional ann_custom_Type31; + CompleteTypeDetail detail_Type31 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type31, ann_custom_Type31, type_name_Type31.to_string()); + CompleteStructHeader header_Type31; + header_Type31 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type31); + CompleteStructMemberSeq member_seq_Type31; + { + return_code_Type31 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type31); + + if (return_code_Type31 != 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_Type31.type_identifier1()._d() || TK_NONE == type_ids_Type31.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type31.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type31.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type31.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type31.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type31.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type31.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type31.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type31.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type31.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type31.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type31.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type31.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type31.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type31.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type31.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type31.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type31.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type31.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type31.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type31.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type31.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type31.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type31.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_Type31.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type31); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type31, member_index); + } + CompleteStructType struct_type_Type31 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type31, header_Type31, member_seq_Type31); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type31, type_name_Type31.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type31 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type31 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type31", type_ids_Type31); + if (return_code_Type31 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type31: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type32_type_identifier() +{ + { + StructTypeFlag struct_flags_Type32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type32; + TypeIdentifierPair type_ids_Type32; + QualifiedTypeName type_name_Type32 = "Type32"; + eprosima::fastcdr::optional type_ann_builtin_Type32; + eprosima::fastcdr::optional ann_custom_Type32; + CompleteTypeDetail detail_Type32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type32, ann_custom_Type32, type_name_Type32.to_string()); + CompleteStructHeader header_Type32; + header_Type32 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type32); + CompleteStructMemberSeq member_seq_Type32; + { + return_code_Type32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type32); + + if (return_code_Type32 != 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_Type32.type_identifier1()._d() || TK_NONE == type_ids_Type32.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type32.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type32.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type32.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type32.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type32.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type32.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type32.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type32.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type32.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type32.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type32.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type32.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type32.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type32.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type32.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type32.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type32.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type32.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type32.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type32.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type32.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type32.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type32.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_Type32.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type32); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type32, member_index); + } + CompleteStructType struct_type_Type32 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type32, header_Type32, member_seq_Type32); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type32, type_name_Type32.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type32 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type32", type_ids_Type32); + if (return_code_Type32 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type32: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type33_type_identifier() +{ + { + StructTypeFlag struct_flags_Type33 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type33; + TypeIdentifierPair type_ids_Type33; + QualifiedTypeName type_name_Type33 = "Type33"; + eprosima::fastcdr::optional type_ann_builtin_Type33; + eprosima::fastcdr::optional ann_custom_Type33; + CompleteTypeDetail detail_Type33 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type33, ann_custom_Type33, type_name_Type33.to_string()); + CompleteStructHeader header_Type33; + header_Type33 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type33); + CompleteStructMemberSeq member_seq_Type33; + { + return_code_Type33 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type33); + + if (return_code_Type33 != 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_Type33.type_identifier1()._d() || TK_NONE == type_ids_Type33.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type33.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type33.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type33.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type33.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type33.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type33.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type33.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type33.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type33.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type33.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type33.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type33.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type33.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type33.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type33.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type33.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type33.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type33.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type33.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type33.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type33.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type33.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type33.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_Type33.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type33); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type33, member_index); + } + CompleteStructType struct_type_Type33 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type33, header_Type33, member_seq_Type33); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type33, type_name_Type33.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type33 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type33 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type33", type_ids_Type33); + if (return_code_Type33 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type33: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type34_type_identifier() +{ + { + StructTypeFlag struct_flags_Type34 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type34; + TypeIdentifierPair type_ids_Type34; + QualifiedTypeName type_name_Type34 = "Type34"; + eprosima::fastcdr::optional type_ann_builtin_Type34; + eprosima::fastcdr::optional ann_custom_Type34; + CompleteTypeDetail detail_Type34 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type34, ann_custom_Type34, type_name_Type34.to_string()); + CompleteStructHeader header_Type34; + header_Type34 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type34); + CompleteStructMemberSeq member_seq_Type34; + { + return_code_Type34 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type34); + + if (return_code_Type34 != 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_Type34.type_identifier1()._d() || TK_NONE == type_ids_Type34.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type34.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type34.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type34.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type34.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type34.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type34.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type34.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type34.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type34.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type34.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type34.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type34.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type34.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type34.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type34.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type34.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type34.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type34.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type34.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type34.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type34.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type34.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type34.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_Type34.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type34); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type34, member_index); + } + CompleteStructType struct_type_Type34 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type34, header_Type34, member_seq_Type34); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type34, type_name_Type34.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type34 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type34 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type34", type_ids_Type34); + if (return_code_Type34 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type34: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type35_type_identifier() +{ + { + StructTypeFlag struct_flags_Type35 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type35; + TypeIdentifierPair type_ids_Type35; + QualifiedTypeName type_name_Type35 = "Type35"; + eprosima::fastcdr::optional type_ann_builtin_Type35; + eprosima::fastcdr::optional ann_custom_Type35; + CompleteTypeDetail detail_Type35 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type35, ann_custom_Type35, type_name_Type35.to_string()); + CompleteStructHeader header_Type35; + header_Type35 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type35); + CompleteStructMemberSeq member_seq_Type35; + { + return_code_Type35 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type35); + + if (return_code_Type35 != 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_Type35.type_identifier1()._d() || TK_NONE == type_ids_Type35.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type35.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type35.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type35.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type35.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type35.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type35.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type35.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type35.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type35.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type35.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type35.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type35.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type35.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type35.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type35.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type35.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type35.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type35.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type35.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type35.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type35.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type35.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type35.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_Type35.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type35); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type35, member_index); + } + CompleteStructType struct_type_Type35 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type35, header_Type35, member_seq_Type35); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type35, type_name_Type35.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type35 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type35 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type35", type_ids_Type35); + if (return_code_Type35 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type35: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type36_type_identifier() +{ + { + StructTypeFlag struct_flags_Type36 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type36; + TypeIdentifierPair type_ids_Type36; + QualifiedTypeName type_name_Type36 = "Type36"; + eprosima::fastcdr::optional type_ann_builtin_Type36; + eprosima::fastcdr::optional ann_custom_Type36; + CompleteTypeDetail detail_Type36 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type36, ann_custom_Type36, type_name_Type36.to_string()); + CompleteStructHeader header_Type36; + header_Type36 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type36); + CompleteStructMemberSeq member_seq_Type36; + { + return_code_Type36 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type36); + + if (return_code_Type36 != 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_Type36.type_identifier1()._d() || TK_NONE == type_ids_Type36.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type36.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type36.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type36.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type36.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type36.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type36.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type36.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type36.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type36.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type36.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type36.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type36.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type36.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type36.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type36.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type36.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type36.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type36.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type36.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type36.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type36.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type36.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type36.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_Type36.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type36); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type36, member_index); + } + CompleteStructType struct_type_Type36 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type36, header_Type36, member_seq_Type36); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type36, type_name_Type36.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type36 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type36 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type36", type_ids_Type36); + if (return_code_Type36 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type36: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type37_type_identifier() +{ + { + StructTypeFlag struct_flags_Type37 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type37; + TypeIdentifierPair type_ids_Type37; + QualifiedTypeName type_name_Type37 = "Type37"; + eprosima::fastcdr::optional type_ann_builtin_Type37; + eprosima::fastcdr::optional ann_custom_Type37; + CompleteTypeDetail detail_Type37 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type37, ann_custom_Type37, type_name_Type37.to_string()); + CompleteStructHeader header_Type37; + header_Type37 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type37); + CompleteStructMemberSeq member_seq_Type37; + { + return_code_Type37 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type37); + + if (return_code_Type37 != 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_Type37.type_identifier1()._d() || TK_NONE == type_ids_Type37.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type37.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type37.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type37.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type37.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type37.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type37.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type37.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type37.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type37.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type37.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type37.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type37.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type37.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type37.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type37.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type37.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type37.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type37.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type37.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type37.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type37.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type37.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type37.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_Type37.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type37); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type37, member_index); + } + CompleteStructType struct_type_Type37 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type37, header_Type37, member_seq_Type37); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type37, type_name_Type37.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type37 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type37 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type37", type_ids_Type37); + if (return_code_Type37 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type37: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type38_type_identifier() +{ + { + StructTypeFlag struct_flags_Type38 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type38; + TypeIdentifierPair type_ids_Type38; + QualifiedTypeName type_name_Type38 = "Type38"; + eprosima::fastcdr::optional type_ann_builtin_Type38; + eprosima::fastcdr::optional ann_custom_Type38; + CompleteTypeDetail detail_Type38 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type38, ann_custom_Type38, type_name_Type38.to_string()); + CompleteStructHeader header_Type38; + header_Type38 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type38); + CompleteStructMemberSeq member_seq_Type38; + { + return_code_Type38 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type38); + + if (return_code_Type38 != 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_Type38.type_identifier1()._d() || TK_NONE == type_ids_Type38.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type38.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type38.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type38.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type38.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type38.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type38.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type38.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type38.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type38.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type38.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type38.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type38.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type38.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type38.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type38.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type38.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type38.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type38.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type38.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type38.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type38.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type38.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type38.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_Type38.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type38); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type38, member_index); + } + CompleteStructType struct_type_Type38 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type38, header_Type38, member_seq_Type38); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type38, type_name_Type38.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type38 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type38 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type38", type_ids_Type38); + if (return_code_Type38 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type38: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type39_type_identifier() +{ + { + StructTypeFlag struct_flags_Type39 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type39; + TypeIdentifierPair type_ids_Type39; + QualifiedTypeName type_name_Type39 = "Type39"; + eprosima::fastcdr::optional type_ann_builtin_Type39; + eprosima::fastcdr::optional ann_custom_Type39; + CompleteTypeDetail detail_Type39 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type39, ann_custom_Type39, type_name_Type39.to_string()); + CompleteStructHeader header_Type39; + header_Type39 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type39); + CompleteStructMemberSeq member_seq_Type39; + { + return_code_Type39 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type39); + + if (return_code_Type39 != 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_Type39.type_identifier1()._d() || TK_NONE == type_ids_Type39.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type39.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type39.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type39.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type39.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type39.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type39.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type39.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type39.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type39.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type39.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type39.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type39.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type39.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type39.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type39.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type39.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type39.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type39.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type39.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type39.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type39.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type39.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type39.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_Type39.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type39); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type39, member_index); + } + CompleteStructType struct_type_Type39 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type39, header_Type39, member_seq_Type39); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type39, type_name_Type39.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type39 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type39 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type39", type_ids_Type39); + if (return_code_Type39 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type39: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type40_type_identifier() +{ + { + StructTypeFlag struct_flags_Type40 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type40; + TypeIdentifierPair type_ids_Type40; + QualifiedTypeName type_name_Type40 = "Type40"; + eprosima::fastcdr::optional type_ann_builtin_Type40; + eprosima::fastcdr::optional ann_custom_Type40; + CompleteTypeDetail detail_Type40 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type40, ann_custom_Type40, type_name_Type40.to_string()); + CompleteStructHeader header_Type40; + header_Type40 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type40); + CompleteStructMemberSeq member_seq_Type40; + { + return_code_Type40 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type40); + + if (return_code_Type40 != 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_Type40.type_identifier1()._d() || TK_NONE == type_ids_Type40.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type40.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type40.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type40.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type40.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type40.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type40.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type40.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type40.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type40.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type40.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type40.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type40.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type40.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type40.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type40.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type40.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type40.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type40.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type40.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type40.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type40.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type40.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type40.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_Type40.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type40); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type40, member_index); + } + CompleteStructType struct_type_Type40 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type40, header_Type40, member_seq_Type40); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type40, type_name_Type40.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type40 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type40 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type40", type_ids_Type40); + if (return_code_Type40 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type40: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type41_type_identifier() +{ + { + StructTypeFlag struct_flags_Type41 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type41; + TypeIdentifierPair type_ids_Type41; + QualifiedTypeName type_name_Type41 = "Type41"; + eprosima::fastcdr::optional type_ann_builtin_Type41; + eprosima::fastcdr::optional ann_custom_Type41; + CompleteTypeDetail detail_Type41 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type41, ann_custom_Type41, type_name_Type41.to_string()); + CompleteStructHeader header_Type41; + header_Type41 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type41); + CompleteStructMemberSeq member_seq_Type41; + { + return_code_Type41 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type41); + + if (return_code_Type41 != 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_Type41.type_identifier1()._d() || TK_NONE == type_ids_Type41.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type41.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type41.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type41.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type41.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type41.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type41.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type41.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type41.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type41.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type41.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type41.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type41.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type41.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type41.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type41.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type41.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type41.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type41.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type41.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type41.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type41.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type41.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type41.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_Type41.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type41); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type41, member_index); + } + CompleteStructType struct_type_Type41 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type41, header_Type41, member_seq_Type41); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type41, type_name_Type41.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type41 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type41 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type41", type_ids_Type41); + if (return_code_Type41 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type41: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type42_type_identifier() +{ + { + StructTypeFlag struct_flags_Type42 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type42; + TypeIdentifierPair type_ids_Type42; + QualifiedTypeName type_name_Type42 = "Type42"; + eprosima::fastcdr::optional type_ann_builtin_Type42; + eprosima::fastcdr::optional ann_custom_Type42; + CompleteTypeDetail detail_Type42 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type42, ann_custom_Type42, type_name_Type42.to_string()); + CompleteStructHeader header_Type42; + header_Type42 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type42); + CompleteStructMemberSeq member_seq_Type42; + { + return_code_Type42 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type42); + + if (return_code_Type42 != 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_Type42.type_identifier1()._d() || TK_NONE == type_ids_Type42.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type42.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type42.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type42.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type42.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type42.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type42.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type42.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type42.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type42.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type42.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type42.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type42.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type42.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type42.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type42.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type42.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type42.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type42.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type42.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type42.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type42.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type42.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type42.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_Type42.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type42); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type42, member_index); + } + CompleteStructType struct_type_Type42 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type42, header_Type42, member_seq_Type42); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type42, type_name_Type42.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type42 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type42 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type42", type_ids_Type42); + if (return_code_Type42 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type42: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type43_type_identifier() +{ + { + StructTypeFlag struct_flags_Type43 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type43; + TypeIdentifierPair type_ids_Type43; + QualifiedTypeName type_name_Type43 = "Type43"; + eprosima::fastcdr::optional type_ann_builtin_Type43; + eprosima::fastcdr::optional ann_custom_Type43; + CompleteTypeDetail detail_Type43 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type43, ann_custom_Type43, type_name_Type43.to_string()); + CompleteStructHeader header_Type43; + header_Type43 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type43); + CompleteStructMemberSeq member_seq_Type43; + { + return_code_Type43 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type43); + + if (return_code_Type43 != 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_Type43.type_identifier1()._d() || TK_NONE == type_ids_Type43.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type43.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type43.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type43.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type43.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type43.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type43.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type43.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type43.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type43.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type43.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type43.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type43.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type43.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type43.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type43.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type43.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type43.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type43.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type43.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type43.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type43.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type43.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type43.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_Type43.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type43); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type43, member_index); + } + CompleteStructType struct_type_Type43 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type43, header_Type43, member_seq_Type43); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type43, type_name_Type43.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type43 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type43 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type43", type_ids_Type43); + if (return_code_Type43 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type43: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type44_type_identifier() +{ + { + StructTypeFlag struct_flags_Type44 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type44; + TypeIdentifierPair type_ids_Type44; + QualifiedTypeName type_name_Type44 = "Type44"; + eprosima::fastcdr::optional type_ann_builtin_Type44; + eprosima::fastcdr::optional ann_custom_Type44; + CompleteTypeDetail detail_Type44 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type44, ann_custom_Type44, type_name_Type44.to_string()); + CompleteStructHeader header_Type44; + header_Type44 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type44); + CompleteStructMemberSeq member_seq_Type44; + { + return_code_Type44 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type44); + + if (return_code_Type44 != 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_Type44.type_identifier1()._d() || TK_NONE == type_ids_Type44.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type44.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type44.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type44.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type44.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type44.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type44.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type44.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type44.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type44.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type44.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type44.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type44.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type44.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type44.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type44.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type44.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type44.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type44.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type44.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type44.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type44.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type44.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type44.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_Type44.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type44); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type44, member_index); + } + CompleteStructType struct_type_Type44 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type44, header_Type44, member_seq_Type44); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type44, type_name_Type44.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type44 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type44 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type44", type_ids_Type44); + if (return_code_Type44 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type44: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type45_type_identifier() +{ + { + StructTypeFlag struct_flags_Type45 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type45; + TypeIdentifierPair type_ids_Type45; + QualifiedTypeName type_name_Type45 = "Type45"; + eprosima::fastcdr::optional type_ann_builtin_Type45; + eprosima::fastcdr::optional ann_custom_Type45; + CompleteTypeDetail detail_Type45 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type45, ann_custom_Type45, type_name_Type45.to_string()); + CompleteStructHeader header_Type45; + header_Type45 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type45); + CompleteStructMemberSeq member_seq_Type45; + { + return_code_Type45 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type45); + + if (return_code_Type45 != 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_Type45.type_identifier1()._d() || TK_NONE == type_ids_Type45.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type45.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type45.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type45.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type45.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type45.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type45.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type45.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type45.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type45.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type45.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type45.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type45.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type45.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type45.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type45.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type45.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type45.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type45.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type45.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type45.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type45.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type45.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type45.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_Type45.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type45); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type45, member_index); + } + CompleteStructType struct_type_Type45 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type45, header_Type45, member_seq_Type45); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type45, type_name_Type45.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type45 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type45 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type45", type_ids_Type45); + if (return_code_Type45 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type45: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type46_type_identifier() +{ + { + StructTypeFlag struct_flags_Type46 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type46; + TypeIdentifierPair type_ids_Type46; + QualifiedTypeName type_name_Type46 = "Type46"; + eprosima::fastcdr::optional type_ann_builtin_Type46; + eprosima::fastcdr::optional ann_custom_Type46; + CompleteTypeDetail detail_Type46 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type46, ann_custom_Type46, type_name_Type46.to_string()); + CompleteStructHeader header_Type46; + header_Type46 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type46); + CompleteStructMemberSeq member_seq_Type46; + { + return_code_Type46 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type46); + + if (return_code_Type46 != 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_Type46.type_identifier1()._d() || TK_NONE == type_ids_Type46.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type46.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type46.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type46.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type46.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type46.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type46.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type46.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type46.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type46.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type46.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type46.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type46.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type46.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type46.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type46.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type46.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type46.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type46.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type46.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type46.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type46.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type46.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type46.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_Type46.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type46); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type46, member_index); + } + CompleteStructType struct_type_Type46 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type46, header_Type46, member_seq_Type46); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type46, type_name_Type46.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type46 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type46 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type46", type_ids_Type46); + if (return_code_Type46 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type46: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type47_type_identifier() +{ + { + StructTypeFlag struct_flags_Type47 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type47; + TypeIdentifierPair type_ids_Type47; + QualifiedTypeName type_name_Type47 = "Type47"; + eprosima::fastcdr::optional type_ann_builtin_Type47; + eprosima::fastcdr::optional ann_custom_Type47; + CompleteTypeDetail detail_Type47 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type47, ann_custom_Type47, type_name_Type47.to_string()); + CompleteStructHeader header_Type47; + header_Type47 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type47); + CompleteStructMemberSeq member_seq_Type47; + { + return_code_Type47 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type47); + + if (return_code_Type47 != 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_Type47.type_identifier1()._d() || TK_NONE == type_ids_Type47.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type47.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type47.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type47.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type47.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type47.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type47.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type47.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type47.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type47.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type47.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type47.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type47.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type47.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type47.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type47.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type47.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type47.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type47.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type47.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type47.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type47.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type47.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type47.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_Type47.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type47); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type47, member_index); + } + CompleteStructType struct_type_Type47 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type47, header_Type47, member_seq_Type47); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type47, type_name_Type47.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type47 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type47 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type47", type_ids_Type47); + if (return_code_Type47 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type47: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type48_type_identifier() +{ + { + StructTypeFlag struct_flags_Type48 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type48; + TypeIdentifierPair type_ids_Type48; + QualifiedTypeName type_name_Type48 = "Type48"; + eprosima::fastcdr::optional type_ann_builtin_Type48; + eprosima::fastcdr::optional ann_custom_Type48; + CompleteTypeDetail detail_Type48 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type48, ann_custom_Type48, type_name_Type48.to_string()); + CompleteStructHeader header_Type48; + header_Type48 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type48); + CompleteStructMemberSeq member_seq_Type48; + { + return_code_Type48 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type48); + + if (return_code_Type48 != 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_Type48.type_identifier1()._d() || TK_NONE == type_ids_Type48.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type48.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type48.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type48.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type48.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type48.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type48.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type48.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type48.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type48.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type48.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type48.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type48.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type48.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type48.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type48.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type48.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type48.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type48.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type48.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type48.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type48.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type48.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type48.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_Type48.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type48); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type48, member_index); + } + CompleteStructType struct_type_Type48 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type48, header_Type48, member_seq_Type48); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type48, type_name_Type48.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type48 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type48 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type48", type_ids_Type48); + if (return_code_Type48 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type48: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type49_type_identifier() +{ + { + StructTypeFlag struct_flags_Type49 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type49; + TypeIdentifierPair type_ids_Type49; + QualifiedTypeName type_name_Type49 = "Type49"; + eprosima::fastcdr::optional type_ann_builtin_Type49; + eprosima::fastcdr::optional ann_custom_Type49; + CompleteTypeDetail detail_Type49 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type49, ann_custom_Type49, type_name_Type49.to_string()); + CompleteStructHeader header_Type49; + header_Type49 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type49); + CompleteStructMemberSeq member_seq_Type49; + { + return_code_Type49 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type49); + + if (return_code_Type49 != 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_Type49.type_identifier1()._d() || TK_NONE == type_ids_Type49.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type49.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type49.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type49.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type49.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type49.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type49.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type49.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type49.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type49.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type49.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type49.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type49.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type49.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type49.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type49.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type49.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type49.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type49.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type49.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type49.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type49.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type49.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type49.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_Type49.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type49); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type49, member_index); + } + CompleteStructType struct_type_Type49 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type49, header_Type49, member_seq_Type49); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type49, type_name_Type49.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type49 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type49 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type49", type_ids_Type49); + if (return_code_Type49 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type49: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type50_type_identifier() +{ + { + StructTypeFlag struct_flags_Type50 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type50; + TypeIdentifierPair type_ids_Type50; + QualifiedTypeName type_name_Type50 = "Type50"; + eprosima::fastcdr::optional type_ann_builtin_Type50; + eprosima::fastcdr::optional ann_custom_Type50; + CompleteTypeDetail detail_Type50 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type50, ann_custom_Type50, type_name_Type50.to_string()); + CompleteStructHeader header_Type50; + header_Type50 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type50); + CompleteStructMemberSeq member_seq_Type50; + { + return_code_Type50 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type50); + + if (return_code_Type50 != 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_Type50.type_identifier1()._d() || TK_NONE == type_ids_Type50.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type50.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type50.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type50.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type50.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type50.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type50.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type50.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type50.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type50.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type50.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type50.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type50.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type50.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type50.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type50.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type50.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type50.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type50.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type50.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type50.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type50.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type50.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type50.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_Type50.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type50); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type50, member_index); + } + CompleteStructType struct_type_Type50 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type50, header_Type50, member_seq_Type50); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type50, type_name_Type50.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type50 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type50 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type50", type_ids_Type50); + if (return_code_Type50 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type50: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type51_type_identifier() +{ + { + StructTypeFlag struct_flags_Type51 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type51; + TypeIdentifierPair type_ids_Type51; + QualifiedTypeName type_name_Type51 = "Type51"; + eprosima::fastcdr::optional type_ann_builtin_Type51; + eprosima::fastcdr::optional ann_custom_Type51; + CompleteTypeDetail detail_Type51 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type51, ann_custom_Type51, type_name_Type51.to_string()); + CompleteStructHeader header_Type51; + header_Type51 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type51); + CompleteStructMemberSeq member_seq_Type51; + { + return_code_Type51 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type51); + + if (return_code_Type51 != 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_Type51.type_identifier1()._d() || TK_NONE == type_ids_Type51.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type51.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type51.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type51.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type51.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type51.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type51.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type51.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type51.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type51.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type51.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type51.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type51.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type51.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type51.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type51.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type51.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type51.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type51.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type51.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type51.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type51.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type51.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type51.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_Type51.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type51); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type51, member_index); + } + CompleteStructType struct_type_Type51 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type51, header_Type51, member_seq_Type51); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type51, type_name_Type51.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type51 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type51 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type51", type_ids_Type51); + if (return_code_Type51 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type51: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type52_type_identifier() +{ + { + StructTypeFlag struct_flags_Type52 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type52; + TypeIdentifierPair type_ids_Type52; + QualifiedTypeName type_name_Type52 = "Type52"; + eprosima::fastcdr::optional type_ann_builtin_Type52; + eprosima::fastcdr::optional ann_custom_Type52; + CompleteTypeDetail detail_Type52 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type52, ann_custom_Type52, type_name_Type52.to_string()); + CompleteStructHeader header_Type52; + header_Type52 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type52); + CompleteStructMemberSeq member_seq_Type52; + { + return_code_Type52 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type52); + + if (return_code_Type52 != 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_Type52.type_identifier1()._d() || TK_NONE == type_ids_Type52.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type52.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type52.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type52.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type52.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type52.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type52.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type52.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type52.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type52.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type52.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type52.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type52.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type52.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type52.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type52.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type52.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type52.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type52.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type52.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type52.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type52.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type52.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type52.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_Type52.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type52); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type52, member_index); + } + CompleteStructType struct_type_Type52 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type52, header_Type52, member_seq_Type52); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type52, type_name_Type52.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type52 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type52 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type52", type_ids_Type52); + if (return_code_Type52 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type52: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type53_type_identifier() +{ + { + StructTypeFlag struct_flags_Type53 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type53; + TypeIdentifierPair type_ids_Type53; + QualifiedTypeName type_name_Type53 = "Type53"; + eprosima::fastcdr::optional type_ann_builtin_Type53; + eprosima::fastcdr::optional ann_custom_Type53; + CompleteTypeDetail detail_Type53 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type53, ann_custom_Type53, type_name_Type53.to_string()); + CompleteStructHeader header_Type53; + header_Type53 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type53); + CompleteStructMemberSeq member_seq_Type53; + { + return_code_Type53 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type53); + + if (return_code_Type53 != 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_Type53.type_identifier1()._d() || TK_NONE == type_ids_Type53.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type53.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type53.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type53.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type53.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type53.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type53.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type53.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type53.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type53.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type53.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type53.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type53.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type53.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type53.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type53.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type53.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type53.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type53.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type53.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type53.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type53.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type53.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type53.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_Type53.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type53); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type53, member_index); + } + CompleteStructType struct_type_Type53 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type53, header_Type53, member_seq_Type53); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type53, type_name_Type53.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type53 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type53 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type53", type_ids_Type53); + if (return_code_Type53 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type53: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type54_type_identifier() +{ + { + StructTypeFlag struct_flags_Type54 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type54; + TypeIdentifierPair type_ids_Type54; + QualifiedTypeName type_name_Type54 = "Type54"; + eprosima::fastcdr::optional type_ann_builtin_Type54; + eprosima::fastcdr::optional ann_custom_Type54; + CompleteTypeDetail detail_Type54 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type54, ann_custom_Type54, type_name_Type54.to_string()); + CompleteStructHeader header_Type54; + header_Type54 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type54); + CompleteStructMemberSeq member_seq_Type54; + { + return_code_Type54 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type54); + + if (return_code_Type54 != 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_Type54.type_identifier1()._d() || TK_NONE == type_ids_Type54.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type54.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type54.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type54.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type54.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type54.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type54.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type54.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type54.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type54.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type54.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type54.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type54.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type54.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type54.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type54.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type54.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type54.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type54.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type54.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type54.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type54.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type54.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type54.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_Type54.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type54); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type54, member_index); + } + CompleteStructType struct_type_Type54 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type54, header_Type54, member_seq_Type54); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type54, type_name_Type54.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type54 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type54 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type54", type_ids_Type54); + if (return_code_Type54 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type54: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type55_type_identifier() +{ + { + StructTypeFlag struct_flags_Type55 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type55; + TypeIdentifierPair type_ids_Type55; + QualifiedTypeName type_name_Type55 = "Type55"; + eprosima::fastcdr::optional type_ann_builtin_Type55; + eprosima::fastcdr::optional ann_custom_Type55; + CompleteTypeDetail detail_Type55 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type55, ann_custom_Type55, type_name_Type55.to_string()); + CompleteStructHeader header_Type55; + header_Type55 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type55); + CompleteStructMemberSeq member_seq_Type55; + { + return_code_Type55 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type55); + + if (return_code_Type55 != 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_Type55.type_identifier1()._d() || TK_NONE == type_ids_Type55.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type55.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type55.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type55.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type55.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type55.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type55.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type55.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type55.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type55.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type55.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type55.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type55.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type55.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type55.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type55.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type55.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type55.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type55.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type55.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type55.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type55.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type55.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type55.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_Type55.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type55); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type55, member_index); + } + CompleteStructType struct_type_Type55 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type55, header_Type55, member_seq_Type55); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type55, type_name_Type55.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type55 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type55 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type55", type_ids_Type55); + if (return_code_Type55 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type55: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type56_type_identifier() +{ + { + StructTypeFlag struct_flags_Type56 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type56; + TypeIdentifierPair type_ids_Type56; + QualifiedTypeName type_name_Type56 = "Type56"; + eprosima::fastcdr::optional type_ann_builtin_Type56; + eprosima::fastcdr::optional ann_custom_Type56; + CompleteTypeDetail detail_Type56 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type56, ann_custom_Type56, type_name_Type56.to_string()); + CompleteStructHeader header_Type56; + header_Type56 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type56); + CompleteStructMemberSeq member_seq_Type56; + { + return_code_Type56 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type56); + + if (return_code_Type56 != 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_Type56.type_identifier1()._d() || TK_NONE == type_ids_Type56.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type56.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type56.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type56.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type56.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type56.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type56.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type56.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type56.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type56.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type56.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type56.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type56.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type56.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type56.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type56.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type56.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type56.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type56.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type56.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type56.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type56.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type56.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type56.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_Type56.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type56); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type56, member_index); + } + CompleteStructType struct_type_Type56 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type56, header_Type56, member_seq_Type56); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type56, type_name_Type56.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type56 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type56 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type56", type_ids_Type56); + if (return_code_Type56 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type56: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type57_type_identifier() +{ + { + StructTypeFlag struct_flags_Type57 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type57; + TypeIdentifierPair type_ids_Type57; + QualifiedTypeName type_name_Type57 = "Type57"; + eprosima::fastcdr::optional type_ann_builtin_Type57; + eprosima::fastcdr::optional ann_custom_Type57; + CompleteTypeDetail detail_Type57 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type57, ann_custom_Type57, type_name_Type57.to_string()); + CompleteStructHeader header_Type57; + header_Type57 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type57); + CompleteStructMemberSeq member_seq_Type57; + { + return_code_Type57 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type57); + + if (return_code_Type57 != 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_Type57.type_identifier1()._d() || TK_NONE == type_ids_Type57.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type57.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type57.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type57.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type57.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type57.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type57.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type57.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type57.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type57.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type57.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type57.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type57.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type57.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type57.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type57.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type57.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type57.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type57.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type57.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type57.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type57.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type57.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type57.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_Type57.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type57); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type57, member_index); + } + CompleteStructType struct_type_Type57 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type57, header_Type57, member_seq_Type57); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type57, type_name_Type57.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type57 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type57 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type57", type_ids_Type57); + if (return_code_Type57 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type57: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type58_type_identifier() +{ + { + StructTypeFlag struct_flags_Type58 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type58; + TypeIdentifierPair type_ids_Type58; + QualifiedTypeName type_name_Type58 = "Type58"; + eprosima::fastcdr::optional type_ann_builtin_Type58; + eprosima::fastcdr::optional ann_custom_Type58; + CompleteTypeDetail detail_Type58 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type58, ann_custom_Type58, type_name_Type58.to_string()); + CompleteStructHeader header_Type58; + header_Type58 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type58); + CompleteStructMemberSeq member_seq_Type58; + { + return_code_Type58 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type58); + + if (return_code_Type58 != 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_Type58.type_identifier1()._d() || TK_NONE == type_ids_Type58.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type58.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type58.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type58.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type58.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type58.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type58.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type58.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type58.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type58.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type58.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type58.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type58.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type58.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type58.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type58.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type58.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type58.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type58.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type58.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type58.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type58.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type58.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type58.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_Type58.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type58); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type58, member_index); + } + CompleteStructType struct_type_Type58 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type58, header_Type58, member_seq_Type58); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type58, type_name_Type58.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type58 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type58 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type58", type_ids_Type58); + if (return_code_Type58 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type58: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type59_type_identifier() +{ + { + StructTypeFlag struct_flags_Type59 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type59; + TypeIdentifierPair type_ids_Type59; + QualifiedTypeName type_name_Type59 = "Type59"; + eprosima::fastcdr::optional type_ann_builtin_Type59; + eprosima::fastcdr::optional ann_custom_Type59; + CompleteTypeDetail detail_Type59 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type59, ann_custom_Type59, type_name_Type59.to_string()); + CompleteStructHeader header_Type59; + header_Type59 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type59); + CompleteStructMemberSeq member_seq_Type59; + { + return_code_Type59 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type59); + + if (return_code_Type59 != 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_Type59.type_identifier1()._d() || TK_NONE == type_ids_Type59.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type59.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type59.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type59.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type59.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type59.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type59.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type59.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type59.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type59.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type59.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type59.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type59.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type59.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type59.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type59.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type59.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type59.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type59.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type59.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type59.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type59.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type59.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type59.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_Type59.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type59); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type59, member_index); + } + CompleteStructType struct_type_Type59 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type59, header_Type59, member_seq_Type59); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type59, type_name_Type59.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type59 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type59 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type59", type_ids_Type59); + if (return_code_Type59 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type59: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type60_type_identifier() +{ + { + StructTypeFlag struct_flags_Type60 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type60; + TypeIdentifierPair type_ids_Type60; + QualifiedTypeName type_name_Type60 = "Type60"; + eprosima::fastcdr::optional type_ann_builtin_Type60; + eprosima::fastcdr::optional ann_custom_Type60; + CompleteTypeDetail detail_Type60 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type60, ann_custom_Type60, type_name_Type60.to_string()); + CompleteStructHeader header_Type60; + header_Type60 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type60); + CompleteStructMemberSeq member_seq_Type60; + { + return_code_Type60 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type60); + + if (return_code_Type60 != 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_Type60.type_identifier1()._d() || TK_NONE == type_ids_Type60.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type60.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type60.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type60.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type60.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type60.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type60.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type60.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type60.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type60.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type60.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type60.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type60.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type60.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type60.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type60.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type60.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type60.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type60.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type60.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type60.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type60.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type60.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type60.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_Type60.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type60); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type60, member_index); + } + CompleteStructType struct_type_Type60 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type60, header_Type60, member_seq_Type60); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type60, type_name_Type60.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type60 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type60 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type60", type_ids_Type60); + if (return_code_Type60 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type60: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type61_type_identifier() +{ + { + StructTypeFlag struct_flags_Type61 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type61; + TypeIdentifierPair type_ids_Type61; + QualifiedTypeName type_name_Type61 = "Type61"; + eprosima::fastcdr::optional type_ann_builtin_Type61; + eprosima::fastcdr::optional ann_custom_Type61; + CompleteTypeDetail detail_Type61 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type61, ann_custom_Type61, type_name_Type61.to_string()); + CompleteStructHeader header_Type61; + header_Type61 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type61); + CompleteStructMemberSeq member_seq_Type61; + { + return_code_Type61 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type61); + + if (return_code_Type61 != 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_Type61.type_identifier1()._d() || TK_NONE == type_ids_Type61.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type61.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type61.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type61.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type61.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type61.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type61.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type61.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type61.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type61.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type61.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type61.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type61.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type61.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type61.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type61.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type61.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type61.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type61.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type61.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type61.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type61.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type61.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type61.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_Type61.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type61); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type61, member_index); + } + CompleteStructType struct_type_Type61 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type61, header_Type61, member_seq_Type61); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type61, type_name_Type61.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type61 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type61 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type61", type_ids_Type61); + if (return_code_Type61 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type61: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type62_type_identifier() +{ + { + StructTypeFlag struct_flags_Type62 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type62; + TypeIdentifierPair type_ids_Type62; + QualifiedTypeName type_name_Type62 = "Type62"; + eprosima::fastcdr::optional type_ann_builtin_Type62; + eprosima::fastcdr::optional ann_custom_Type62; + CompleteTypeDetail detail_Type62 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type62, ann_custom_Type62, type_name_Type62.to_string()); + CompleteStructHeader header_Type62; + header_Type62 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type62); + CompleteStructMemberSeq member_seq_Type62; + { + return_code_Type62 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type62); + + if (return_code_Type62 != 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_Type62.type_identifier1()._d() || TK_NONE == type_ids_Type62.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type62.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type62.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type62.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type62.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type62.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type62.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type62.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type62.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type62.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type62.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type62.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type62.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type62.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type62.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type62.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type62.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type62.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type62.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type62.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type62.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type62.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type62.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type62.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_Type62.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type62); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type62, member_index); + } + CompleteStructType struct_type_Type62 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type62, header_Type62, member_seq_Type62); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type62, type_name_Type62.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type62 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type62 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type62", type_ids_Type62); + if (return_code_Type62 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type62: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type63_type_identifier() +{ + { + StructTypeFlag struct_flags_Type63 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type63; + TypeIdentifierPair type_ids_Type63; + QualifiedTypeName type_name_Type63 = "Type63"; + eprosima::fastcdr::optional type_ann_builtin_Type63; + eprosima::fastcdr::optional ann_custom_Type63; + CompleteTypeDetail detail_Type63 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type63, ann_custom_Type63, type_name_Type63.to_string()); + CompleteStructHeader header_Type63; + header_Type63 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type63); + CompleteStructMemberSeq member_seq_Type63; + { + return_code_Type63 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type63); + + if (return_code_Type63 != 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_Type63.type_identifier1()._d() || TK_NONE == type_ids_Type63.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type63.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type63.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type63.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type63.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type63.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type63.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type63.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type63.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type63.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type63.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type63.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type63.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type63.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type63.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type63.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type63.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type63.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type63.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type63.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type63.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type63.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type63.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type63.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_Type63.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type63); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type63, member_index); + } + CompleteStructType struct_type_Type63 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type63, header_Type63, member_seq_Type63); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type63, type_name_Type63.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type63 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type63 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type63", type_ids_Type63); + if (return_code_Type63 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type63: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type64_type_identifier() +{ + { + StructTypeFlag struct_flags_Type64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type64; + TypeIdentifierPair type_ids_Type64; + QualifiedTypeName type_name_Type64 = "Type64"; + eprosima::fastcdr::optional type_ann_builtin_Type64; + eprosima::fastcdr::optional ann_custom_Type64; + CompleteTypeDetail detail_Type64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type64, ann_custom_Type64, type_name_Type64.to_string()); + CompleteStructHeader header_Type64; + header_Type64 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type64); + CompleteStructMemberSeq member_seq_Type64; + { + return_code_Type64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type64); + + if (return_code_Type64 != 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_Type64.type_identifier1()._d() || TK_NONE == type_ids_Type64.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type64.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type64.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type64.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type64.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type64.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type64.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type64.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type64.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type64.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type64.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type64.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type64.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type64.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type64.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type64.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type64.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type64.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type64.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type64.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type64.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type64.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type64.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type64.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_Type64.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type64); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type64, member_index); + } + CompleteStructType struct_type_Type64 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type64, header_Type64, member_seq_Type64); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type64, type_name_Type64.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type64 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type64", type_ids_Type64); + if (return_code_Type64 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type64: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type65_type_identifier() +{ + { + StructTypeFlag struct_flags_Type65 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type65; + TypeIdentifierPair type_ids_Type65; + QualifiedTypeName type_name_Type65 = "Type65"; + eprosima::fastcdr::optional type_ann_builtin_Type65; + eprosima::fastcdr::optional ann_custom_Type65; + CompleteTypeDetail detail_Type65 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type65, ann_custom_Type65, type_name_Type65.to_string()); + CompleteStructHeader header_Type65; + header_Type65 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type65); + CompleteStructMemberSeq member_seq_Type65; + { + return_code_Type65 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type65); + + if (return_code_Type65 != 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_Type65.type_identifier1()._d() || TK_NONE == type_ids_Type65.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type65.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type65.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type65.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type65.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type65.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type65.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type65.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type65.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type65.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type65.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type65.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type65.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type65.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type65.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type65.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type65.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type65.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type65.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type65.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type65.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type65.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type65.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type65.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_Type65.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type65); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type65, member_index); + } + CompleteStructType struct_type_Type65 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type65, header_Type65, member_seq_Type65); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type65, type_name_Type65.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type65 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type65 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type65", type_ids_Type65); + if (return_code_Type65 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type65: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type66_type_identifier() +{ + { + StructTypeFlag struct_flags_Type66 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type66; + TypeIdentifierPair type_ids_Type66; + QualifiedTypeName type_name_Type66 = "Type66"; + eprosima::fastcdr::optional type_ann_builtin_Type66; + eprosima::fastcdr::optional ann_custom_Type66; + CompleteTypeDetail detail_Type66 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type66, ann_custom_Type66, type_name_Type66.to_string()); + CompleteStructHeader header_Type66; + header_Type66 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type66); + CompleteStructMemberSeq member_seq_Type66; + { + return_code_Type66 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type66); + + if (return_code_Type66 != 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_Type66.type_identifier1()._d() || TK_NONE == type_ids_Type66.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type66.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type66.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type66.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type66.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type66.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type66.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type66.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type66.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type66.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type66.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type66.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type66.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type66.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type66.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type66.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type66.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type66.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type66.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type66.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type66.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type66.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type66.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type66.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_Type66.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type66); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type66, member_index); + } + CompleteStructType struct_type_Type66 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type66, header_Type66, member_seq_Type66); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type66, type_name_Type66.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type66 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type66 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type66", type_ids_Type66); + if (return_code_Type66 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type66: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type67_type_identifier() +{ + { + StructTypeFlag struct_flags_Type67 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type67; + TypeIdentifierPair type_ids_Type67; + QualifiedTypeName type_name_Type67 = "Type67"; + eprosima::fastcdr::optional type_ann_builtin_Type67; + eprosima::fastcdr::optional ann_custom_Type67; + CompleteTypeDetail detail_Type67 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type67, ann_custom_Type67, type_name_Type67.to_string()); + CompleteStructHeader header_Type67; + header_Type67 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type67); + CompleteStructMemberSeq member_seq_Type67; + { + return_code_Type67 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type67); + + if (return_code_Type67 != 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_Type67.type_identifier1()._d() || TK_NONE == type_ids_Type67.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type67.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type67.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type67.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type67.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type67.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type67.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type67.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type67.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type67.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type67.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type67.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type67.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type67.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type67.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type67.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type67.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type67.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type67.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type67.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type67.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type67.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type67.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type67.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_Type67.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type67); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type67, member_index); + } + CompleteStructType struct_type_Type67 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type67, header_Type67, member_seq_Type67); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type67, type_name_Type67.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type67 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type67 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type67", type_ids_Type67); + if (return_code_Type67 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type67: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type68_type_identifier() +{ + { + StructTypeFlag struct_flags_Type68 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type68; + TypeIdentifierPair type_ids_Type68; + QualifiedTypeName type_name_Type68 = "Type68"; + eprosima::fastcdr::optional type_ann_builtin_Type68; + eprosima::fastcdr::optional ann_custom_Type68; + CompleteTypeDetail detail_Type68 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type68, ann_custom_Type68, type_name_Type68.to_string()); + CompleteStructHeader header_Type68; + header_Type68 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type68); + CompleteStructMemberSeq member_seq_Type68; + { + return_code_Type68 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type68); + + if (return_code_Type68 != 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_Type68.type_identifier1()._d() || TK_NONE == type_ids_Type68.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type68.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type68.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type68.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type68.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type68.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type68.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type68.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type68.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type68.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type68.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type68.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type68.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type68.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type68.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type68.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type68.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type68.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type68.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type68.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type68.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type68.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type68.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type68.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_Type68.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type68); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type68, member_index); + } + CompleteStructType struct_type_Type68 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type68, header_Type68, member_seq_Type68); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type68, type_name_Type68.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type68 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type68 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type68", type_ids_Type68); + if (return_code_Type68 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type68: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type69_type_identifier() +{ + { + StructTypeFlag struct_flags_Type69 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type69; + TypeIdentifierPair type_ids_Type69; + QualifiedTypeName type_name_Type69 = "Type69"; + eprosima::fastcdr::optional type_ann_builtin_Type69; + eprosima::fastcdr::optional ann_custom_Type69; + CompleteTypeDetail detail_Type69 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type69, ann_custom_Type69, type_name_Type69.to_string()); + CompleteStructHeader header_Type69; + header_Type69 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type69); + CompleteStructMemberSeq member_seq_Type69; + { + return_code_Type69 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type69); + + if (return_code_Type69 != 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_Type69.type_identifier1()._d() || TK_NONE == type_ids_Type69.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type69.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type69.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type69.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type69.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type69.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type69.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type69.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type69.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type69.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type69.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type69.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type69.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type69.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type69.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type69.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type69.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type69.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type69.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type69.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type69.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type69.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type69.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type69.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_Type69.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type69); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type69, member_index); + } + CompleteStructType struct_type_Type69 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type69, header_Type69, member_seq_Type69); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type69, type_name_Type69.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type69 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type69 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type69", type_ids_Type69); + if (return_code_Type69 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type69: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type70_type_identifier() +{ + { + StructTypeFlag struct_flags_Type70 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type70; + TypeIdentifierPair type_ids_Type70; + QualifiedTypeName type_name_Type70 = "Type70"; + eprosima::fastcdr::optional type_ann_builtin_Type70; + eprosima::fastcdr::optional ann_custom_Type70; + CompleteTypeDetail detail_Type70 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type70, ann_custom_Type70, type_name_Type70.to_string()); + CompleteStructHeader header_Type70; + header_Type70 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type70); + CompleteStructMemberSeq member_seq_Type70; + { + return_code_Type70 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type70); + + if (return_code_Type70 != 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_Type70.type_identifier1()._d() || TK_NONE == type_ids_Type70.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type70.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type70.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type70.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type70.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type70.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type70.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type70.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type70.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type70.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type70.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type70.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type70.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type70.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type70.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type70.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type70.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type70.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type70.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type70.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type70.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type70.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type70.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type70.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_Type70.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type70); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type70, member_index); + } + CompleteStructType struct_type_Type70 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type70, header_Type70, member_seq_Type70); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type70, type_name_Type70.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type70 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type70 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type70", type_ids_Type70); + if (return_code_Type70 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type70: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type71_type_identifier() +{ + { + StructTypeFlag struct_flags_Type71 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type71; + TypeIdentifierPair type_ids_Type71; + QualifiedTypeName type_name_Type71 = "Type71"; + eprosima::fastcdr::optional type_ann_builtin_Type71; + eprosima::fastcdr::optional ann_custom_Type71; + CompleteTypeDetail detail_Type71 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type71, ann_custom_Type71, type_name_Type71.to_string()); + CompleteStructHeader header_Type71; + header_Type71 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type71); + CompleteStructMemberSeq member_seq_Type71; + { + return_code_Type71 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type71); + + if (return_code_Type71 != 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_Type71.type_identifier1()._d() || TK_NONE == type_ids_Type71.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type71.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type71.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type71.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type71.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type71.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type71.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type71.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type71.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type71.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type71.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type71.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type71.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type71.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type71.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type71.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type71.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type71.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type71.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type71.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type71.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type71.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type71.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type71.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_Type71.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type71); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type71, member_index); + } + CompleteStructType struct_type_Type71 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type71, header_Type71, member_seq_Type71); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type71, type_name_Type71.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type71 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type71 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type71", type_ids_Type71); + if (return_code_Type71 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type71: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type72_type_identifier() +{ + { + StructTypeFlag struct_flags_Type72 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type72; + TypeIdentifierPair type_ids_Type72; + QualifiedTypeName type_name_Type72 = "Type72"; + eprosima::fastcdr::optional type_ann_builtin_Type72; + eprosima::fastcdr::optional ann_custom_Type72; + CompleteTypeDetail detail_Type72 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type72, ann_custom_Type72, type_name_Type72.to_string()); + CompleteStructHeader header_Type72; + header_Type72 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type72); + CompleteStructMemberSeq member_seq_Type72; + { + return_code_Type72 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type72); + + if (return_code_Type72 != 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_Type72.type_identifier1()._d() || TK_NONE == type_ids_Type72.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type72.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type72.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type72.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type72.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type72.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type72.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type72.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type72.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type72.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type72.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type72.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type72.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type72.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type72.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type72.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type72.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type72.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type72.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type72.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type72.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type72.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type72.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type72.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_Type72.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type72); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type72, member_index); + } + CompleteStructType struct_type_Type72 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type72, header_Type72, member_seq_Type72); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type72, type_name_Type72.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type72 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type72 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type72", type_ids_Type72); + if (return_code_Type72 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type72: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type73_type_identifier() +{ + { + StructTypeFlag struct_flags_Type73 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type73; + TypeIdentifierPair type_ids_Type73; + QualifiedTypeName type_name_Type73 = "Type73"; + eprosima::fastcdr::optional type_ann_builtin_Type73; + eprosima::fastcdr::optional ann_custom_Type73; + CompleteTypeDetail detail_Type73 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type73, ann_custom_Type73, type_name_Type73.to_string()); + CompleteStructHeader header_Type73; + header_Type73 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type73); + CompleteStructMemberSeq member_seq_Type73; + { + return_code_Type73 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type73); + + if (return_code_Type73 != 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_Type73.type_identifier1()._d() || TK_NONE == type_ids_Type73.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type73.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type73.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type73.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type73.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type73.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type73.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type73.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type73.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type73.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type73.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type73.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type73.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type73.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type73.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type73.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type73.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type73.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type73.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type73.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type73.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type73.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type73.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type73.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_Type73.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type73); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type73, member_index); + } + CompleteStructType struct_type_Type73 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type73, header_Type73, member_seq_Type73); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type73, type_name_Type73.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type73 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type73 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type73", type_ids_Type73); + if (return_code_Type73 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type73: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type74_type_identifier() +{ + { + StructTypeFlag struct_flags_Type74 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type74; + TypeIdentifierPair type_ids_Type74; + QualifiedTypeName type_name_Type74 = "Type74"; + eprosima::fastcdr::optional type_ann_builtin_Type74; + eprosima::fastcdr::optional ann_custom_Type74; + CompleteTypeDetail detail_Type74 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type74, ann_custom_Type74, type_name_Type74.to_string()); + CompleteStructHeader header_Type74; + header_Type74 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type74); + CompleteStructMemberSeq member_seq_Type74; + { + return_code_Type74 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type74); + + if (return_code_Type74 != 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_Type74.type_identifier1()._d() || TK_NONE == type_ids_Type74.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type74.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type74.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type74.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type74.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type74.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type74.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type74.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type74.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type74.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type74.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type74.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type74.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type74.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type74.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type74.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type74.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type74.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type74.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type74.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type74.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type74.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type74.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type74.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_Type74.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type74); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type74, member_index); + } + CompleteStructType struct_type_Type74 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type74, header_Type74, member_seq_Type74); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type74, type_name_Type74.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type74 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type74 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type74", type_ids_Type74); + if (return_code_Type74 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type74: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type75_type_identifier() +{ + { + StructTypeFlag struct_flags_Type75 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type75; + TypeIdentifierPair type_ids_Type75; + QualifiedTypeName type_name_Type75 = "Type75"; + eprosima::fastcdr::optional type_ann_builtin_Type75; + eprosima::fastcdr::optional ann_custom_Type75; + CompleteTypeDetail detail_Type75 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type75, ann_custom_Type75, type_name_Type75.to_string()); + CompleteStructHeader header_Type75; + header_Type75 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type75); + CompleteStructMemberSeq member_seq_Type75; + { + return_code_Type75 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type75); + + if (return_code_Type75 != 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_Type75.type_identifier1()._d() || TK_NONE == type_ids_Type75.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type75.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type75.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type75.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type75.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type75.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type75.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type75.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type75.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type75.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type75.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type75.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type75.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type75.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type75.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type75.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type75.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type75.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type75.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type75.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type75.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type75.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type75.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type75.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_Type75.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type75); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type75, member_index); + } + CompleteStructType struct_type_Type75 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type75, header_Type75, member_seq_Type75); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type75, type_name_Type75.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type75 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type75 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type75", type_ids_Type75); + if (return_code_Type75 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type75: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type76_type_identifier() +{ + { + StructTypeFlag struct_flags_Type76 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type76; + TypeIdentifierPair type_ids_Type76; + QualifiedTypeName type_name_Type76 = "Type76"; + eprosima::fastcdr::optional type_ann_builtin_Type76; + eprosima::fastcdr::optional ann_custom_Type76; + CompleteTypeDetail detail_Type76 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type76, ann_custom_Type76, type_name_Type76.to_string()); + CompleteStructHeader header_Type76; + header_Type76 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type76); + CompleteStructMemberSeq member_seq_Type76; + { + return_code_Type76 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type76); + + if (return_code_Type76 != 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_Type76.type_identifier1()._d() || TK_NONE == type_ids_Type76.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type76.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type76.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type76.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type76.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type76.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type76.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type76.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type76.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type76.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type76.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type76.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type76.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type76.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type76.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type76.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type76.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type76.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type76.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type76.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type76.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type76.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type76.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type76.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_Type76.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type76); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type76, member_index); + } + CompleteStructType struct_type_Type76 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type76, header_Type76, member_seq_Type76); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type76, type_name_Type76.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type76 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type76 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type76", type_ids_Type76); + if (return_code_Type76 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type76: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type77_type_identifier() +{ + { + StructTypeFlag struct_flags_Type77 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type77; + TypeIdentifierPair type_ids_Type77; + QualifiedTypeName type_name_Type77 = "Type77"; + eprosima::fastcdr::optional type_ann_builtin_Type77; + eprosima::fastcdr::optional ann_custom_Type77; + CompleteTypeDetail detail_Type77 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type77, ann_custom_Type77, type_name_Type77.to_string()); + CompleteStructHeader header_Type77; + header_Type77 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type77); + CompleteStructMemberSeq member_seq_Type77; + { + return_code_Type77 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type77); + + if (return_code_Type77 != 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_Type77.type_identifier1()._d() || TK_NONE == type_ids_Type77.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type77.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type77.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type77.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type77.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type77.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type77.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type77.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type77.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type77.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type77.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type77.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type77.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type77.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type77.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type77.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type77.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type77.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type77.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type77.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type77.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type77.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type77.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type77.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_Type77.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type77); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type77, member_index); + } + CompleteStructType struct_type_Type77 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type77, header_Type77, member_seq_Type77); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type77, type_name_Type77.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type77 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type77 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type77", type_ids_Type77); + if (return_code_Type77 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type77: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type78_type_identifier() +{ + { + StructTypeFlag struct_flags_Type78 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type78; + TypeIdentifierPair type_ids_Type78; + QualifiedTypeName type_name_Type78 = "Type78"; + eprosima::fastcdr::optional type_ann_builtin_Type78; + eprosima::fastcdr::optional ann_custom_Type78; + CompleteTypeDetail detail_Type78 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type78, ann_custom_Type78, type_name_Type78.to_string()); + CompleteStructHeader header_Type78; + header_Type78 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type78); + CompleteStructMemberSeq member_seq_Type78; + { + return_code_Type78 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type78); + + if (return_code_Type78 != 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_Type78.type_identifier1()._d() || TK_NONE == type_ids_Type78.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type78.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type78.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type78.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type78.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type78.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type78.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type78.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type78.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type78.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type78.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type78.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type78.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type78.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type78.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type78.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type78.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type78.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type78.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type78.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type78.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type78.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type78.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type78.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_Type78.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type78); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type78, member_index); + } + CompleteStructType struct_type_Type78 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type78, header_Type78, member_seq_Type78); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type78, type_name_Type78.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type78 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type78 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type78", type_ids_Type78); + if (return_code_Type78 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type78: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type79_type_identifier() +{ + { + StructTypeFlag struct_flags_Type79 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type79; + TypeIdentifierPair type_ids_Type79; + QualifiedTypeName type_name_Type79 = "Type79"; + eprosima::fastcdr::optional type_ann_builtin_Type79; + eprosima::fastcdr::optional ann_custom_Type79; + CompleteTypeDetail detail_Type79 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type79, ann_custom_Type79, type_name_Type79.to_string()); + CompleteStructHeader header_Type79; + header_Type79 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type79); + CompleteStructMemberSeq member_seq_Type79; + { + return_code_Type79 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type79); + + if (return_code_Type79 != 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_Type79.type_identifier1()._d() || TK_NONE == type_ids_Type79.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type79.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type79.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type79.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type79.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type79.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type79.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type79.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type79.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type79.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type79.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type79.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type79.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type79.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type79.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type79.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type79.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type79.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type79.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type79.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type79.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type79.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type79.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type79.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_Type79.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type79); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type79, member_index); + } + CompleteStructType struct_type_Type79 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type79, header_Type79, member_seq_Type79); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type79, type_name_Type79.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type79 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type79 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type79", type_ids_Type79); + if (return_code_Type79 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type79: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type80_type_identifier() +{ + { + StructTypeFlag struct_flags_Type80 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type80; + TypeIdentifierPair type_ids_Type80; + QualifiedTypeName type_name_Type80 = "Type80"; + eprosima::fastcdr::optional type_ann_builtin_Type80; + eprosima::fastcdr::optional ann_custom_Type80; + CompleteTypeDetail detail_Type80 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type80, ann_custom_Type80, type_name_Type80.to_string()); + CompleteStructHeader header_Type80; + header_Type80 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type80); + CompleteStructMemberSeq member_seq_Type80; + { + return_code_Type80 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type80); + + if (return_code_Type80 != 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_Type80.type_identifier1()._d() || TK_NONE == type_ids_Type80.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type80.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type80.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type80.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type80.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type80.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type80.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type80.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type80.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type80.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type80.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type80.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type80.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type80.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type80.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type80.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type80.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type80.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type80.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type80.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type80.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type80.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type80.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type80.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_Type80.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type80); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type80, member_index); + } + CompleteStructType struct_type_Type80 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type80, header_Type80, member_seq_Type80); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type80, type_name_Type80.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type80 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type80 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type80", type_ids_Type80); + if (return_code_Type80 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type80: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type81_type_identifier() +{ + { + StructTypeFlag struct_flags_Type81 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type81; + TypeIdentifierPair type_ids_Type81; + QualifiedTypeName type_name_Type81 = "Type81"; + eprosima::fastcdr::optional type_ann_builtin_Type81; + eprosima::fastcdr::optional ann_custom_Type81; + CompleteTypeDetail detail_Type81 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type81, ann_custom_Type81, type_name_Type81.to_string()); + CompleteStructHeader header_Type81; + header_Type81 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type81); + CompleteStructMemberSeq member_seq_Type81; + { + return_code_Type81 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type81); + + if (return_code_Type81 != 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_Type81.type_identifier1()._d() || TK_NONE == type_ids_Type81.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type81.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type81.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type81.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type81.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type81.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type81.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type81.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type81.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type81.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type81.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type81.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type81.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type81.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type81.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type81.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type81.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type81.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type81.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type81.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type81.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type81.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type81.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type81.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_Type81.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type81); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type81, member_index); + } + CompleteStructType struct_type_Type81 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type81, header_Type81, member_seq_Type81); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type81, type_name_Type81.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type81 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type81 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type81", type_ids_Type81); + if (return_code_Type81 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type81: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type82_type_identifier() +{ + { + StructTypeFlag struct_flags_Type82 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type82; + TypeIdentifierPair type_ids_Type82; + QualifiedTypeName type_name_Type82 = "Type82"; + eprosima::fastcdr::optional type_ann_builtin_Type82; + eprosima::fastcdr::optional ann_custom_Type82; + CompleteTypeDetail detail_Type82 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type82, ann_custom_Type82, type_name_Type82.to_string()); + CompleteStructHeader header_Type82; + header_Type82 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type82); + CompleteStructMemberSeq member_seq_Type82; + { + return_code_Type82 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type82); + + if (return_code_Type82 != 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_Type82.type_identifier1()._d() || TK_NONE == type_ids_Type82.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type82.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type82.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type82.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type82.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type82.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type82.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type82.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type82.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type82.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type82.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type82.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type82.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type82.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type82.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type82.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type82.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type82.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type82.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type82.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type82.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type82.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type82.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type82.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_Type82.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type82); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type82, member_index); + } + CompleteStructType struct_type_Type82 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type82, header_Type82, member_seq_Type82); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type82, type_name_Type82.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type82 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type82 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type82", type_ids_Type82); + if (return_code_Type82 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type82: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type83_type_identifier() +{ + { + StructTypeFlag struct_flags_Type83 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type83; + TypeIdentifierPair type_ids_Type83; + QualifiedTypeName type_name_Type83 = "Type83"; + eprosima::fastcdr::optional type_ann_builtin_Type83; + eprosima::fastcdr::optional ann_custom_Type83; + CompleteTypeDetail detail_Type83 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type83, ann_custom_Type83, type_name_Type83.to_string()); + CompleteStructHeader header_Type83; + header_Type83 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type83); + CompleteStructMemberSeq member_seq_Type83; + { + return_code_Type83 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type83); + + if (return_code_Type83 != 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_Type83.type_identifier1()._d() || TK_NONE == type_ids_Type83.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type83.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type83.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type83.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type83.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type83.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type83.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type83.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type83.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type83.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type83.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type83.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type83.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type83.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type83.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type83.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type83.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type83.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type83.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type83.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type83.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type83.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type83.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type83.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_Type83.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type83); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type83, member_index); + } + CompleteStructType struct_type_Type83 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type83, header_Type83, member_seq_Type83); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type83, type_name_Type83.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type83 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type83 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type83", type_ids_Type83); + if (return_code_Type83 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type83: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type84_type_identifier() +{ + { + StructTypeFlag struct_flags_Type84 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type84; + TypeIdentifierPair type_ids_Type84; + QualifiedTypeName type_name_Type84 = "Type84"; + eprosima::fastcdr::optional type_ann_builtin_Type84; + eprosima::fastcdr::optional ann_custom_Type84; + CompleteTypeDetail detail_Type84 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type84, ann_custom_Type84, type_name_Type84.to_string()); + CompleteStructHeader header_Type84; + header_Type84 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type84); + CompleteStructMemberSeq member_seq_Type84; + { + return_code_Type84 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type84); + + if (return_code_Type84 != 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_Type84.type_identifier1()._d() || TK_NONE == type_ids_Type84.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type84.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type84.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type84.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type84.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type84.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type84.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type84.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type84.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type84.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type84.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type84.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type84.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type84.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type84.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type84.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type84.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type84.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type84.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type84.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type84.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type84.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type84.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type84.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_Type84.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type84); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type84, member_index); + } + CompleteStructType struct_type_Type84 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type84, header_Type84, member_seq_Type84); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type84, type_name_Type84.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type84 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type84 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type84", type_ids_Type84); + if (return_code_Type84 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type84: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type85_type_identifier() +{ + { + StructTypeFlag struct_flags_Type85 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type85; + TypeIdentifierPair type_ids_Type85; + QualifiedTypeName type_name_Type85 = "Type85"; + eprosima::fastcdr::optional type_ann_builtin_Type85; + eprosima::fastcdr::optional ann_custom_Type85; + CompleteTypeDetail detail_Type85 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type85, ann_custom_Type85, type_name_Type85.to_string()); + CompleteStructHeader header_Type85; + header_Type85 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type85); + CompleteStructMemberSeq member_seq_Type85; + { + return_code_Type85 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type85); + + if (return_code_Type85 != 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_Type85.type_identifier1()._d() || TK_NONE == type_ids_Type85.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type85.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type85.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type85.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type85.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type85.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type85.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type85.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type85.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type85.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type85.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type85.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type85.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type85.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type85.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type85.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type85.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type85.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type85.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type85.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type85.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type85.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type85.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type85.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_Type85.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type85); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type85, member_index); + } + CompleteStructType struct_type_Type85 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type85, header_Type85, member_seq_Type85); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type85, type_name_Type85.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type85 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type85 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type85", type_ids_Type85); + if (return_code_Type85 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type85: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type86_type_identifier() +{ + { + StructTypeFlag struct_flags_Type86 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type86; + TypeIdentifierPair type_ids_Type86; + QualifiedTypeName type_name_Type86 = "Type86"; + eprosima::fastcdr::optional type_ann_builtin_Type86; + eprosima::fastcdr::optional ann_custom_Type86; + CompleteTypeDetail detail_Type86 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type86, ann_custom_Type86, type_name_Type86.to_string()); + CompleteStructHeader header_Type86; + header_Type86 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type86); + CompleteStructMemberSeq member_seq_Type86; + { + return_code_Type86 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type86); + + if (return_code_Type86 != 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_Type86.type_identifier1()._d() || TK_NONE == type_ids_Type86.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type86.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type86.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type86.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type86.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type86.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type86.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type86.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type86.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type86.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type86.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type86.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type86.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type86.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type86.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type86.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type86.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type86.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type86.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type86.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type86.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type86.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type86.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type86.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_Type86.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type86); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type86, member_index); + } + CompleteStructType struct_type_Type86 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type86, header_Type86, member_seq_Type86); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type86, type_name_Type86.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type86 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type86 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type86", type_ids_Type86); + if (return_code_Type86 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type86: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type87_type_identifier() +{ + { + StructTypeFlag struct_flags_Type87 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type87; + TypeIdentifierPair type_ids_Type87; + QualifiedTypeName type_name_Type87 = "Type87"; + eprosima::fastcdr::optional type_ann_builtin_Type87; + eprosima::fastcdr::optional ann_custom_Type87; + CompleteTypeDetail detail_Type87 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type87, ann_custom_Type87, type_name_Type87.to_string()); + CompleteStructHeader header_Type87; + header_Type87 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type87); + CompleteStructMemberSeq member_seq_Type87; + { + return_code_Type87 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type87); + + if (return_code_Type87 != 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_Type87.type_identifier1()._d() || TK_NONE == type_ids_Type87.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type87.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type87.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type87.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type87.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type87.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type87.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type87.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type87.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type87.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type87.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type87.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type87.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type87.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type87.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type87.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type87.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type87.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type87.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type87.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type87.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type87.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type87.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type87.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_Type87.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type87); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type87, member_index); + } + CompleteStructType struct_type_Type87 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type87, header_Type87, member_seq_Type87); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type87, type_name_Type87.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type87 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type87 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type87", type_ids_Type87); + if (return_code_Type87 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type87: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type88_type_identifier() +{ + { + StructTypeFlag struct_flags_Type88 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type88; + TypeIdentifierPair type_ids_Type88; + QualifiedTypeName type_name_Type88 = "Type88"; + eprosima::fastcdr::optional type_ann_builtin_Type88; + eprosima::fastcdr::optional ann_custom_Type88; + CompleteTypeDetail detail_Type88 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type88, ann_custom_Type88, type_name_Type88.to_string()); + CompleteStructHeader header_Type88; + header_Type88 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type88); + CompleteStructMemberSeq member_seq_Type88; + { + return_code_Type88 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type88); + + if (return_code_Type88 != 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_Type88.type_identifier1()._d() || TK_NONE == type_ids_Type88.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type88.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type88.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type88.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type88.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type88.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type88.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type88.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type88.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type88.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type88.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type88.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type88.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type88.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type88.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type88.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type88.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type88.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type88.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type88.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type88.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type88.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type88.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type88.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_Type88.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type88); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type88, member_index); + } + CompleteStructType struct_type_Type88 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type88, header_Type88, member_seq_Type88); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type88, type_name_Type88.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type88 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type88 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type88", type_ids_Type88); + if (return_code_Type88 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type88: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type89_type_identifier() +{ + { + StructTypeFlag struct_flags_Type89 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type89; + TypeIdentifierPair type_ids_Type89; + QualifiedTypeName type_name_Type89 = "Type89"; + eprosima::fastcdr::optional type_ann_builtin_Type89; + eprosima::fastcdr::optional ann_custom_Type89; + CompleteTypeDetail detail_Type89 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type89, ann_custom_Type89, type_name_Type89.to_string()); + CompleteStructHeader header_Type89; + header_Type89 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type89); + CompleteStructMemberSeq member_seq_Type89; + { + return_code_Type89 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type89); + + if (return_code_Type89 != 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_Type89.type_identifier1()._d() || TK_NONE == type_ids_Type89.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type89.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type89.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type89.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type89.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type89.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type89.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type89.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type89.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type89.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type89.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type89.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type89.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type89.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type89.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type89.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type89.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type89.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type89.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type89.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type89.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type89.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type89.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type89.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_Type89.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type89); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type89, member_index); + } + CompleteStructType struct_type_Type89 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type89, header_Type89, member_seq_Type89); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type89, type_name_Type89.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type89 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type89 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type89", type_ids_Type89); + if (return_code_Type89 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type89: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type90_type_identifier() +{ + { + StructTypeFlag struct_flags_Type90 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type90; + TypeIdentifierPair type_ids_Type90; + QualifiedTypeName type_name_Type90 = "Type90"; + eprosima::fastcdr::optional type_ann_builtin_Type90; + eprosima::fastcdr::optional ann_custom_Type90; + CompleteTypeDetail detail_Type90 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type90, ann_custom_Type90, type_name_Type90.to_string()); + CompleteStructHeader header_Type90; + header_Type90 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type90); + CompleteStructMemberSeq member_seq_Type90; + { + return_code_Type90 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type90); + + if (return_code_Type90 != 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_Type90.type_identifier1()._d() || TK_NONE == type_ids_Type90.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type90.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type90.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type90.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type90.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type90.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type90.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type90.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type90.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type90.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type90.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type90.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type90.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type90.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type90.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type90.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type90.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type90.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type90.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type90.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type90.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type90.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type90.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type90.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_Type90.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type90); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type90, member_index); + } + CompleteStructType struct_type_Type90 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type90, header_Type90, member_seq_Type90); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type90, type_name_Type90.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type90 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type90 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type90", type_ids_Type90); + if (return_code_Type90 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type90: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type91_type_identifier() +{ + { + StructTypeFlag struct_flags_Type91 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type91; + TypeIdentifierPair type_ids_Type91; + QualifiedTypeName type_name_Type91 = "Type91"; + eprosima::fastcdr::optional type_ann_builtin_Type91; + eprosima::fastcdr::optional ann_custom_Type91; + CompleteTypeDetail detail_Type91 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type91, ann_custom_Type91, type_name_Type91.to_string()); + CompleteStructHeader header_Type91; + header_Type91 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type91); + CompleteStructMemberSeq member_seq_Type91; + { + return_code_Type91 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type91); + + if (return_code_Type91 != 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_Type91.type_identifier1()._d() || TK_NONE == type_ids_Type91.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type91.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type91.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type91.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type91.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type91.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type91.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type91.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type91.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type91.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type91.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type91.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type91.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type91.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type91.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type91.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type91.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type91.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type91.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type91.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type91.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type91.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type91.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type91.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_Type91.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type91); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type91, member_index); + } + CompleteStructType struct_type_Type91 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type91, header_Type91, member_seq_Type91); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type91, type_name_Type91.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type91 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type91 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type91", type_ids_Type91); + if (return_code_Type91 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type91: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type92_type_identifier() +{ + { + StructTypeFlag struct_flags_Type92 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type92; + TypeIdentifierPair type_ids_Type92; + QualifiedTypeName type_name_Type92 = "Type92"; + eprosima::fastcdr::optional type_ann_builtin_Type92; + eprosima::fastcdr::optional ann_custom_Type92; + CompleteTypeDetail detail_Type92 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type92, ann_custom_Type92, type_name_Type92.to_string()); + CompleteStructHeader header_Type92; + header_Type92 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type92); + CompleteStructMemberSeq member_seq_Type92; + { + return_code_Type92 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type92); + + if (return_code_Type92 != 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_Type92.type_identifier1()._d() || TK_NONE == type_ids_Type92.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type92.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type92.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type92.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type92.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type92.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type92.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type92.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type92.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type92.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type92.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type92.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type92.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type92.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type92.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type92.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type92.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type92.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type92.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type92.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type92.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type92.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type92.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type92.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_Type92.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type92); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type92, member_index); + } + CompleteStructType struct_type_Type92 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type92, header_Type92, member_seq_Type92); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type92, type_name_Type92.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type92 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type92 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type92", type_ids_Type92); + if (return_code_Type92 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type92: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type93_type_identifier() +{ + { + StructTypeFlag struct_flags_Type93 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type93; + TypeIdentifierPair type_ids_Type93; + QualifiedTypeName type_name_Type93 = "Type93"; + eprosima::fastcdr::optional type_ann_builtin_Type93; + eprosima::fastcdr::optional ann_custom_Type93; + CompleteTypeDetail detail_Type93 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type93, ann_custom_Type93, type_name_Type93.to_string()); + CompleteStructHeader header_Type93; + header_Type93 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type93); + CompleteStructMemberSeq member_seq_Type93; + { + return_code_Type93 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type93); + + if (return_code_Type93 != 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_Type93.type_identifier1()._d() || TK_NONE == type_ids_Type93.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type93.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type93.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type93.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type93.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type93.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type93.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type93.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type93.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type93.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type93.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type93.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type93.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type93.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type93.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type93.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type93.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type93.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type93.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type93.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type93.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type93.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type93.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type93.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_Type93.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type93); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type93, member_index); + } + CompleteStructType struct_type_Type93 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type93, header_Type93, member_seq_Type93); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type93, type_name_Type93.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type93 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type93 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type93", type_ids_Type93); + if (return_code_Type93 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type93: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type94_type_identifier() +{ + { + StructTypeFlag struct_flags_Type94 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type94; + TypeIdentifierPair type_ids_Type94; + QualifiedTypeName type_name_Type94 = "Type94"; + eprosima::fastcdr::optional type_ann_builtin_Type94; + eprosima::fastcdr::optional ann_custom_Type94; + CompleteTypeDetail detail_Type94 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type94, ann_custom_Type94, type_name_Type94.to_string()); + CompleteStructHeader header_Type94; + header_Type94 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type94); + CompleteStructMemberSeq member_seq_Type94; + { + return_code_Type94 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type94); + + if (return_code_Type94 != 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_Type94.type_identifier1()._d() || TK_NONE == type_ids_Type94.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type94.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type94.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type94.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type94.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type94.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type94.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type94.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type94.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type94.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type94.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type94.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type94.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type94.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type94.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type94.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type94.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type94.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type94.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type94.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type94.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type94.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type94.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type94.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_Type94.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type94); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type94, member_index); + } + CompleteStructType struct_type_Type94 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type94, header_Type94, member_seq_Type94); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type94, type_name_Type94.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type94 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type94 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type94", type_ids_Type94); + if (return_code_Type94 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type94: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type95_type_identifier() +{ + { + StructTypeFlag struct_flags_Type95 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type95; + TypeIdentifierPair type_ids_Type95; + QualifiedTypeName type_name_Type95 = "Type95"; + eprosima::fastcdr::optional type_ann_builtin_Type95; + eprosima::fastcdr::optional ann_custom_Type95; + CompleteTypeDetail detail_Type95 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type95, ann_custom_Type95, type_name_Type95.to_string()); + CompleteStructHeader header_Type95; + header_Type95 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type95); + CompleteStructMemberSeq member_seq_Type95; + { + return_code_Type95 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type95); + + if (return_code_Type95 != 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_Type95.type_identifier1()._d() || TK_NONE == type_ids_Type95.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type95.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type95.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type95.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type95.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type95.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type95.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type95.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type95.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type95.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type95.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type95.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type95.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type95.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type95.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type95.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type95.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type95.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type95.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type95.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type95.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type95.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type95.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type95.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_Type95.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type95); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type95, member_index); + } + CompleteStructType struct_type_Type95 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type95, header_Type95, member_seq_Type95); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type95, type_name_Type95.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type95 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type95 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type95", type_ids_Type95); + if (return_code_Type95 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type95: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type96_type_identifier() +{ + { + StructTypeFlag struct_flags_Type96 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type96; + TypeIdentifierPair type_ids_Type96; + QualifiedTypeName type_name_Type96 = "Type96"; + eprosima::fastcdr::optional type_ann_builtin_Type96; + eprosima::fastcdr::optional ann_custom_Type96; + CompleteTypeDetail detail_Type96 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type96, ann_custom_Type96, type_name_Type96.to_string()); + CompleteStructHeader header_Type96; + header_Type96 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type96); + CompleteStructMemberSeq member_seq_Type96; + { + return_code_Type96 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type96); + + if (return_code_Type96 != 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_Type96.type_identifier1()._d() || TK_NONE == type_ids_Type96.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type96.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type96.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type96.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type96.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type96.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type96.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type96.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type96.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type96.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type96.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type96.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type96.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type96.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type96.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type96.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type96.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type96.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type96.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type96.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type96.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type96.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type96.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type96.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_Type96.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type96); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type96, member_index); + } + CompleteStructType struct_type_Type96 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type96, header_Type96, member_seq_Type96); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type96, type_name_Type96.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type96 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type96 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type96", type_ids_Type96); + if (return_code_Type96 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type96: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type97_type_identifier() +{ + { + StructTypeFlag struct_flags_Type97 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type97; + TypeIdentifierPair type_ids_Type97; + QualifiedTypeName type_name_Type97 = "Type97"; + eprosima::fastcdr::optional type_ann_builtin_Type97; + eprosima::fastcdr::optional ann_custom_Type97; + CompleteTypeDetail detail_Type97 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type97, ann_custom_Type97, type_name_Type97.to_string()); + CompleteStructHeader header_Type97; + header_Type97 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type97); + CompleteStructMemberSeq member_seq_Type97; + { + return_code_Type97 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type97); + + if (return_code_Type97 != 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_Type97.type_identifier1()._d() || TK_NONE == type_ids_Type97.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type97.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type97.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type97.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type97.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type97.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type97.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type97.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type97.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type97.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type97.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type97.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type97.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type97.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type97.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type97.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type97.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type97.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type97.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type97.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type97.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type97.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type97.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type97.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_Type97.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type97); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type97, member_index); + } + CompleteStructType struct_type_Type97 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type97, header_Type97, member_seq_Type97); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type97, type_name_Type97.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type97 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type97 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type97", type_ids_Type97); + if (return_code_Type97 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type97: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type98_type_identifier() +{ + { + StructTypeFlag struct_flags_Type98 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type98; + TypeIdentifierPair type_ids_Type98; + QualifiedTypeName type_name_Type98 = "Type98"; + eprosima::fastcdr::optional type_ann_builtin_Type98; + eprosima::fastcdr::optional ann_custom_Type98; + CompleteTypeDetail detail_Type98 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type98, ann_custom_Type98, type_name_Type98.to_string()); + CompleteStructHeader header_Type98; + header_Type98 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type98); + CompleteStructMemberSeq member_seq_Type98; + { + return_code_Type98 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type98); + + if (return_code_Type98 != 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_Type98.type_identifier1()._d() || TK_NONE == type_ids_Type98.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type98.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type98.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type98.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type98.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type98.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type98.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type98.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type98.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type98.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type98.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type98.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type98.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type98.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type98.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type98.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type98.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type98.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type98.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type98.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type98.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type98.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type98.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type98.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_Type98.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type98); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type98, member_index); + } + CompleteStructType struct_type_Type98 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type98, header_Type98, member_seq_Type98); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type98, type_name_Type98.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type98 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type98 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type98", type_ids_Type98); + if (return_code_Type98 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type98: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type99_type_identifier() +{ + { + StructTypeFlag struct_flags_Type99 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type99; + TypeIdentifierPair type_ids_Type99; + QualifiedTypeName type_name_Type99 = "Type99"; + eprosima::fastcdr::optional type_ann_builtin_Type99; + eprosima::fastcdr::optional ann_custom_Type99; + CompleteTypeDetail detail_Type99 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type99, ann_custom_Type99, type_name_Type99.to_string()); + CompleteStructHeader header_Type99; + header_Type99 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type99); + CompleteStructMemberSeq member_seq_Type99; + { + return_code_Type99 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type99); + + if (return_code_Type99 != 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_Type99.type_identifier1()._d() || TK_NONE == type_ids_Type99.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type99.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type99.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type99.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type99.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type99.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type99.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type99.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type99.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type99.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type99.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type99.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type99.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type99.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type99.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type99.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type99.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type99.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type99.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type99.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type99.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type99.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type99.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type99.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_Type99.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type99); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type99, member_index); + } + CompleteStructType struct_type_Type99 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type99, header_Type99, member_seq_Type99); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type99, type_name_Type99.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type99 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type99 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type99", type_ids_Type99); + if (return_code_Type99 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type99: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_Type100_type_identifier() +{ + { + StructTypeFlag struct_flags_Type100 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type100; + TypeIdentifierPair type_ids_Type100; + QualifiedTypeName type_name_Type100 = "Type100"; + eprosima::fastcdr::optional type_ann_builtin_Type100; + eprosima::fastcdr::optional ann_custom_Type100; + CompleteTypeDetail detail_Type100 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type100, ann_custom_Type100, type_name_Type100.to_string()); + CompleteStructHeader header_Type100; + header_Type100 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type100); + CompleteStructMemberSeq member_seq_Type100; + { + return_code_Type100 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type100); + + if (return_code_Type100 != 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_Type100.type_identifier1()._d() || TK_NONE == type_ids_Type100.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type100.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type100.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type100.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type100.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type100.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type100.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type100.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type100.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type100.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type100.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type100.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type100.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type100.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type100.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type100.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type100.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type100.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type100.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type100.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type100.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type100.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type100.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type100.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_Type100.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type100); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type100, member_index); + } + CompleteStructType struct_type_Type100 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type100, header_Type100, member_seq_Type100); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type100, type_name_Type100.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type100 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type100 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type100", type_ids_Type100); + if (return_code_Type100 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type100: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_TypeBig_type_identifier() +{ + { + StructTypeFlag struct_flags_TypeBig = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_TypeBig; + TypeIdentifierPair type_ids_TypeBig; + QualifiedTypeName type_name_TypeBig = "TypeBig"; + eprosima::fastcdr::optional type_ann_builtin_TypeBig; + eprosima::fastcdr::optional ann_custom_TypeBig; + CompleteTypeDetail detail_TypeBig = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeBig, ann_custom_TypeBig, type_name_TypeBig.to_string()); + CompleteStructHeader header_TypeBig; + header_TypeBig = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeBig); + CompleteStructMemberSeq member_seq_TypeBig; + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_TypeBig); + + if (return_code_TypeBig != 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_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_TypeBig.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_TypeBig.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_TypeBig); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_index); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type1; + TypeIdentifierPair type_ids_Type1; + QualifiedTypeName type_name_Type1 = "Type1"; + eprosima::fastcdr::optional type_ann_builtin_Type1; + eprosima::fastcdr::optional ann_custom_Type1; + CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); + CompleteStructHeader header_Type1; + header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); + CompleteStructMemberSeq member_seq_Type1; + { + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type1); + + if (return_code_Type1 != 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.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_Type1.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); + } + CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_Type1); + if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep1; + MemberId member_id_dep1 = 0x00000001; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep1 = TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep1 = TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep1 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep1 = "dep1"; + eprosima::fastcdr::optional member_ann_builtin_dep1; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep1 = TypeObjectUtils::build_complete_member_detail(name_dep1, member_ann_builtin_dep1, ann_custom_TypeBig); + CompleteStructMember member_dep1 = TypeObjectUtils::build_complete_struct_member(common_dep1, detail_dep1); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep1); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type2; + TypeIdentifierPair type_ids_Type2; + QualifiedTypeName type_name_Type2 = "Type2"; + eprosima::fastcdr::optional type_ann_builtin_Type2; + eprosima::fastcdr::optional ann_custom_Type2; + CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); + CompleteStructHeader header_Type2; + header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); + CompleteStructMemberSeq member_seq_Type2; + { + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_Type2); + + if (return_code_Type2 != 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.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_Type2.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); + } + CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_Type2); + if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep2; + MemberId member_id_dep2 = 0x00000002; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep2 = TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep2 = TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep2 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep2 = "dep2"; + eprosima::fastcdr::optional member_ann_builtin_dep2; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep2 = TypeObjectUtils::build_complete_member_detail(name_dep2, member_ann_builtin_dep2, ann_custom_TypeBig); + CompleteStructMember member_dep2 = TypeObjectUtils::build_complete_struct_member(common_dep2, detail_dep2); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep2); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type3; + TypeIdentifierPair type_ids_Type3; + QualifiedTypeName type_name_Type3 = "Type3"; + eprosima::fastcdr::optional type_ann_builtin_Type3; + eprosima::fastcdr::optional ann_custom_Type3; + CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); + CompleteStructHeader header_Type3; + header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); + CompleteStructMemberSeq member_seq_Type3; + { + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_Type3); + + if (return_code_Type3 != 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_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.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_Type3.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); + } + CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type3 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_Type3); + if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep3; + MemberId member_id_dep3 = 0x00000003; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep3 = TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep3 = TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep3 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep3 = "dep3"; + eprosima::fastcdr::optional member_ann_builtin_dep3; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep3 = TypeObjectUtils::build_complete_member_detail(name_dep3, member_ann_builtin_dep3, ann_custom_TypeBig); + CompleteStructMember member_dep3 = TypeObjectUtils::build_complete_struct_member(common_dep3, detail_dep3); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep3); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type4", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type4 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type4; + TypeIdentifierPair type_ids_Type4; + QualifiedTypeName type_name_Type4 = "Type4"; + eprosima::fastcdr::optional type_ann_builtin_Type4; + eprosima::fastcdr::optional ann_custom_Type4; + CompleteTypeDetail detail_Type4 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type4, ann_custom_Type4, type_name_Type4.to_string()); + CompleteStructHeader header_Type4; + header_Type4 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type4); + CompleteStructMemberSeq member_seq_Type4; + { + return_code_Type4 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type4); + + if (return_code_Type4 != 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_Type4.type_identifier1()._d() || TK_NONE == type_ids_Type4.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type4.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type4.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type4.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type4.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type4.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type4.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type4.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type4.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type4.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type4.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type4.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type4.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type4.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type4.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type4.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type4.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type4.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type4.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type4.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type4.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type4.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type4.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type4.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type4.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_Type4.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type4); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type4, member_index); + } + CompleteStructType struct_type_Type4 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type4, header_Type4, member_seq_Type4); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type4, type_name_Type4.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type4 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type4 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type4", type_ids_Type4); + if (return_code_Type4 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type4: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep4 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep4; + MemberId member_id_dep4 = 0x00000004; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep4 = TypeObjectUtils::build_common_struct_member(member_id_dep4, member_flags_dep4, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep4 = TypeObjectUtils::build_common_struct_member(member_id_dep4, member_flags_dep4, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep4 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep4 = "dep4"; + eprosima::fastcdr::optional member_ann_builtin_dep4; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep4 = TypeObjectUtils::build_complete_member_detail(name_dep4, member_ann_builtin_dep4, ann_custom_TypeBig); + CompleteStructMember member_dep4 = TypeObjectUtils::build_complete_struct_member(common_dep4, detail_dep4); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep4); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type5", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type5 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type5; + TypeIdentifierPair type_ids_Type5; + QualifiedTypeName type_name_Type5 = "Type5"; + eprosima::fastcdr::optional type_ann_builtin_Type5; + eprosima::fastcdr::optional ann_custom_Type5; + CompleteTypeDetail detail_Type5 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type5, ann_custom_Type5, type_name_Type5.to_string()); + CompleteStructHeader header_Type5; + header_Type5 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type5); + CompleteStructMemberSeq member_seq_Type5; + { + return_code_Type5 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type5); + + if (return_code_Type5 != 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_Type5.type_identifier1()._d() || TK_NONE == type_ids_Type5.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type5.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type5.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type5.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type5.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type5.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type5.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type5.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type5.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type5.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type5.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type5.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type5.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type5.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type5.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type5.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type5.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type5.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type5.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type5.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type5.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type5.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type5.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type5.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type5.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_Type5.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type5); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type5, member_index); + } + CompleteStructType struct_type_Type5 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type5, header_Type5, member_seq_Type5); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type5, type_name_Type5.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type5 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type5 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type5", type_ids_Type5); + if (return_code_Type5 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type5: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep5 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep5; + MemberId member_id_dep5 = 0x00000005; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep5 = TypeObjectUtils::build_common_struct_member(member_id_dep5, member_flags_dep5, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep5 = TypeObjectUtils::build_common_struct_member(member_id_dep5, member_flags_dep5, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep5 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep5 = "dep5"; + eprosima::fastcdr::optional member_ann_builtin_dep5; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep5 = TypeObjectUtils::build_complete_member_detail(name_dep5, member_ann_builtin_dep5, ann_custom_TypeBig); + CompleteStructMember member_dep5 = TypeObjectUtils::build_complete_struct_member(common_dep5, detail_dep5); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep5); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type6", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type6 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type6; + TypeIdentifierPair type_ids_Type6; + QualifiedTypeName type_name_Type6 = "Type6"; + eprosima::fastcdr::optional type_ann_builtin_Type6; + eprosima::fastcdr::optional ann_custom_Type6; + CompleteTypeDetail detail_Type6 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type6, ann_custom_Type6, type_name_Type6.to_string()); + CompleteStructHeader header_Type6; + header_Type6 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type6); + CompleteStructMemberSeq member_seq_Type6; + { + return_code_Type6 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type6); + + if (return_code_Type6 != 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_Type6.type_identifier1()._d() || TK_NONE == type_ids_Type6.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type6.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type6.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type6.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type6.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type6.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type6.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type6.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type6.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type6.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type6.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type6.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type6.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type6.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type6.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type6.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type6.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type6.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type6.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type6.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type6.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type6.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type6.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type6.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type6.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_Type6.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type6); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type6, member_index); + } + CompleteStructType struct_type_Type6 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type6, header_Type6, member_seq_Type6); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type6, type_name_Type6.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type6 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type6 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type6", type_ids_Type6); + if (return_code_Type6 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type6: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep6 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep6; + MemberId member_id_dep6 = 0x00000006; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep6 = TypeObjectUtils::build_common_struct_member(member_id_dep6, member_flags_dep6, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep6 = TypeObjectUtils::build_common_struct_member(member_id_dep6, member_flags_dep6, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep6 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep6 = "dep6"; + eprosima::fastcdr::optional member_ann_builtin_dep6; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep6 = TypeObjectUtils::build_complete_member_detail(name_dep6, member_ann_builtin_dep6, ann_custom_TypeBig); + CompleteStructMember member_dep6 = TypeObjectUtils::build_complete_struct_member(common_dep6, detail_dep6); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep6); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type7", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type7 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type7; + TypeIdentifierPair type_ids_Type7; + QualifiedTypeName type_name_Type7 = "Type7"; + eprosima::fastcdr::optional type_ann_builtin_Type7; + eprosima::fastcdr::optional ann_custom_Type7; + CompleteTypeDetail detail_Type7 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type7, ann_custom_Type7, type_name_Type7.to_string()); + CompleteStructHeader header_Type7; + header_Type7 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type7); + CompleteStructMemberSeq member_seq_Type7; + { + return_code_Type7 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type7); + + if (return_code_Type7 != 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_Type7.type_identifier1()._d() || TK_NONE == type_ids_Type7.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type7.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type7.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type7.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type7.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type7.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type7.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type7.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type7.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type7.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type7.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type7.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type7.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type7.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type7.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type7.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type7.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type7.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type7.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type7.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type7.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type7.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type7.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type7.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type7.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_Type7.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type7); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type7, member_index); + } + CompleteStructType struct_type_Type7 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type7, header_Type7, member_seq_Type7); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type7, type_name_Type7.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type7 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type7 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type7", type_ids_Type7); + if (return_code_Type7 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type7: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep7 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep7; + MemberId member_id_dep7 = 0x00000007; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep7 = TypeObjectUtils::build_common_struct_member(member_id_dep7, member_flags_dep7, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep7 = TypeObjectUtils::build_common_struct_member(member_id_dep7, member_flags_dep7, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep7 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep7 = "dep7"; + eprosima::fastcdr::optional member_ann_builtin_dep7; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep7 = TypeObjectUtils::build_complete_member_detail(name_dep7, member_ann_builtin_dep7, ann_custom_TypeBig); + CompleteStructMember member_dep7 = TypeObjectUtils::build_complete_struct_member(common_dep7, detail_dep7); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep7); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type8", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type8; + TypeIdentifierPair type_ids_Type8; + QualifiedTypeName type_name_Type8 = "Type8"; + eprosima::fastcdr::optional type_ann_builtin_Type8; + eprosima::fastcdr::optional ann_custom_Type8; + CompleteTypeDetail detail_Type8 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type8, ann_custom_Type8, type_name_Type8.to_string()); + CompleteStructHeader header_Type8; + header_Type8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type8); + CompleteStructMemberSeq member_seq_Type8; + { + return_code_Type8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type8); + + if (return_code_Type8 != 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_Type8.type_identifier1()._d() || TK_NONE == type_ids_Type8.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type8.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type8.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type8.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type8.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type8.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type8.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type8.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type8.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type8.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type8.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type8.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type8.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type8.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type8.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type8.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type8.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type8.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type8.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type8.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type8.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type8.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type8.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type8.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type8.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_Type8.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type8); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type8, member_index); + } + CompleteStructType struct_type_Type8 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type8, header_Type8, member_seq_Type8); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type8, type_name_Type8.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type8 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type8", type_ids_Type8); + if (return_code_Type8 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type8: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep8; + MemberId member_id_dep8 = 0x00000008; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep8 = TypeObjectUtils::build_common_struct_member(member_id_dep8, member_flags_dep8, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep8 = TypeObjectUtils::build_common_struct_member(member_id_dep8, member_flags_dep8, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep8 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep8 = "dep8"; + eprosima::fastcdr::optional member_ann_builtin_dep8; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep8 = TypeObjectUtils::build_complete_member_detail(name_dep8, member_ann_builtin_dep8, ann_custom_TypeBig); + CompleteStructMember member_dep8 = TypeObjectUtils::build_complete_struct_member(common_dep8, detail_dep8); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep8); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type9", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type9 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type9; + TypeIdentifierPair type_ids_Type9; + QualifiedTypeName type_name_Type9 = "Type9"; + eprosima::fastcdr::optional type_ann_builtin_Type9; + eprosima::fastcdr::optional ann_custom_Type9; + CompleteTypeDetail detail_Type9 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type9, ann_custom_Type9, type_name_Type9.to_string()); + CompleteStructHeader header_Type9; + header_Type9 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type9); + CompleteStructMemberSeq member_seq_Type9; + { + return_code_Type9 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type9); + + if (return_code_Type9 != 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_Type9.type_identifier1()._d() || TK_NONE == type_ids_Type9.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type9.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type9.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type9.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type9.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type9.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type9.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type9.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type9.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type9.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type9.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type9.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type9.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type9.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type9.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type9.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type9.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type9.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type9.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type9.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type9.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type9.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type9.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type9.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type9.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_Type9.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type9); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type9, member_index); + } + CompleteStructType struct_type_Type9 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type9, header_Type9, member_seq_Type9); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type9, type_name_Type9.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type9 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type9 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type9", type_ids_Type9); + if (return_code_Type9 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type9: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep9 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep9; + MemberId member_id_dep9 = 0x00000009; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep9 = TypeObjectUtils::build_common_struct_member(member_id_dep9, member_flags_dep9, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep9 = TypeObjectUtils::build_common_struct_member(member_id_dep9, member_flags_dep9, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep9 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep9 = "dep9"; + eprosima::fastcdr::optional member_ann_builtin_dep9; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep9 = TypeObjectUtils::build_complete_member_detail(name_dep9, member_ann_builtin_dep9, ann_custom_TypeBig); + CompleteStructMember member_dep9 = TypeObjectUtils::build_complete_struct_member(common_dep9, detail_dep9); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep9); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type10", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type10 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type10; + TypeIdentifierPair type_ids_Type10; + QualifiedTypeName type_name_Type10 = "Type10"; + eprosima::fastcdr::optional type_ann_builtin_Type10; + eprosima::fastcdr::optional ann_custom_Type10; + CompleteTypeDetail detail_Type10 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type10, ann_custom_Type10, type_name_Type10.to_string()); + CompleteStructHeader header_Type10; + header_Type10 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type10); + CompleteStructMemberSeq member_seq_Type10; + { + return_code_Type10 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type10); + + if (return_code_Type10 != 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_Type10.type_identifier1()._d() || TK_NONE == type_ids_Type10.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type10.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type10.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type10.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type10.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type10.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type10.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type10.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type10.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type10.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type10.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type10.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type10.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type10.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type10.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type10.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type10.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type10.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type10.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type10.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type10.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type10.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type10.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type10.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type10.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_Type10.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type10); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type10, member_index); + } + CompleteStructType struct_type_Type10 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type10, header_Type10, member_seq_Type10); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type10, type_name_Type10.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type10 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type10 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type10", type_ids_Type10); + if (return_code_Type10 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type10: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep10 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep10; + MemberId member_id_dep10 = 0x0000000a; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep10 = TypeObjectUtils::build_common_struct_member(member_id_dep10, member_flags_dep10, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep10 = TypeObjectUtils::build_common_struct_member(member_id_dep10, member_flags_dep10, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep10 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep10 = "dep10"; + eprosima::fastcdr::optional member_ann_builtin_dep10; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep10 = TypeObjectUtils::build_complete_member_detail(name_dep10, member_ann_builtin_dep10, ann_custom_TypeBig); + CompleteStructMember member_dep10 = TypeObjectUtils::build_complete_struct_member(common_dep10, detail_dep10); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep10); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type11", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type11 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type11; + TypeIdentifierPair type_ids_Type11; + QualifiedTypeName type_name_Type11 = "Type11"; + eprosima::fastcdr::optional type_ann_builtin_Type11; + eprosima::fastcdr::optional ann_custom_Type11; + CompleteTypeDetail detail_Type11 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type11, ann_custom_Type11, type_name_Type11.to_string()); + CompleteStructHeader header_Type11; + header_Type11 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type11); + CompleteStructMemberSeq member_seq_Type11; + { + return_code_Type11 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type11); + + if (return_code_Type11 != 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_Type11.type_identifier1()._d() || TK_NONE == type_ids_Type11.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type11.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type11.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type11.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type11.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type11.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type11.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type11.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type11.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type11.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type11.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type11.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type11.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type11.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type11.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type11.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type11.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type11.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type11.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type11.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type11.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type11.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type11.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type11.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type11.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_Type11.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type11); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type11, member_index); + } + CompleteStructType struct_type_Type11 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type11, header_Type11, member_seq_Type11); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type11, type_name_Type11.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type11 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type11 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type11", type_ids_Type11); + if (return_code_Type11 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type11: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep11 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep11; + MemberId member_id_dep11 = 0x0000000b; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep11 = TypeObjectUtils::build_common_struct_member(member_id_dep11, member_flags_dep11, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep11 = TypeObjectUtils::build_common_struct_member(member_id_dep11, member_flags_dep11, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep11 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep11 = "dep11"; + eprosima::fastcdr::optional member_ann_builtin_dep11; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep11 = TypeObjectUtils::build_complete_member_detail(name_dep11, member_ann_builtin_dep11, ann_custom_TypeBig); + CompleteStructMember member_dep11 = TypeObjectUtils::build_complete_struct_member(common_dep11, detail_dep11); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep11); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type12", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type12 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type12; + TypeIdentifierPair type_ids_Type12; + QualifiedTypeName type_name_Type12 = "Type12"; + eprosima::fastcdr::optional type_ann_builtin_Type12; + eprosima::fastcdr::optional ann_custom_Type12; + CompleteTypeDetail detail_Type12 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type12, ann_custom_Type12, type_name_Type12.to_string()); + CompleteStructHeader header_Type12; + header_Type12 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type12); + CompleteStructMemberSeq member_seq_Type12; + { + return_code_Type12 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type12); + + if (return_code_Type12 != 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_Type12.type_identifier1()._d() || TK_NONE == type_ids_Type12.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type12.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type12.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type12.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type12.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type12.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type12.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type12.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type12.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type12.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type12.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type12.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type12.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type12.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type12.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type12.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type12.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type12.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type12.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type12.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type12.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type12.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type12.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type12.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type12.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_Type12.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type12); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type12, member_index); + } + CompleteStructType struct_type_Type12 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type12, header_Type12, member_seq_Type12); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type12, type_name_Type12.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type12 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type12 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type12", type_ids_Type12); + if (return_code_Type12 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type12: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep12 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep12; + MemberId member_id_dep12 = 0x0000000c; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep12 = TypeObjectUtils::build_common_struct_member(member_id_dep12, member_flags_dep12, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep12 = TypeObjectUtils::build_common_struct_member(member_id_dep12, member_flags_dep12, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep12 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep12 = "dep12"; + eprosima::fastcdr::optional member_ann_builtin_dep12; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep12 = TypeObjectUtils::build_complete_member_detail(name_dep12, member_ann_builtin_dep12, ann_custom_TypeBig); + CompleteStructMember member_dep12 = TypeObjectUtils::build_complete_struct_member(common_dep12, detail_dep12); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep12); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type13", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type13 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type13; + TypeIdentifierPair type_ids_Type13; + QualifiedTypeName type_name_Type13 = "Type13"; + eprosima::fastcdr::optional type_ann_builtin_Type13; + eprosima::fastcdr::optional ann_custom_Type13; + CompleteTypeDetail detail_Type13 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type13, ann_custom_Type13, type_name_Type13.to_string()); + CompleteStructHeader header_Type13; + header_Type13 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type13); + CompleteStructMemberSeq member_seq_Type13; + { + return_code_Type13 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type13); + + if (return_code_Type13 != 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_Type13.type_identifier1()._d() || TK_NONE == type_ids_Type13.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type13.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type13.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type13.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type13.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type13.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type13.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type13.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type13.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type13.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type13.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type13.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type13.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type13.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type13.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type13.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type13.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type13.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type13.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type13.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type13.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type13.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type13.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type13.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type13.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_Type13.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type13); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type13, member_index); + } + CompleteStructType struct_type_Type13 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type13, header_Type13, member_seq_Type13); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type13, type_name_Type13.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type13 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type13 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type13", type_ids_Type13); + if (return_code_Type13 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type13: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep13 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep13; + MemberId member_id_dep13 = 0x0000000d; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep13 = TypeObjectUtils::build_common_struct_member(member_id_dep13, member_flags_dep13, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep13 = TypeObjectUtils::build_common_struct_member(member_id_dep13, member_flags_dep13, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep13 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep13 = "dep13"; + eprosima::fastcdr::optional member_ann_builtin_dep13; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep13 = TypeObjectUtils::build_complete_member_detail(name_dep13, member_ann_builtin_dep13, ann_custom_TypeBig); + CompleteStructMember member_dep13 = TypeObjectUtils::build_complete_struct_member(common_dep13, detail_dep13); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep13); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type14", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type14 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type14; + TypeIdentifierPair type_ids_Type14; + QualifiedTypeName type_name_Type14 = "Type14"; + eprosima::fastcdr::optional type_ann_builtin_Type14; + eprosima::fastcdr::optional ann_custom_Type14; + CompleteTypeDetail detail_Type14 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type14, ann_custom_Type14, type_name_Type14.to_string()); + CompleteStructHeader header_Type14; + header_Type14 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type14); + CompleteStructMemberSeq member_seq_Type14; + { + return_code_Type14 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type14); + + if (return_code_Type14 != 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_Type14.type_identifier1()._d() || TK_NONE == type_ids_Type14.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type14.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type14.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type14.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type14.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type14.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type14.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type14.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type14.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type14.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type14.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type14.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type14.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type14.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type14.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type14.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type14.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type14.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type14.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type14.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type14.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type14.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type14.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type14.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type14.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_Type14.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type14); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type14, member_index); + } + CompleteStructType struct_type_Type14 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type14, header_Type14, member_seq_Type14); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type14, type_name_Type14.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type14 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type14 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type14", type_ids_Type14); + if (return_code_Type14 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type14: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep14 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep14; + MemberId member_id_dep14 = 0x0000000e; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep14 = TypeObjectUtils::build_common_struct_member(member_id_dep14, member_flags_dep14, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep14 = TypeObjectUtils::build_common_struct_member(member_id_dep14, member_flags_dep14, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep14 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep14 = "dep14"; + eprosima::fastcdr::optional member_ann_builtin_dep14; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep14 = TypeObjectUtils::build_complete_member_detail(name_dep14, member_ann_builtin_dep14, ann_custom_TypeBig); + CompleteStructMember member_dep14 = TypeObjectUtils::build_complete_struct_member(common_dep14, detail_dep14); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep14); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type15", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type15 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type15; + TypeIdentifierPair type_ids_Type15; + QualifiedTypeName type_name_Type15 = "Type15"; + eprosima::fastcdr::optional type_ann_builtin_Type15; + eprosima::fastcdr::optional ann_custom_Type15; + CompleteTypeDetail detail_Type15 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type15, ann_custom_Type15, type_name_Type15.to_string()); + CompleteStructHeader header_Type15; + header_Type15 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type15); + CompleteStructMemberSeq member_seq_Type15; + { + return_code_Type15 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type15); + + if (return_code_Type15 != 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_Type15.type_identifier1()._d() || TK_NONE == type_ids_Type15.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type15.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type15.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type15.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type15.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type15.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type15.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type15.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type15.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type15.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type15.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type15.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type15.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type15.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type15.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type15.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type15.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type15.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type15.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type15.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type15.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type15.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type15.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type15.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type15.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_Type15.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type15); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type15, member_index); + } + CompleteStructType struct_type_Type15 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type15, header_Type15, member_seq_Type15); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type15, type_name_Type15.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type15 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type15 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type15", type_ids_Type15); + if (return_code_Type15 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type15: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep15 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep15; + MemberId member_id_dep15 = 0x0000000f; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep15 = TypeObjectUtils::build_common_struct_member(member_id_dep15, member_flags_dep15, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep15 = TypeObjectUtils::build_common_struct_member(member_id_dep15, member_flags_dep15, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep15 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep15 = "dep15"; + eprosima::fastcdr::optional member_ann_builtin_dep15; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep15 = TypeObjectUtils::build_complete_member_detail(name_dep15, member_ann_builtin_dep15, ann_custom_TypeBig); + CompleteStructMember member_dep15 = TypeObjectUtils::build_complete_struct_member(common_dep15, detail_dep15); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep15); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type16", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type16; + TypeIdentifierPair type_ids_Type16; + QualifiedTypeName type_name_Type16 = "Type16"; + eprosima::fastcdr::optional type_ann_builtin_Type16; + eprosima::fastcdr::optional ann_custom_Type16; + CompleteTypeDetail detail_Type16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type16, ann_custom_Type16, type_name_Type16.to_string()); + CompleteStructHeader header_Type16; + header_Type16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type16); + CompleteStructMemberSeq member_seq_Type16; + { + return_code_Type16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type16); + + if (return_code_Type16 != 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_Type16.type_identifier1()._d() || TK_NONE == type_ids_Type16.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type16.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type16.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type16.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type16.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type16.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type16.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type16.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type16.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type16.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type16.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type16.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type16.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type16.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type16.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type16.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type16.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type16.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type16.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type16.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type16.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type16.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type16.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type16.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type16.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_Type16.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type16); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type16, member_index); + } + CompleteStructType struct_type_Type16 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type16, header_Type16, member_seq_Type16); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type16, type_name_Type16.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type16 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type16", type_ids_Type16); + if (return_code_Type16 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep16; + MemberId member_id_dep16 = 0x00000010; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep16 = TypeObjectUtils::build_common_struct_member(member_id_dep16, member_flags_dep16, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep16 = TypeObjectUtils::build_common_struct_member(member_id_dep16, member_flags_dep16, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep16 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep16 = "dep16"; + eprosima::fastcdr::optional member_ann_builtin_dep16; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep16 = TypeObjectUtils::build_complete_member_detail(name_dep16, member_ann_builtin_dep16, ann_custom_TypeBig); + CompleteStructMember member_dep16 = TypeObjectUtils::build_complete_struct_member(common_dep16, detail_dep16); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep16); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type17", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type17 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type17; + TypeIdentifierPair type_ids_Type17; + QualifiedTypeName type_name_Type17 = "Type17"; + eprosima::fastcdr::optional type_ann_builtin_Type17; + eprosima::fastcdr::optional ann_custom_Type17; + CompleteTypeDetail detail_Type17 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type17, ann_custom_Type17, type_name_Type17.to_string()); + CompleteStructHeader header_Type17; + header_Type17 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type17); + CompleteStructMemberSeq member_seq_Type17; + { + return_code_Type17 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type17); + + if (return_code_Type17 != 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_Type17.type_identifier1()._d() || TK_NONE == type_ids_Type17.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type17.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type17.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type17.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type17.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type17.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type17.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type17.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type17.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type17.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type17.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type17.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type17.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type17.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type17.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type17.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type17.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type17.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type17.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type17.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type17.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type17.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type17.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type17.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type17.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_Type17.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type17); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type17, member_index); + } + CompleteStructType struct_type_Type17 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type17, header_Type17, member_seq_Type17); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type17, type_name_Type17.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type17 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type17 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type17", type_ids_Type17); + if (return_code_Type17 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type17: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep17 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep17; + MemberId member_id_dep17 = 0x00000011; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep17 = TypeObjectUtils::build_common_struct_member(member_id_dep17, member_flags_dep17, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep17 = TypeObjectUtils::build_common_struct_member(member_id_dep17, member_flags_dep17, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep17 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep17 = "dep17"; + eprosima::fastcdr::optional member_ann_builtin_dep17; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep17 = TypeObjectUtils::build_complete_member_detail(name_dep17, member_ann_builtin_dep17, ann_custom_TypeBig); + CompleteStructMember member_dep17 = TypeObjectUtils::build_complete_struct_member(common_dep17, detail_dep17); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep17); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type18", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type18 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type18; + TypeIdentifierPair type_ids_Type18; + QualifiedTypeName type_name_Type18 = "Type18"; + eprosima::fastcdr::optional type_ann_builtin_Type18; + eprosima::fastcdr::optional ann_custom_Type18; + CompleteTypeDetail detail_Type18 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type18, ann_custom_Type18, type_name_Type18.to_string()); + CompleteStructHeader header_Type18; + header_Type18 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type18); + CompleteStructMemberSeq member_seq_Type18; + { + return_code_Type18 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type18); + + if (return_code_Type18 != 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_Type18.type_identifier1()._d() || TK_NONE == type_ids_Type18.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type18.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type18.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type18.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type18.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type18.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type18.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type18.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type18.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type18.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type18.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type18.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type18.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type18.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type18.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type18.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type18.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type18.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type18.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type18.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type18.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type18.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type18.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type18.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type18.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_Type18.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type18); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type18, member_index); + } + CompleteStructType struct_type_Type18 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type18, header_Type18, member_seq_Type18); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type18, type_name_Type18.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type18 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type18 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type18", type_ids_Type18); + if (return_code_Type18 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type18: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep18 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep18; + MemberId member_id_dep18 = 0x00000012; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep18 = TypeObjectUtils::build_common_struct_member(member_id_dep18, member_flags_dep18, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep18 = TypeObjectUtils::build_common_struct_member(member_id_dep18, member_flags_dep18, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep18 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep18 = "dep18"; + eprosima::fastcdr::optional member_ann_builtin_dep18; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep18 = TypeObjectUtils::build_complete_member_detail(name_dep18, member_ann_builtin_dep18, ann_custom_TypeBig); + CompleteStructMember member_dep18 = TypeObjectUtils::build_complete_struct_member(common_dep18, detail_dep18); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep18); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type19", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type19 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type19; + TypeIdentifierPair type_ids_Type19; + QualifiedTypeName type_name_Type19 = "Type19"; + eprosima::fastcdr::optional type_ann_builtin_Type19; + eprosima::fastcdr::optional ann_custom_Type19; + CompleteTypeDetail detail_Type19 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type19, ann_custom_Type19, type_name_Type19.to_string()); + CompleteStructHeader header_Type19; + header_Type19 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type19); + CompleteStructMemberSeq member_seq_Type19; + { + return_code_Type19 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type19); + + if (return_code_Type19 != 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_Type19.type_identifier1()._d() || TK_NONE == type_ids_Type19.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type19.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type19.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type19.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type19.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type19.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type19.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type19.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type19.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type19.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type19.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type19.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type19.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type19.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type19.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type19.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type19.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type19.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type19.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type19.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type19.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type19.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type19.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type19.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type19.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_Type19.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type19); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type19, member_index); + } + CompleteStructType struct_type_Type19 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type19, header_Type19, member_seq_Type19); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type19, type_name_Type19.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type19 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type19 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type19", type_ids_Type19); + if (return_code_Type19 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type19: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep19 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep19; + MemberId member_id_dep19 = 0x00000013; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep19 = TypeObjectUtils::build_common_struct_member(member_id_dep19, member_flags_dep19, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep19 = TypeObjectUtils::build_common_struct_member(member_id_dep19, member_flags_dep19, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep19 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep19 = "dep19"; + eprosima::fastcdr::optional member_ann_builtin_dep19; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep19 = TypeObjectUtils::build_complete_member_detail(name_dep19, member_ann_builtin_dep19, ann_custom_TypeBig); + CompleteStructMember member_dep19 = TypeObjectUtils::build_complete_struct_member(common_dep19, detail_dep19); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep19); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type20", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type20 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type20; + TypeIdentifierPair type_ids_Type20; + QualifiedTypeName type_name_Type20 = "Type20"; + eprosima::fastcdr::optional type_ann_builtin_Type20; + eprosima::fastcdr::optional ann_custom_Type20; + CompleteTypeDetail detail_Type20 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type20, ann_custom_Type20, type_name_Type20.to_string()); + CompleteStructHeader header_Type20; + header_Type20 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type20); + CompleteStructMemberSeq member_seq_Type20; + { + return_code_Type20 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type20); + + if (return_code_Type20 != 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_Type20.type_identifier1()._d() || TK_NONE == type_ids_Type20.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type20.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type20.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type20.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type20.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type20.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type20.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type20.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type20.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type20.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type20.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type20.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type20.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type20.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type20.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type20.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type20.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type20.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type20.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type20.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type20.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type20.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type20.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type20.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type20.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_Type20.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type20); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type20, member_index); + } + CompleteStructType struct_type_Type20 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type20, header_Type20, member_seq_Type20); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type20, type_name_Type20.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type20 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type20 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type20", type_ids_Type20); + if (return_code_Type20 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type20: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep20 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep20; + MemberId member_id_dep20 = 0x00000014; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep20 = TypeObjectUtils::build_common_struct_member(member_id_dep20, member_flags_dep20, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep20 = TypeObjectUtils::build_common_struct_member(member_id_dep20, member_flags_dep20, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep20 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep20 = "dep20"; + eprosima::fastcdr::optional member_ann_builtin_dep20; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep20 = TypeObjectUtils::build_complete_member_detail(name_dep20, member_ann_builtin_dep20, ann_custom_TypeBig); + CompleteStructMember member_dep20 = TypeObjectUtils::build_complete_struct_member(common_dep20, detail_dep20); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep20); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type21", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type21 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type21; + TypeIdentifierPair type_ids_Type21; + QualifiedTypeName type_name_Type21 = "Type21"; + eprosima::fastcdr::optional type_ann_builtin_Type21; + eprosima::fastcdr::optional ann_custom_Type21; + CompleteTypeDetail detail_Type21 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type21, ann_custom_Type21, type_name_Type21.to_string()); + CompleteStructHeader header_Type21; + header_Type21 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type21); + CompleteStructMemberSeq member_seq_Type21; + { + return_code_Type21 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type21); + + if (return_code_Type21 != 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_Type21.type_identifier1()._d() || TK_NONE == type_ids_Type21.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type21.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type21.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type21.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type21.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type21.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type21.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type21.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type21.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type21.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type21.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type21.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type21.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type21.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type21.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type21.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type21.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type21.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type21.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type21.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type21.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type21.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type21.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type21.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type21.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_Type21.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type21); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type21, member_index); + } + CompleteStructType struct_type_Type21 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type21, header_Type21, member_seq_Type21); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type21, type_name_Type21.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type21 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type21 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type21", type_ids_Type21); + if (return_code_Type21 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type21: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep21 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep21; + MemberId member_id_dep21 = 0x00000015; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep21 = TypeObjectUtils::build_common_struct_member(member_id_dep21, member_flags_dep21, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep21 = TypeObjectUtils::build_common_struct_member(member_id_dep21, member_flags_dep21, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep21 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep21 = "dep21"; + eprosima::fastcdr::optional member_ann_builtin_dep21; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep21 = TypeObjectUtils::build_complete_member_detail(name_dep21, member_ann_builtin_dep21, ann_custom_TypeBig); + CompleteStructMember member_dep21 = TypeObjectUtils::build_complete_struct_member(common_dep21, detail_dep21); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep21); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type22", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type22 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type22; + TypeIdentifierPair type_ids_Type22; + QualifiedTypeName type_name_Type22 = "Type22"; + eprosima::fastcdr::optional type_ann_builtin_Type22; + eprosima::fastcdr::optional ann_custom_Type22; + CompleteTypeDetail detail_Type22 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type22, ann_custom_Type22, type_name_Type22.to_string()); + CompleteStructHeader header_Type22; + header_Type22 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type22); + CompleteStructMemberSeq member_seq_Type22; + { + return_code_Type22 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type22); + + if (return_code_Type22 != 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_Type22.type_identifier1()._d() || TK_NONE == type_ids_Type22.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type22.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type22.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type22.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type22.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type22.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type22.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type22.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type22.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type22.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type22.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type22.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type22.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type22.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type22.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type22.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type22.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type22.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type22.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type22.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type22.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type22.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type22.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type22.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type22.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_Type22.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type22); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type22, member_index); + } + CompleteStructType struct_type_Type22 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type22, header_Type22, member_seq_Type22); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type22, type_name_Type22.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type22 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type22 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type22", type_ids_Type22); + if (return_code_Type22 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type22: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep22 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep22; + MemberId member_id_dep22 = 0x00000016; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep22 = TypeObjectUtils::build_common_struct_member(member_id_dep22, member_flags_dep22, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep22 = TypeObjectUtils::build_common_struct_member(member_id_dep22, member_flags_dep22, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep22 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep22 = "dep22"; + eprosima::fastcdr::optional member_ann_builtin_dep22; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep22 = TypeObjectUtils::build_complete_member_detail(name_dep22, member_ann_builtin_dep22, ann_custom_TypeBig); + CompleteStructMember member_dep22 = TypeObjectUtils::build_complete_struct_member(common_dep22, detail_dep22); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep22); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type23", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type23 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type23; + TypeIdentifierPair type_ids_Type23; + QualifiedTypeName type_name_Type23 = "Type23"; + eprosima::fastcdr::optional type_ann_builtin_Type23; + eprosima::fastcdr::optional ann_custom_Type23; + CompleteTypeDetail detail_Type23 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type23, ann_custom_Type23, type_name_Type23.to_string()); + CompleteStructHeader header_Type23; + header_Type23 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type23); + CompleteStructMemberSeq member_seq_Type23; + { + return_code_Type23 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type23); + + if (return_code_Type23 != 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_Type23.type_identifier1()._d() || TK_NONE == type_ids_Type23.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type23.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type23.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type23.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type23.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type23.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type23.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type23.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type23.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type23.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type23.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type23.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type23.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type23.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type23.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type23.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type23.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type23.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type23.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type23.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type23.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type23.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type23.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type23.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type23.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_Type23.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type23); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type23, member_index); + } + CompleteStructType struct_type_Type23 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type23, header_Type23, member_seq_Type23); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type23, type_name_Type23.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type23 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type23 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type23", type_ids_Type23); + if (return_code_Type23 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type23: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep23 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep23; + MemberId member_id_dep23 = 0x00000017; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep23 = TypeObjectUtils::build_common_struct_member(member_id_dep23, member_flags_dep23, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep23 = TypeObjectUtils::build_common_struct_member(member_id_dep23, member_flags_dep23, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep23 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep23 = "dep23"; + eprosima::fastcdr::optional member_ann_builtin_dep23; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep23 = TypeObjectUtils::build_complete_member_detail(name_dep23, member_ann_builtin_dep23, ann_custom_TypeBig); + CompleteStructMember member_dep23 = TypeObjectUtils::build_complete_struct_member(common_dep23, detail_dep23); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep23); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type24", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type24 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type24; + TypeIdentifierPair type_ids_Type24; + QualifiedTypeName type_name_Type24 = "Type24"; + eprosima::fastcdr::optional type_ann_builtin_Type24; + eprosima::fastcdr::optional ann_custom_Type24; + CompleteTypeDetail detail_Type24 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type24, ann_custom_Type24, type_name_Type24.to_string()); + CompleteStructHeader header_Type24; + header_Type24 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type24); + CompleteStructMemberSeq member_seq_Type24; + { + return_code_Type24 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type24); + + if (return_code_Type24 != 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_Type24.type_identifier1()._d() || TK_NONE == type_ids_Type24.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type24.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type24.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type24.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type24.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type24.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type24.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type24.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type24.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type24.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type24.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type24.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type24.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type24.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type24.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type24.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type24.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type24.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type24.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type24.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type24.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type24.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type24.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type24.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type24.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_Type24.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type24); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type24, member_index); + } + CompleteStructType struct_type_Type24 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type24, header_Type24, member_seq_Type24); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type24, type_name_Type24.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type24 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type24 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type24", type_ids_Type24); + if (return_code_Type24 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type24: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep24 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep24; + MemberId member_id_dep24 = 0x00000018; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep24 = TypeObjectUtils::build_common_struct_member(member_id_dep24, member_flags_dep24, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep24 = TypeObjectUtils::build_common_struct_member(member_id_dep24, member_flags_dep24, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep24 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep24 = "dep24"; + eprosima::fastcdr::optional member_ann_builtin_dep24; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep24 = TypeObjectUtils::build_complete_member_detail(name_dep24, member_ann_builtin_dep24, ann_custom_TypeBig); + CompleteStructMember member_dep24 = TypeObjectUtils::build_complete_struct_member(common_dep24, detail_dep24); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep24); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type25", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type25 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type25; + TypeIdentifierPair type_ids_Type25; + QualifiedTypeName type_name_Type25 = "Type25"; + eprosima::fastcdr::optional type_ann_builtin_Type25; + eprosima::fastcdr::optional ann_custom_Type25; + CompleteTypeDetail detail_Type25 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type25, ann_custom_Type25, type_name_Type25.to_string()); + CompleteStructHeader header_Type25; + header_Type25 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type25); + CompleteStructMemberSeq member_seq_Type25; + { + return_code_Type25 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type25); + + if (return_code_Type25 != 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_Type25.type_identifier1()._d() || TK_NONE == type_ids_Type25.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type25.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type25.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type25.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type25.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type25.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type25.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type25.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type25.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type25.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type25.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type25.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type25.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type25.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type25.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type25.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type25.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type25.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type25.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type25.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type25.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type25.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type25.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type25.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type25.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_Type25.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type25); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type25, member_index); + } + CompleteStructType struct_type_Type25 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type25, header_Type25, member_seq_Type25); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type25, type_name_Type25.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type25 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type25 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type25", type_ids_Type25); + if (return_code_Type25 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type25: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep25 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep25; + MemberId member_id_dep25 = 0x00000019; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep25 = TypeObjectUtils::build_common_struct_member(member_id_dep25, member_flags_dep25, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep25 = TypeObjectUtils::build_common_struct_member(member_id_dep25, member_flags_dep25, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep25 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep25 = "dep25"; + eprosima::fastcdr::optional member_ann_builtin_dep25; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep25 = TypeObjectUtils::build_complete_member_detail(name_dep25, member_ann_builtin_dep25, ann_custom_TypeBig); + CompleteStructMember member_dep25 = TypeObjectUtils::build_complete_struct_member(common_dep25, detail_dep25); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep25); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type26", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type26 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type26; + TypeIdentifierPair type_ids_Type26; + QualifiedTypeName type_name_Type26 = "Type26"; + eprosima::fastcdr::optional type_ann_builtin_Type26; + eprosima::fastcdr::optional ann_custom_Type26; + CompleteTypeDetail detail_Type26 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type26, ann_custom_Type26, type_name_Type26.to_string()); + CompleteStructHeader header_Type26; + header_Type26 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type26); + CompleteStructMemberSeq member_seq_Type26; + { + return_code_Type26 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type26); + + if (return_code_Type26 != 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_Type26.type_identifier1()._d() || TK_NONE == type_ids_Type26.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type26.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type26.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type26.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type26.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type26.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type26.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type26.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type26.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type26.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type26.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type26.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type26.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type26.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type26.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type26.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type26.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type26.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type26.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type26.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type26.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type26.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type26.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type26.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type26.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_Type26.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type26); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type26, member_index); + } + CompleteStructType struct_type_Type26 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type26, header_Type26, member_seq_Type26); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type26, type_name_Type26.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type26 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type26 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type26", type_ids_Type26); + if (return_code_Type26 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type26: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep26 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep26; + MemberId member_id_dep26 = 0x0000001a; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep26 = TypeObjectUtils::build_common_struct_member(member_id_dep26, member_flags_dep26, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep26 = TypeObjectUtils::build_common_struct_member(member_id_dep26, member_flags_dep26, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep26 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep26 = "dep26"; + eprosima::fastcdr::optional member_ann_builtin_dep26; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep26 = TypeObjectUtils::build_complete_member_detail(name_dep26, member_ann_builtin_dep26, ann_custom_TypeBig); + CompleteStructMember member_dep26 = TypeObjectUtils::build_complete_struct_member(common_dep26, detail_dep26); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep26); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type27", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type27 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type27; + TypeIdentifierPair type_ids_Type27; + QualifiedTypeName type_name_Type27 = "Type27"; + eprosima::fastcdr::optional type_ann_builtin_Type27; + eprosima::fastcdr::optional ann_custom_Type27; + CompleteTypeDetail detail_Type27 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type27, ann_custom_Type27, type_name_Type27.to_string()); + CompleteStructHeader header_Type27; + header_Type27 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type27); + CompleteStructMemberSeq member_seq_Type27; + { + return_code_Type27 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type27); + + if (return_code_Type27 != 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_Type27.type_identifier1()._d() || TK_NONE == type_ids_Type27.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type27.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type27.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type27.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type27.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type27.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type27.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type27.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type27.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type27.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type27.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type27.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type27.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type27.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type27.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type27.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type27.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type27.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type27.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type27.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type27.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type27.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type27.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type27.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type27.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_Type27.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type27); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type27, member_index); + } + CompleteStructType struct_type_Type27 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type27, header_Type27, member_seq_Type27); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type27, type_name_Type27.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type27 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type27 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type27", type_ids_Type27); + if (return_code_Type27 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type27: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep27 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep27; + MemberId member_id_dep27 = 0x0000001b; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep27 = TypeObjectUtils::build_common_struct_member(member_id_dep27, member_flags_dep27, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep27 = TypeObjectUtils::build_common_struct_member(member_id_dep27, member_flags_dep27, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep27 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep27 = "dep27"; + eprosima::fastcdr::optional member_ann_builtin_dep27; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep27 = TypeObjectUtils::build_complete_member_detail(name_dep27, member_ann_builtin_dep27, ann_custom_TypeBig); + CompleteStructMember member_dep27 = TypeObjectUtils::build_complete_struct_member(common_dep27, detail_dep27); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep27); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type28", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type28 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type28; + TypeIdentifierPair type_ids_Type28; + QualifiedTypeName type_name_Type28 = "Type28"; + eprosima::fastcdr::optional type_ann_builtin_Type28; + eprosima::fastcdr::optional ann_custom_Type28; + CompleteTypeDetail detail_Type28 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type28, ann_custom_Type28, type_name_Type28.to_string()); + CompleteStructHeader header_Type28; + header_Type28 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type28); + CompleteStructMemberSeq member_seq_Type28; + { + return_code_Type28 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type28); + + if (return_code_Type28 != 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_Type28.type_identifier1()._d() || TK_NONE == type_ids_Type28.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type28.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type28.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type28.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type28.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type28.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type28.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type28.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type28.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type28.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type28.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type28.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type28.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type28.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type28.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type28.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type28.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type28.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type28.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type28.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type28.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type28.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type28.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type28.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type28.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_Type28.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type28); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type28, member_index); + } + CompleteStructType struct_type_Type28 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type28, header_Type28, member_seq_Type28); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type28, type_name_Type28.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type28 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type28 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type28", type_ids_Type28); + if (return_code_Type28 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type28: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep28 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep28; + MemberId member_id_dep28 = 0x0000001c; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep28 = TypeObjectUtils::build_common_struct_member(member_id_dep28, member_flags_dep28, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep28 = TypeObjectUtils::build_common_struct_member(member_id_dep28, member_flags_dep28, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep28 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep28 = "dep28"; + eprosima::fastcdr::optional member_ann_builtin_dep28; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep28 = TypeObjectUtils::build_complete_member_detail(name_dep28, member_ann_builtin_dep28, ann_custom_TypeBig); + CompleteStructMember member_dep28 = TypeObjectUtils::build_complete_struct_member(common_dep28, detail_dep28); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep28); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type29", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type29 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type29; + TypeIdentifierPair type_ids_Type29; + QualifiedTypeName type_name_Type29 = "Type29"; + eprosima::fastcdr::optional type_ann_builtin_Type29; + eprosima::fastcdr::optional ann_custom_Type29; + CompleteTypeDetail detail_Type29 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type29, ann_custom_Type29, type_name_Type29.to_string()); + CompleteStructHeader header_Type29; + header_Type29 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type29); + CompleteStructMemberSeq member_seq_Type29; + { + return_code_Type29 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type29); + + if (return_code_Type29 != 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_Type29.type_identifier1()._d() || TK_NONE == type_ids_Type29.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type29.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type29.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type29.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type29.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type29.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type29.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type29.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type29.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type29.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type29.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type29.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type29.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type29.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type29.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type29.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type29.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type29.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type29.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type29.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type29.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type29.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type29.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type29.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type29.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_Type29.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type29); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type29, member_index); + } + CompleteStructType struct_type_Type29 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type29, header_Type29, member_seq_Type29); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type29, type_name_Type29.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type29 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type29 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type29", type_ids_Type29); + if (return_code_Type29 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type29: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep29 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep29; + MemberId member_id_dep29 = 0x0000001d; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep29 = TypeObjectUtils::build_common_struct_member(member_id_dep29, member_flags_dep29, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep29 = TypeObjectUtils::build_common_struct_member(member_id_dep29, member_flags_dep29, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep29 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep29 = "dep29"; + eprosima::fastcdr::optional member_ann_builtin_dep29; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep29 = TypeObjectUtils::build_complete_member_detail(name_dep29, member_ann_builtin_dep29, ann_custom_TypeBig); + CompleteStructMember member_dep29 = TypeObjectUtils::build_complete_struct_member(common_dep29, detail_dep29); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep29); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type30", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type30 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type30; + TypeIdentifierPair type_ids_Type30; + QualifiedTypeName type_name_Type30 = "Type30"; + eprosima::fastcdr::optional type_ann_builtin_Type30; + eprosima::fastcdr::optional ann_custom_Type30; + CompleteTypeDetail detail_Type30 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type30, ann_custom_Type30, type_name_Type30.to_string()); + CompleteStructHeader header_Type30; + header_Type30 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type30); + CompleteStructMemberSeq member_seq_Type30; + { + return_code_Type30 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type30); + + if (return_code_Type30 != 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_Type30.type_identifier1()._d() || TK_NONE == type_ids_Type30.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type30.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type30.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type30.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type30.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type30.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type30.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type30.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type30.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type30.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type30.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type30.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type30.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type30.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type30.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type30.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type30.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type30.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type30.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type30.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type30.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type30.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type30.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type30.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type30.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_Type30.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type30); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type30, member_index); + } + CompleteStructType struct_type_Type30 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type30, header_Type30, member_seq_Type30); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type30, type_name_Type30.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type30 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type30 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type30", type_ids_Type30); + if (return_code_Type30 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type30: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep30 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep30; + MemberId member_id_dep30 = 0x0000001e; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep30 = TypeObjectUtils::build_common_struct_member(member_id_dep30, member_flags_dep30, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep30 = TypeObjectUtils::build_common_struct_member(member_id_dep30, member_flags_dep30, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep30 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep30 = "dep30"; + eprosima::fastcdr::optional member_ann_builtin_dep30; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep30 = TypeObjectUtils::build_complete_member_detail(name_dep30, member_ann_builtin_dep30, ann_custom_TypeBig); + CompleteStructMember member_dep30 = TypeObjectUtils::build_complete_struct_member(common_dep30, detail_dep30); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep30); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type31", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type31 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type31; + TypeIdentifierPair type_ids_Type31; + QualifiedTypeName type_name_Type31 = "Type31"; + eprosima::fastcdr::optional type_ann_builtin_Type31; + eprosima::fastcdr::optional ann_custom_Type31; + CompleteTypeDetail detail_Type31 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type31, ann_custom_Type31, type_name_Type31.to_string()); + CompleteStructHeader header_Type31; + header_Type31 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type31); + CompleteStructMemberSeq member_seq_Type31; + { + return_code_Type31 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type31); + + if (return_code_Type31 != 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_Type31.type_identifier1()._d() || TK_NONE == type_ids_Type31.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type31.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type31.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type31.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type31.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type31.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type31.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type31.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type31.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type31.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type31.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type31.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type31.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type31.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type31.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type31.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type31.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type31.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type31.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type31.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type31.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type31.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type31.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type31.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type31.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_Type31.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type31); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type31, member_index); + } + CompleteStructType struct_type_Type31 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type31, header_Type31, member_seq_Type31); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type31, type_name_Type31.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type31 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type31 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type31", type_ids_Type31); + if (return_code_Type31 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type31: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep31 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep31; + MemberId member_id_dep31 = 0x0000001f; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep31 = TypeObjectUtils::build_common_struct_member(member_id_dep31, member_flags_dep31, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep31 = TypeObjectUtils::build_common_struct_member(member_id_dep31, member_flags_dep31, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep31 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep31 = "dep31"; + eprosima::fastcdr::optional member_ann_builtin_dep31; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep31 = TypeObjectUtils::build_complete_member_detail(name_dep31, member_ann_builtin_dep31, ann_custom_TypeBig); + CompleteStructMember member_dep31 = TypeObjectUtils::build_complete_struct_member(common_dep31, detail_dep31); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep31); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type32", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type32; + TypeIdentifierPair type_ids_Type32; + QualifiedTypeName type_name_Type32 = "Type32"; + eprosima::fastcdr::optional type_ann_builtin_Type32; + eprosima::fastcdr::optional ann_custom_Type32; + CompleteTypeDetail detail_Type32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type32, ann_custom_Type32, type_name_Type32.to_string()); + CompleteStructHeader header_Type32; + header_Type32 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type32); + CompleteStructMemberSeq member_seq_Type32; + { + return_code_Type32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type32); + + if (return_code_Type32 != 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_Type32.type_identifier1()._d() || TK_NONE == type_ids_Type32.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type32.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type32.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type32.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type32.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type32.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type32.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type32.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type32.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type32.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type32.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type32.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type32.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type32.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type32.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type32.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type32.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type32.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type32.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type32.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type32.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type32.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type32.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type32.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type32.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_Type32.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type32); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type32, member_index); + } + CompleteStructType struct_type_Type32 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type32, header_Type32, member_seq_Type32); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type32, type_name_Type32.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type32 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type32", type_ids_Type32); + if (return_code_Type32 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type32: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep32; + MemberId member_id_dep32 = 0x00000020; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep32 = TypeObjectUtils::build_common_struct_member(member_id_dep32, member_flags_dep32, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep32 = TypeObjectUtils::build_common_struct_member(member_id_dep32, member_flags_dep32, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep32 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep32 = "dep32"; + eprosima::fastcdr::optional member_ann_builtin_dep32; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep32 = TypeObjectUtils::build_complete_member_detail(name_dep32, member_ann_builtin_dep32, ann_custom_TypeBig); + CompleteStructMember member_dep32 = TypeObjectUtils::build_complete_struct_member(common_dep32, detail_dep32); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep32); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type33", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type33 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type33; + TypeIdentifierPair type_ids_Type33; + QualifiedTypeName type_name_Type33 = "Type33"; + eprosima::fastcdr::optional type_ann_builtin_Type33; + eprosima::fastcdr::optional ann_custom_Type33; + CompleteTypeDetail detail_Type33 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type33, ann_custom_Type33, type_name_Type33.to_string()); + CompleteStructHeader header_Type33; + header_Type33 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type33); + CompleteStructMemberSeq member_seq_Type33; + { + return_code_Type33 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type33); + + if (return_code_Type33 != 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_Type33.type_identifier1()._d() || TK_NONE == type_ids_Type33.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type33.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type33.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type33.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type33.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type33.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type33.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type33.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type33.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type33.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type33.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type33.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type33.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type33.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type33.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type33.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type33.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type33.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type33.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type33.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type33.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type33.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type33.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type33.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type33.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_Type33.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type33); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type33, member_index); + } + CompleteStructType struct_type_Type33 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type33, header_Type33, member_seq_Type33); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type33, type_name_Type33.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type33 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type33 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type33", type_ids_Type33); + if (return_code_Type33 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type33: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep33 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep33; + MemberId member_id_dep33 = 0x00000021; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep33 = TypeObjectUtils::build_common_struct_member(member_id_dep33, member_flags_dep33, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep33 = TypeObjectUtils::build_common_struct_member(member_id_dep33, member_flags_dep33, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep33 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep33 = "dep33"; + eprosima::fastcdr::optional member_ann_builtin_dep33; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep33 = TypeObjectUtils::build_complete_member_detail(name_dep33, member_ann_builtin_dep33, ann_custom_TypeBig); + CompleteStructMember member_dep33 = TypeObjectUtils::build_complete_struct_member(common_dep33, detail_dep33); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep33); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type34", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type34 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type34; + TypeIdentifierPair type_ids_Type34; + QualifiedTypeName type_name_Type34 = "Type34"; + eprosima::fastcdr::optional type_ann_builtin_Type34; + eprosima::fastcdr::optional ann_custom_Type34; + CompleteTypeDetail detail_Type34 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type34, ann_custom_Type34, type_name_Type34.to_string()); + CompleteStructHeader header_Type34; + header_Type34 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type34); + CompleteStructMemberSeq member_seq_Type34; + { + return_code_Type34 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type34); + + if (return_code_Type34 != 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_Type34.type_identifier1()._d() || TK_NONE == type_ids_Type34.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type34.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type34.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type34.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type34.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type34.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type34.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type34.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type34.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type34.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type34.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type34.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type34.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type34.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type34.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type34.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type34.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type34.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type34.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type34.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type34.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type34.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type34.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type34.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type34.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_Type34.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type34); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type34, member_index); + } + CompleteStructType struct_type_Type34 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type34, header_Type34, member_seq_Type34); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type34, type_name_Type34.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type34 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type34 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type34", type_ids_Type34); + if (return_code_Type34 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type34: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep34 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep34; + MemberId member_id_dep34 = 0x00000022; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep34 = TypeObjectUtils::build_common_struct_member(member_id_dep34, member_flags_dep34, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep34 = TypeObjectUtils::build_common_struct_member(member_id_dep34, member_flags_dep34, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep34 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep34 = "dep34"; + eprosima::fastcdr::optional member_ann_builtin_dep34; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep34 = TypeObjectUtils::build_complete_member_detail(name_dep34, member_ann_builtin_dep34, ann_custom_TypeBig); + CompleteStructMember member_dep34 = TypeObjectUtils::build_complete_struct_member(common_dep34, detail_dep34); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep34); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type35", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type35 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type35; + TypeIdentifierPair type_ids_Type35; + QualifiedTypeName type_name_Type35 = "Type35"; + eprosima::fastcdr::optional type_ann_builtin_Type35; + eprosima::fastcdr::optional ann_custom_Type35; + CompleteTypeDetail detail_Type35 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type35, ann_custom_Type35, type_name_Type35.to_string()); + CompleteStructHeader header_Type35; + header_Type35 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type35); + CompleteStructMemberSeq member_seq_Type35; + { + return_code_Type35 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type35); + + if (return_code_Type35 != 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_Type35.type_identifier1()._d() || TK_NONE == type_ids_Type35.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type35.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type35.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type35.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type35.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type35.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type35.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type35.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type35.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type35.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type35.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type35.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type35.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type35.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type35.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type35.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type35.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type35.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type35.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type35.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type35.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type35.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type35.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type35.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type35.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_Type35.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type35); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type35, member_index); + } + CompleteStructType struct_type_Type35 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type35, header_Type35, member_seq_Type35); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type35, type_name_Type35.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type35 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type35 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type35", type_ids_Type35); + if (return_code_Type35 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type35: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep35 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep35; + MemberId member_id_dep35 = 0x00000023; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep35 = TypeObjectUtils::build_common_struct_member(member_id_dep35, member_flags_dep35, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep35 = TypeObjectUtils::build_common_struct_member(member_id_dep35, member_flags_dep35, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep35 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep35 = "dep35"; + eprosima::fastcdr::optional member_ann_builtin_dep35; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep35 = TypeObjectUtils::build_complete_member_detail(name_dep35, member_ann_builtin_dep35, ann_custom_TypeBig); + CompleteStructMember member_dep35 = TypeObjectUtils::build_complete_struct_member(common_dep35, detail_dep35); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep35); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type36", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type36 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type36; + TypeIdentifierPair type_ids_Type36; + QualifiedTypeName type_name_Type36 = "Type36"; + eprosima::fastcdr::optional type_ann_builtin_Type36; + eprosima::fastcdr::optional ann_custom_Type36; + CompleteTypeDetail detail_Type36 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type36, ann_custom_Type36, type_name_Type36.to_string()); + CompleteStructHeader header_Type36; + header_Type36 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type36); + CompleteStructMemberSeq member_seq_Type36; + { + return_code_Type36 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type36); + + if (return_code_Type36 != 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_Type36.type_identifier1()._d() || TK_NONE == type_ids_Type36.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type36.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type36.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type36.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type36.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type36.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type36.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type36.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type36.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type36.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type36.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type36.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type36.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type36.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type36.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type36.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type36.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type36.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type36.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type36.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type36.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type36.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type36.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type36.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type36.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_Type36.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type36); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type36, member_index); + } + CompleteStructType struct_type_Type36 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type36, header_Type36, member_seq_Type36); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type36, type_name_Type36.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type36 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type36 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type36", type_ids_Type36); + if (return_code_Type36 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type36: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep36 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep36; + MemberId member_id_dep36 = 0x00000024; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep36 = TypeObjectUtils::build_common_struct_member(member_id_dep36, member_flags_dep36, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep36 = TypeObjectUtils::build_common_struct_member(member_id_dep36, member_flags_dep36, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep36 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep36 = "dep36"; + eprosima::fastcdr::optional member_ann_builtin_dep36; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep36 = TypeObjectUtils::build_complete_member_detail(name_dep36, member_ann_builtin_dep36, ann_custom_TypeBig); + CompleteStructMember member_dep36 = TypeObjectUtils::build_complete_struct_member(common_dep36, detail_dep36); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep36); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type37", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type37 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type37; + TypeIdentifierPair type_ids_Type37; + QualifiedTypeName type_name_Type37 = "Type37"; + eprosima::fastcdr::optional type_ann_builtin_Type37; + eprosima::fastcdr::optional ann_custom_Type37; + CompleteTypeDetail detail_Type37 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type37, ann_custom_Type37, type_name_Type37.to_string()); + CompleteStructHeader header_Type37; + header_Type37 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type37); + CompleteStructMemberSeq member_seq_Type37; + { + return_code_Type37 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type37); + + if (return_code_Type37 != 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_Type37.type_identifier1()._d() || TK_NONE == type_ids_Type37.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type37.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type37.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type37.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type37.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type37.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type37.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type37.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type37.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type37.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type37.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type37.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type37.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type37.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type37.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type37.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type37.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type37.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type37.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type37.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type37.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type37.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type37.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type37.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type37.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_Type37.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type37); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type37, member_index); + } + CompleteStructType struct_type_Type37 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type37, header_Type37, member_seq_Type37); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type37, type_name_Type37.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type37 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type37 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type37", type_ids_Type37); + if (return_code_Type37 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type37: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep37 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep37; + MemberId member_id_dep37 = 0x00000025; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep37 = TypeObjectUtils::build_common_struct_member(member_id_dep37, member_flags_dep37, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep37 = TypeObjectUtils::build_common_struct_member(member_id_dep37, member_flags_dep37, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep37 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep37 = "dep37"; + eprosima::fastcdr::optional member_ann_builtin_dep37; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep37 = TypeObjectUtils::build_complete_member_detail(name_dep37, member_ann_builtin_dep37, ann_custom_TypeBig); + CompleteStructMember member_dep37 = TypeObjectUtils::build_complete_struct_member(common_dep37, detail_dep37); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep37); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type38", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type38 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type38; + TypeIdentifierPair type_ids_Type38; + QualifiedTypeName type_name_Type38 = "Type38"; + eprosima::fastcdr::optional type_ann_builtin_Type38; + eprosima::fastcdr::optional ann_custom_Type38; + CompleteTypeDetail detail_Type38 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type38, ann_custom_Type38, type_name_Type38.to_string()); + CompleteStructHeader header_Type38; + header_Type38 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type38); + CompleteStructMemberSeq member_seq_Type38; + { + return_code_Type38 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type38); + + if (return_code_Type38 != 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_Type38.type_identifier1()._d() || TK_NONE == type_ids_Type38.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type38.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type38.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type38.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type38.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type38.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type38.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type38.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type38.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type38.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type38.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type38.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type38.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type38.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type38.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type38.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type38.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type38.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type38.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type38.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type38.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type38.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type38.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type38.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type38.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_Type38.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type38); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type38, member_index); + } + CompleteStructType struct_type_Type38 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type38, header_Type38, member_seq_Type38); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type38, type_name_Type38.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type38 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type38 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type38", type_ids_Type38); + if (return_code_Type38 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type38: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep38 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep38; + MemberId member_id_dep38 = 0x00000026; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep38 = TypeObjectUtils::build_common_struct_member(member_id_dep38, member_flags_dep38, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep38 = TypeObjectUtils::build_common_struct_member(member_id_dep38, member_flags_dep38, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep38 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep38 = "dep38"; + eprosima::fastcdr::optional member_ann_builtin_dep38; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep38 = TypeObjectUtils::build_complete_member_detail(name_dep38, member_ann_builtin_dep38, ann_custom_TypeBig); + CompleteStructMember member_dep38 = TypeObjectUtils::build_complete_struct_member(common_dep38, detail_dep38); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep38); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type39", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type39 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type39; + TypeIdentifierPair type_ids_Type39; + QualifiedTypeName type_name_Type39 = "Type39"; + eprosima::fastcdr::optional type_ann_builtin_Type39; + eprosima::fastcdr::optional ann_custom_Type39; + CompleteTypeDetail detail_Type39 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type39, ann_custom_Type39, type_name_Type39.to_string()); + CompleteStructHeader header_Type39; + header_Type39 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type39); + CompleteStructMemberSeq member_seq_Type39; + { + return_code_Type39 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type39); + + if (return_code_Type39 != 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_Type39.type_identifier1()._d() || TK_NONE == type_ids_Type39.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type39.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type39.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type39.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type39.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type39.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type39.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type39.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type39.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type39.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type39.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type39.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type39.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type39.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type39.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type39.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type39.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type39.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type39.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type39.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type39.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type39.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type39.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type39.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type39.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_Type39.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type39); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type39, member_index); + } + CompleteStructType struct_type_Type39 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type39, header_Type39, member_seq_Type39); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type39, type_name_Type39.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type39 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type39 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type39", type_ids_Type39); + if (return_code_Type39 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type39: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep39 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep39; + MemberId member_id_dep39 = 0x00000027; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep39 = TypeObjectUtils::build_common_struct_member(member_id_dep39, member_flags_dep39, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep39 = TypeObjectUtils::build_common_struct_member(member_id_dep39, member_flags_dep39, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep39 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep39 = "dep39"; + eprosima::fastcdr::optional member_ann_builtin_dep39; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep39 = TypeObjectUtils::build_complete_member_detail(name_dep39, member_ann_builtin_dep39, ann_custom_TypeBig); + CompleteStructMember member_dep39 = TypeObjectUtils::build_complete_struct_member(common_dep39, detail_dep39); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep39); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type40", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type40 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type40; + TypeIdentifierPair type_ids_Type40; + QualifiedTypeName type_name_Type40 = "Type40"; + eprosima::fastcdr::optional type_ann_builtin_Type40; + eprosima::fastcdr::optional ann_custom_Type40; + CompleteTypeDetail detail_Type40 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type40, ann_custom_Type40, type_name_Type40.to_string()); + CompleteStructHeader header_Type40; + header_Type40 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type40); + CompleteStructMemberSeq member_seq_Type40; + { + return_code_Type40 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type40); + + if (return_code_Type40 != 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_Type40.type_identifier1()._d() || TK_NONE == type_ids_Type40.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type40.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type40.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type40.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type40.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type40.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type40.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type40.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type40.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type40.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type40.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type40.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type40.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type40.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type40.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type40.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type40.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type40.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type40.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type40.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type40.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type40.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type40.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type40.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type40.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_Type40.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type40); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type40, member_index); + } + CompleteStructType struct_type_Type40 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type40, header_Type40, member_seq_Type40); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type40, type_name_Type40.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type40 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type40 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type40", type_ids_Type40); + if (return_code_Type40 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type40: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep40 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep40; + MemberId member_id_dep40 = 0x00000028; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep40 = TypeObjectUtils::build_common_struct_member(member_id_dep40, member_flags_dep40, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep40 = TypeObjectUtils::build_common_struct_member(member_id_dep40, member_flags_dep40, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep40 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep40 = "dep40"; + eprosima::fastcdr::optional member_ann_builtin_dep40; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep40 = TypeObjectUtils::build_complete_member_detail(name_dep40, member_ann_builtin_dep40, ann_custom_TypeBig); + CompleteStructMember member_dep40 = TypeObjectUtils::build_complete_struct_member(common_dep40, detail_dep40); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep40); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type41", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type41 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type41; + TypeIdentifierPair type_ids_Type41; + QualifiedTypeName type_name_Type41 = "Type41"; + eprosima::fastcdr::optional type_ann_builtin_Type41; + eprosima::fastcdr::optional ann_custom_Type41; + CompleteTypeDetail detail_Type41 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type41, ann_custom_Type41, type_name_Type41.to_string()); + CompleteStructHeader header_Type41; + header_Type41 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type41); + CompleteStructMemberSeq member_seq_Type41; + { + return_code_Type41 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type41); + + if (return_code_Type41 != 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_Type41.type_identifier1()._d() || TK_NONE == type_ids_Type41.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type41.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type41.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type41.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type41.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type41.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type41.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type41.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type41.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type41.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type41.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type41.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type41.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type41.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type41.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type41.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type41.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type41.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type41.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type41.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type41.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type41.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type41.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type41.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type41.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_Type41.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type41); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type41, member_index); + } + CompleteStructType struct_type_Type41 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type41, header_Type41, member_seq_Type41); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type41, type_name_Type41.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type41 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type41 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type41", type_ids_Type41); + if (return_code_Type41 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type41: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep41 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep41; + MemberId member_id_dep41 = 0x00000029; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep41 = TypeObjectUtils::build_common_struct_member(member_id_dep41, member_flags_dep41, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep41 = TypeObjectUtils::build_common_struct_member(member_id_dep41, member_flags_dep41, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep41 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep41 = "dep41"; + eprosima::fastcdr::optional member_ann_builtin_dep41; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep41 = TypeObjectUtils::build_complete_member_detail(name_dep41, member_ann_builtin_dep41, ann_custom_TypeBig); + CompleteStructMember member_dep41 = TypeObjectUtils::build_complete_struct_member(common_dep41, detail_dep41); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep41); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type42", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type42 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type42; + TypeIdentifierPair type_ids_Type42; + QualifiedTypeName type_name_Type42 = "Type42"; + eprosima::fastcdr::optional type_ann_builtin_Type42; + eprosima::fastcdr::optional ann_custom_Type42; + CompleteTypeDetail detail_Type42 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type42, ann_custom_Type42, type_name_Type42.to_string()); + CompleteStructHeader header_Type42; + header_Type42 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type42); + CompleteStructMemberSeq member_seq_Type42; + { + return_code_Type42 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type42); + + if (return_code_Type42 != 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_Type42.type_identifier1()._d() || TK_NONE == type_ids_Type42.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type42.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type42.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type42.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type42.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type42.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type42.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type42.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type42.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type42.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type42.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type42.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type42.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type42.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type42.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type42.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type42.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type42.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type42.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type42.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type42.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type42.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type42.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type42.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type42.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_Type42.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type42); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type42, member_index); + } + CompleteStructType struct_type_Type42 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type42, header_Type42, member_seq_Type42); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type42, type_name_Type42.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type42 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type42 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type42", type_ids_Type42); + if (return_code_Type42 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type42: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep42 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep42; + MemberId member_id_dep42 = 0x0000002a; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep42 = TypeObjectUtils::build_common_struct_member(member_id_dep42, member_flags_dep42, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep42 = TypeObjectUtils::build_common_struct_member(member_id_dep42, member_flags_dep42, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep42 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep42 = "dep42"; + eprosima::fastcdr::optional member_ann_builtin_dep42; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep42 = TypeObjectUtils::build_complete_member_detail(name_dep42, member_ann_builtin_dep42, ann_custom_TypeBig); + CompleteStructMember member_dep42 = TypeObjectUtils::build_complete_struct_member(common_dep42, detail_dep42); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep42); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type43", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type43 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type43; + TypeIdentifierPair type_ids_Type43; + QualifiedTypeName type_name_Type43 = "Type43"; + eprosima::fastcdr::optional type_ann_builtin_Type43; + eprosima::fastcdr::optional ann_custom_Type43; + CompleteTypeDetail detail_Type43 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type43, ann_custom_Type43, type_name_Type43.to_string()); + CompleteStructHeader header_Type43; + header_Type43 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type43); + CompleteStructMemberSeq member_seq_Type43; + { + return_code_Type43 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type43); + + if (return_code_Type43 != 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_Type43.type_identifier1()._d() || TK_NONE == type_ids_Type43.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type43.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type43.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type43.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type43.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type43.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type43.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type43.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type43.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type43.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type43.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type43.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type43.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type43.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type43.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type43.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type43.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type43.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type43.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type43.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type43.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type43.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type43.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type43.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type43.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_Type43.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type43); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type43, member_index); + } + CompleteStructType struct_type_Type43 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type43, header_Type43, member_seq_Type43); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type43, type_name_Type43.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type43 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type43 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type43", type_ids_Type43); + if (return_code_Type43 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type43: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep43 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep43; + MemberId member_id_dep43 = 0x0000002b; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep43 = TypeObjectUtils::build_common_struct_member(member_id_dep43, member_flags_dep43, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep43 = TypeObjectUtils::build_common_struct_member(member_id_dep43, member_flags_dep43, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep43 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep43 = "dep43"; + eprosima::fastcdr::optional member_ann_builtin_dep43; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep43 = TypeObjectUtils::build_complete_member_detail(name_dep43, member_ann_builtin_dep43, ann_custom_TypeBig); + CompleteStructMember member_dep43 = TypeObjectUtils::build_complete_struct_member(common_dep43, detail_dep43); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep43); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type44", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type44 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type44; + TypeIdentifierPair type_ids_Type44; + QualifiedTypeName type_name_Type44 = "Type44"; + eprosima::fastcdr::optional type_ann_builtin_Type44; + eprosima::fastcdr::optional ann_custom_Type44; + CompleteTypeDetail detail_Type44 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type44, ann_custom_Type44, type_name_Type44.to_string()); + CompleteStructHeader header_Type44; + header_Type44 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type44); + CompleteStructMemberSeq member_seq_Type44; + { + return_code_Type44 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type44); + + if (return_code_Type44 != 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_Type44.type_identifier1()._d() || TK_NONE == type_ids_Type44.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type44.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type44.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type44.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type44.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type44.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type44.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type44.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type44.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type44.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type44.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type44.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type44.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type44.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type44.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type44.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type44.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type44.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type44.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type44.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type44.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type44.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type44.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type44.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type44.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_Type44.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type44); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type44, member_index); + } + CompleteStructType struct_type_Type44 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type44, header_Type44, member_seq_Type44); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type44, type_name_Type44.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type44 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type44 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type44", type_ids_Type44); + if (return_code_Type44 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type44: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep44 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep44; + MemberId member_id_dep44 = 0x0000002c; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep44 = TypeObjectUtils::build_common_struct_member(member_id_dep44, member_flags_dep44, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep44 = TypeObjectUtils::build_common_struct_member(member_id_dep44, member_flags_dep44, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep44 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep44 = "dep44"; + eprosima::fastcdr::optional member_ann_builtin_dep44; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep44 = TypeObjectUtils::build_complete_member_detail(name_dep44, member_ann_builtin_dep44, ann_custom_TypeBig); + CompleteStructMember member_dep44 = TypeObjectUtils::build_complete_struct_member(common_dep44, detail_dep44); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep44); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type45", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type45 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type45; + TypeIdentifierPair type_ids_Type45; + QualifiedTypeName type_name_Type45 = "Type45"; + eprosima::fastcdr::optional type_ann_builtin_Type45; + eprosima::fastcdr::optional ann_custom_Type45; + CompleteTypeDetail detail_Type45 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type45, ann_custom_Type45, type_name_Type45.to_string()); + CompleteStructHeader header_Type45; + header_Type45 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type45); + CompleteStructMemberSeq member_seq_Type45; + { + return_code_Type45 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type45); + + if (return_code_Type45 != 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_Type45.type_identifier1()._d() || TK_NONE == type_ids_Type45.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type45.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type45.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type45.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type45.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type45.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type45.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type45.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type45.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type45.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type45.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type45.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type45.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type45.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type45.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type45.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type45.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type45.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type45.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type45.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type45.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type45.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type45.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type45.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type45.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_Type45.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type45); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type45, member_index); + } + CompleteStructType struct_type_Type45 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type45, header_Type45, member_seq_Type45); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type45, type_name_Type45.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type45 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type45 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type45", type_ids_Type45); + if (return_code_Type45 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type45: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep45 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep45; + MemberId member_id_dep45 = 0x0000002d; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep45 = TypeObjectUtils::build_common_struct_member(member_id_dep45, member_flags_dep45, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep45 = TypeObjectUtils::build_common_struct_member(member_id_dep45, member_flags_dep45, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep45 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep45 = "dep45"; + eprosima::fastcdr::optional member_ann_builtin_dep45; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep45 = TypeObjectUtils::build_complete_member_detail(name_dep45, member_ann_builtin_dep45, ann_custom_TypeBig); + CompleteStructMember member_dep45 = TypeObjectUtils::build_complete_struct_member(common_dep45, detail_dep45); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep45); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type46", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type46 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type46; + TypeIdentifierPair type_ids_Type46; + QualifiedTypeName type_name_Type46 = "Type46"; + eprosima::fastcdr::optional type_ann_builtin_Type46; + eprosima::fastcdr::optional ann_custom_Type46; + CompleteTypeDetail detail_Type46 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type46, ann_custom_Type46, type_name_Type46.to_string()); + CompleteStructHeader header_Type46; + header_Type46 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type46); + CompleteStructMemberSeq member_seq_Type46; + { + return_code_Type46 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type46); + + if (return_code_Type46 != 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_Type46.type_identifier1()._d() || TK_NONE == type_ids_Type46.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type46.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type46.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type46.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type46.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type46.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type46.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type46.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type46.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type46.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type46.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type46.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type46.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type46.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type46.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type46.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type46.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type46.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type46.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type46.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type46.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type46.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type46.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type46.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type46.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_Type46.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type46); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type46, member_index); + } + CompleteStructType struct_type_Type46 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type46, header_Type46, member_seq_Type46); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type46, type_name_Type46.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type46 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type46 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type46", type_ids_Type46); + if (return_code_Type46 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type46: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep46 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep46; + MemberId member_id_dep46 = 0x0000002e; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep46 = TypeObjectUtils::build_common_struct_member(member_id_dep46, member_flags_dep46, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep46 = TypeObjectUtils::build_common_struct_member(member_id_dep46, member_flags_dep46, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep46 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep46 = "dep46"; + eprosima::fastcdr::optional member_ann_builtin_dep46; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep46 = TypeObjectUtils::build_complete_member_detail(name_dep46, member_ann_builtin_dep46, ann_custom_TypeBig); + CompleteStructMember member_dep46 = TypeObjectUtils::build_complete_struct_member(common_dep46, detail_dep46); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep46); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type47", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type47 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type47; + TypeIdentifierPair type_ids_Type47; + QualifiedTypeName type_name_Type47 = "Type47"; + eprosima::fastcdr::optional type_ann_builtin_Type47; + eprosima::fastcdr::optional ann_custom_Type47; + CompleteTypeDetail detail_Type47 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type47, ann_custom_Type47, type_name_Type47.to_string()); + CompleteStructHeader header_Type47; + header_Type47 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type47); + CompleteStructMemberSeq member_seq_Type47; + { + return_code_Type47 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type47); + + if (return_code_Type47 != 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_Type47.type_identifier1()._d() || TK_NONE == type_ids_Type47.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type47.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type47.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type47.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type47.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type47.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type47.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type47.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type47.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type47.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type47.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type47.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type47.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type47.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type47.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type47.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type47.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type47.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type47.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type47.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type47.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type47.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type47.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type47.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type47.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_Type47.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type47); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type47, member_index); + } + CompleteStructType struct_type_Type47 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type47, header_Type47, member_seq_Type47); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type47, type_name_Type47.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type47 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type47 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type47", type_ids_Type47); + if (return_code_Type47 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type47: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep47 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep47; + MemberId member_id_dep47 = 0x0000002f; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep47 = TypeObjectUtils::build_common_struct_member(member_id_dep47, member_flags_dep47, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep47 = TypeObjectUtils::build_common_struct_member(member_id_dep47, member_flags_dep47, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep47 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep47 = "dep47"; + eprosima::fastcdr::optional member_ann_builtin_dep47; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep47 = TypeObjectUtils::build_complete_member_detail(name_dep47, member_ann_builtin_dep47, ann_custom_TypeBig); + CompleteStructMember member_dep47 = TypeObjectUtils::build_complete_struct_member(common_dep47, detail_dep47); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep47); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type48", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type48 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type48; + TypeIdentifierPair type_ids_Type48; + QualifiedTypeName type_name_Type48 = "Type48"; + eprosima::fastcdr::optional type_ann_builtin_Type48; + eprosima::fastcdr::optional ann_custom_Type48; + CompleteTypeDetail detail_Type48 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type48, ann_custom_Type48, type_name_Type48.to_string()); + CompleteStructHeader header_Type48; + header_Type48 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type48); + CompleteStructMemberSeq member_seq_Type48; + { + return_code_Type48 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type48); + + if (return_code_Type48 != 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_Type48.type_identifier1()._d() || TK_NONE == type_ids_Type48.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type48.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type48.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type48.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type48.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type48.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type48.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type48.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type48.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type48.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type48.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type48.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type48.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type48.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type48.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type48.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type48.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type48.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type48.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type48.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type48.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type48.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type48.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type48.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type48.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_Type48.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type48); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type48, member_index); + } + CompleteStructType struct_type_Type48 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type48, header_Type48, member_seq_Type48); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type48, type_name_Type48.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type48 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type48 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type48", type_ids_Type48); + if (return_code_Type48 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type48: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep48 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep48; + MemberId member_id_dep48 = 0x00000030; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep48 = TypeObjectUtils::build_common_struct_member(member_id_dep48, member_flags_dep48, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep48 = TypeObjectUtils::build_common_struct_member(member_id_dep48, member_flags_dep48, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep48 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep48 = "dep48"; + eprosima::fastcdr::optional member_ann_builtin_dep48; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep48 = TypeObjectUtils::build_complete_member_detail(name_dep48, member_ann_builtin_dep48, ann_custom_TypeBig); + CompleteStructMember member_dep48 = TypeObjectUtils::build_complete_struct_member(common_dep48, detail_dep48); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep48); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type49", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type49 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type49; + TypeIdentifierPair type_ids_Type49; + QualifiedTypeName type_name_Type49 = "Type49"; + eprosima::fastcdr::optional type_ann_builtin_Type49; + eprosima::fastcdr::optional ann_custom_Type49; + CompleteTypeDetail detail_Type49 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type49, ann_custom_Type49, type_name_Type49.to_string()); + CompleteStructHeader header_Type49; + header_Type49 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type49); + CompleteStructMemberSeq member_seq_Type49; + { + return_code_Type49 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type49); + + if (return_code_Type49 != 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_Type49.type_identifier1()._d() || TK_NONE == type_ids_Type49.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type49.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type49.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type49.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type49.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type49.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type49.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type49.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type49.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type49.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type49.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type49.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type49.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type49.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type49.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type49.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type49.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type49.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type49.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type49.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type49.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type49.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type49.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type49.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type49.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_Type49.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type49); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type49, member_index); + } + CompleteStructType struct_type_Type49 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type49, header_Type49, member_seq_Type49); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type49, type_name_Type49.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type49 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type49 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type49", type_ids_Type49); + if (return_code_Type49 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type49: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep49 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep49; + MemberId member_id_dep49 = 0x00000031; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep49 = TypeObjectUtils::build_common_struct_member(member_id_dep49, member_flags_dep49, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep49 = TypeObjectUtils::build_common_struct_member(member_id_dep49, member_flags_dep49, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep49 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep49 = "dep49"; + eprosima::fastcdr::optional member_ann_builtin_dep49; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep49 = TypeObjectUtils::build_complete_member_detail(name_dep49, member_ann_builtin_dep49, ann_custom_TypeBig); + CompleteStructMember member_dep49 = TypeObjectUtils::build_complete_struct_member(common_dep49, detail_dep49); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep49); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type50", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type50 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type50; + TypeIdentifierPair type_ids_Type50; + QualifiedTypeName type_name_Type50 = "Type50"; + eprosima::fastcdr::optional type_ann_builtin_Type50; + eprosima::fastcdr::optional ann_custom_Type50; + CompleteTypeDetail detail_Type50 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type50, ann_custom_Type50, type_name_Type50.to_string()); + CompleteStructHeader header_Type50; + header_Type50 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type50); + CompleteStructMemberSeq member_seq_Type50; + { + return_code_Type50 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type50); + + if (return_code_Type50 != 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_Type50.type_identifier1()._d() || TK_NONE == type_ids_Type50.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type50.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type50.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type50.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type50.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type50.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type50.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type50.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type50.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type50.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type50.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type50.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type50.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type50.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type50.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type50.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type50.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type50.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type50.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type50.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type50.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type50.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type50.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type50.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type50.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_Type50.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type50); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type50, member_index); + } + CompleteStructType struct_type_Type50 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type50, header_Type50, member_seq_Type50); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type50, type_name_Type50.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type50 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type50 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type50", type_ids_Type50); + if (return_code_Type50 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type50: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep50 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep50; + MemberId member_id_dep50 = 0x00000032; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep50 = TypeObjectUtils::build_common_struct_member(member_id_dep50, member_flags_dep50, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep50 = TypeObjectUtils::build_common_struct_member(member_id_dep50, member_flags_dep50, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep50 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep50 = "dep50"; + eprosima::fastcdr::optional member_ann_builtin_dep50; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep50 = TypeObjectUtils::build_complete_member_detail(name_dep50, member_ann_builtin_dep50, ann_custom_TypeBig); + CompleteStructMember member_dep50 = TypeObjectUtils::build_complete_struct_member(common_dep50, detail_dep50); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep50); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type51", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type51 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type51; + TypeIdentifierPair type_ids_Type51; + QualifiedTypeName type_name_Type51 = "Type51"; + eprosima::fastcdr::optional type_ann_builtin_Type51; + eprosima::fastcdr::optional ann_custom_Type51; + CompleteTypeDetail detail_Type51 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type51, ann_custom_Type51, type_name_Type51.to_string()); + CompleteStructHeader header_Type51; + header_Type51 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type51); + CompleteStructMemberSeq member_seq_Type51; + { + return_code_Type51 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type51); + + if (return_code_Type51 != 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_Type51.type_identifier1()._d() || TK_NONE == type_ids_Type51.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type51.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type51.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type51.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type51.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type51.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type51.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type51.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type51.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type51.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type51.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type51.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type51.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type51.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type51.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type51.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type51.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type51.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type51.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type51.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type51.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type51.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type51.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type51.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type51.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_Type51.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type51); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type51, member_index); + } + CompleteStructType struct_type_Type51 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type51, header_Type51, member_seq_Type51); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type51, type_name_Type51.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type51 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type51 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type51", type_ids_Type51); + if (return_code_Type51 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type51: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep51 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep51; + MemberId member_id_dep51 = 0x00000033; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep51 = TypeObjectUtils::build_common_struct_member(member_id_dep51, member_flags_dep51, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep51 = TypeObjectUtils::build_common_struct_member(member_id_dep51, member_flags_dep51, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep51 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep51 = "dep51"; + eprosima::fastcdr::optional member_ann_builtin_dep51; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep51 = TypeObjectUtils::build_complete_member_detail(name_dep51, member_ann_builtin_dep51, ann_custom_TypeBig); + CompleteStructMember member_dep51 = TypeObjectUtils::build_complete_struct_member(common_dep51, detail_dep51); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep51); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type52", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type52 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type52; + TypeIdentifierPair type_ids_Type52; + QualifiedTypeName type_name_Type52 = "Type52"; + eprosima::fastcdr::optional type_ann_builtin_Type52; + eprosima::fastcdr::optional ann_custom_Type52; + CompleteTypeDetail detail_Type52 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type52, ann_custom_Type52, type_name_Type52.to_string()); + CompleteStructHeader header_Type52; + header_Type52 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type52); + CompleteStructMemberSeq member_seq_Type52; + { + return_code_Type52 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type52); + + if (return_code_Type52 != 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_Type52.type_identifier1()._d() || TK_NONE == type_ids_Type52.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type52.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type52.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type52.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type52.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type52.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type52.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type52.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type52.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type52.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type52.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type52.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type52.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type52.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type52.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type52.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type52.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type52.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type52.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type52.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type52.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type52.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type52.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type52.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type52.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_Type52.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type52); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type52, member_index); + } + CompleteStructType struct_type_Type52 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type52, header_Type52, member_seq_Type52); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type52, type_name_Type52.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type52 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type52 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type52", type_ids_Type52); + if (return_code_Type52 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type52: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep52 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep52; + MemberId member_id_dep52 = 0x00000034; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep52 = TypeObjectUtils::build_common_struct_member(member_id_dep52, member_flags_dep52, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep52 = TypeObjectUtils::build_common_struct_member(member_id_dep52, member_flags_dep52, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep52 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep52 = "dep52"; + eprosima::fastcdr::optional member_ann_builtin_dep52; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep52 = TypeObjectUtils::build_complete_member_detail(name_dep52, member_ann_builtin_dep52, ann_custom_TypeBig); + CompleteStructMember member_dep52 = TypeObjectUtils::build_complete_struct_member(common_dep52, detail_dep52); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep52); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type53", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type53 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type53; + TypeIdentifierPair type_ids_Type53; + QualifiedTypeName type_name_Type53 = "Type53"; + eprosima::fastcdr::optional type_ann_builtin_Type53; + eprosima::fastcdr::optional ann_custom_Type53; + CompleteTypeDetail detail_Type53 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type53, ann_custom_Type53, type_name_Type53.to_string()); + CompleteStructHeader header_Type53; + header_Type53 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type53); + CompleteStructMemberSeq member_seq_Type53; + { + return_code_Type53 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type53); + + if (return_code_Type53 != 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_Type53.type_identifier1()._d() || TK_NONE == type_ids_Type53.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type53.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type53.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type53.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type53.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type53.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type53.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type53.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type53.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type53.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type53.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type53.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type53.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type53.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type53.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type53.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type53.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type53.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type53.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type53.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type53.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type53.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type53.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type53.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type53.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_Type53.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type53); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type53, member_index); + } + CompleteStructType struct_type_Type53 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type53, header_Type53, member_seq_Type53); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type53, type_name_Type53.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type53 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type53 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type53", type_ids_Type53); + if (return_code_Type53 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type53: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep53 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep53; + MemberId member_id_dep53 = 0x00000035; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep53 = TypeObjectUtils::build_common_struct_member(member_id_dep53, member_flags_dep53, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep53 = TypeObjectUtils::build_common_struct_member(member_id_dep53, member_flags_dep53, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep53 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep53 = "dep53"; + eprosima::fastcdr::optional member_ann_builtin_dep53; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep53 = TypeObjectUtils::build_complete_member_detail(name_dep53, member_ann_builtin_dep53, ann_custom_TypeBig); + CompleteStructMember member_dep53 = TypeObjectUtils::build_complete_struct_member(common_dep53, detail_dep53); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep53); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type54", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type54 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type54; + TypeIdentifierPair type_ids_Type54; + QualifiedTypeName type_name_Type54 = "Type54"; + eprosima::fastcdr::optional type_ann_builtin_Type54; + eprosima::fastcdr::optional ann_custom_Type54; + CompleteTypeDetail detail_Type54 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type54, ann_custom_Type54, type_name_Type54.to_string()); + CompleteStructHeader header_Type54; + header_Type54 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type54); + CompleteStructMemberSeq member_seq_Type54; + { + return_code_Type54 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type54); + + if (return_code_Type54 != 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_Type54.type_identifier1()._d() || TK_NONE == type_ids_Type54.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type54.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type54.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type54.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type54.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type54.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type54.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type54.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type54.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type54.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type54.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type54.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type54.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type54.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type54.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type54.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type54.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type54.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type54.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type54.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type54.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type54.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type54.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type54.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type54.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_Type54.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type54); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type54, member_index); + } + CompleteStructType struct_type_Type54 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type54, header_Type54, member_seq_Type54); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type54, type_name_Type54.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type54 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type54 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type54", type_ids_Type54); + if (return_code_Type54 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type54: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep54 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep54; + MemberId member_id_dep54 = 0x00000036; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep54 = TypeObjectUtils::build_common_struct_member(member_id_dep54, member_flags_dep54, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep54 = TypeObjectUtils::build_common_struct_member(member_id_dep54, member_flags_dep54, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep54 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep54 = "dep54"; + eprosima::fastcdr::optional member_ann_builtin_dep54; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep54 = TypeObjectUtils::build_complete_member_detail(name_dep54, member_ann_builtin_dep54, ann_custom_TypeBig); + CompleteStructMember member_dep54 = TypeObjectUtils::build_complete_struct_member(common_dep54, detail_dep54); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep54); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type55", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type55 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type55; + TypeIdentifierPair type_ids_Type55; + QualifiedTypeName type_name_Type55 = "Type55"; + eprosima::fastcdr::optional type_ann_builtin_Type55; + eprosima::fastcdr::optional ann_custom_Type55; + CompleteTypeDetail detail_Type55 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type55, ann_custom_Type55, type_name_Type55.to_string()); + CompleteStructHeader header_Type55; + header_Type55 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type55); + CompleteStructMemberSeq member_seq_Type55; + { + return_code_Type55 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type55); + + if (return_code_Type55 != 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_Type55.type_identifier1()._d() || TK_NONE == type_ids_Type55.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type55.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type55.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type55.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type55.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type55.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type55.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type55.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type55.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type55.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type55.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type55.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type55.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type55.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type55.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type55.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type55.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type55.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type55.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type55.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type55.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type55.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type55.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type55.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type55.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_Type55.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type55); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type55, member_index); + } + CompleteStructType struct_type_Type55 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type55, header_Type55, member_seq_Type55); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type55, type_name_Type55.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type55 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type55 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type55", type_ids_Type55); + if (return_code_Type55 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type55: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep55 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep55; + MemberId member_id_dep55 = 0x00000037; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep55 = TypeObjectUtils::build_common_struct_member(member_id_dep55, member_flags_dep55, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep55 = TypeObjectUtils::build_common_struct_member(member_id_dep55, member_flags_dep55, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep55 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep55 = "dep55"; + eprosima::fastcdr::optional member_ann_builtin_dep55; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep55 = TypeObjectUtils::build_complete_member_detail(name_dep55, member_ann_builtin_dep55, ann_custom_TypeBig); + CompleteStructMember member_dep55 = TypeObjectUtils::build_complete_struct_member(common_dep55, detail_dep55); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep55); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type56", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type56 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type56; + TypeIdentifierPair type_ids_Type56; + QualifiedTypeName type_name_Type56 = "Type56"; + eprosima::fastcdr::optional type_ann_builtin_Type56; + eprosima::fastcdr::optional ann_custom_Type56; + CompleteTypeDetail detail_Type56 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type56, ann_custom_Type56, type_name_Type56.to_string()); + CompleteStructHeader header_Type56; + header_Type56 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type56); + CompleteStructMemberSeq member_seq_Type56; + { + return_code_Type56 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type56); + + if (return_code_Type56 != 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_Type56.type_identifier1()._d() || TK_NONE == type_ids_Type56.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type56.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type56.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type56.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type56.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type56.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type56.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type56.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type56.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type56.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type56.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type56.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type56.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type56.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type56.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type56.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type56.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type56.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type56.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type56.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type56.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type56.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type56.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type56.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type56.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_Type56.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type56); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type56, member_index); + } + CompleteStructType struct_type_Type56 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type56, header_Type56, member_seq_Type56); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type56, type_name_Type56.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type56 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type56 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type56", type_ids_Type56); + if (return_code_Type56 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type56: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep56 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep56; + MemberId member_id_dep56 = 0x00000038; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep56 = TypeObjectUtils::build_common_struct_member(member_id_dep56, member_flags_dep56, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep56 = TypeObjectUtils::build_common_struct_member(member_id_dep56, member_flags_dep56, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep56 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep56 = "dep56"; + eprosima::fastcdr::optional member_ann_builtin_dep56; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep56 = TypeObjectUtils::build_complete_member_detail(name_dep56, member_ann_builtin_dep56, ann_custom_TypeBig); + CompleteStructMember member_dep56 = TypeObjectUtils::build_complete_struct_member(common_dep56, detail_dep56); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep56); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type57", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type57 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type57; + TypeIdentifierPair type_ids_Type57; + QualifiedTypeName type_name_Type57 = "Type57"; + eprosima::fastcdr::optional type_ann_builtin_Type57; + eprosima::fastcdr::optional ann_custom_Type57; + CompleteTypeDetail detail_Type57 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type57, ann_custom_Type57, type_name_Type57.to_string()); + CompleteStructHeader header_Type57; + header_Type57 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type57); + CompleteStructMemberSeq member_seq_Type57; + { + return_code_Type57 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type57); + + if (return_code_Type57 != 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_Type57.type_identifier1()._d() || TK_NONE == type_ids_Type57.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type57.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type57.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type57.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type57.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type57.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type57.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type57.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type57.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type57.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type57.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type57.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type57.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type57.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type57.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type57.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type57.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type57.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type57.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type57.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type57.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type57.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type57.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type57.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type57.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_Type57.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type57); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type57, member_index); + } + CompleteStructType struct_type_Type57 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type57, header_Type57, member_seq_Type57); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type57, type_name_Type57.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type57 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type57 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type57", type_ids_Type57); + if (return_code_Type57 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type57: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep57 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep57; + MemberId member_id_dep57 = 0x00000039; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep57 = TypeObjectUtils::build_common_struct_member(member_id_dep57, member_flags_dep57, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep57 = TypeObjectUtils::build_common_struct_member(member_id_dep57, member_flags_dep57, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep57 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep57 = "dep57"; + eprosima::fastcdr::optional member_ann_builtin_dep57; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep57 = TypeObjectUtils::build_complete_member_detail(name_dep57, member_ann_builtin_dep57, ann_custom_TypeBig); + CompleteStructMember member_dep57 = TypeObjectUtils::build_complete_struct_member(common_dep57, detail_dep57); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep57); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type58", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type58 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type58; + TypeIdentifierPair type_ids_Type58; + QualifiedTypeName type_name_Type58 = "Type58"; + eprosima::fastcdr::optional type_ann_builtin_Type58; + eprosima::fastcdr::optional ann_custom_Type58; + CompleteTypeDetail detail_Type58 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type58, ann_custom_Type58, type_name_Type58.to_string()); + CompleteStructHeader header_Type58; + header_Type58 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type58); + CompleteStructMemberSeq member_seq_Type58; + { + return_code_Type58 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type58); + + if (return_code_Type58 != 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_Type58.type_identifier1()._d() || TK_NONE == type_ids_Type58.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type58.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type58.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type58.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type58.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type58.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type58.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type58.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type58.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type58.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type58.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type58.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type58.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type58.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type58.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type58.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type58.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type58.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type58.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type58.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type58.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type58.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type58.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type58.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type58.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_Type58.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type58); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type58, member_index); + } + CompleteStructType struct_type_Type58 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type58, header_Type58, member_seq_Type58); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type58, type_name_Type58.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type58 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type58 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type58", type_ids_Type58); + if (return_code_Type58 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type58: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep58 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep58; + MemberId member_id_dep58 = 0x0000003a; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep58 = TypeObjectUtils::build_common_struct_member(member_id_dep58, member_flags_dep58, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep58 = TypeObjectUtils::build_common_struct_member(member_id_dep58, member_flags_dep58, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep58 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep58 = "dep58"; + eprosima::fastcdr::optional member_ann_builtin_dep58; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep58 = TypeObjectUtils::build_complete_member_detail(name_dep58, member_ann_builtin_dep58, ann_custom_TypeBig); + CompleteStructMember member_dep58 = TypeObjectUtils::build_complete_struct_member(common_dep58, detail_dep58); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep58); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type59", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type59 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type59; + TypeIdentifierPair type_ids_Type59; + QualifiedTypeName type_name_Type59 = "Type59"; + eprosima::fastcdr::optional type_ann_builtin_Type59; + eprosima::fastcdr::optional ann_custom_Type59; + CompleteTypeDetail detail_Type59 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type59, ann_custom_Type59, type_name_Type59.to_string()); + CompleteStructHeader header_Type59; + header_Type59 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type59); + CompleteStructMemberSeq member_seq_Type59; + { + return_code_Type59 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type59); + + if (return_code_Type59 != 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_Type59.type_identifier1()._d() || TK_NONE == type_ids_Type59.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type59.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type59.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type59.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type59.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type59.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type59.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type59.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type59.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type59.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type59.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type59.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type59.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type59.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type59.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type59.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type59.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type59.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type59.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type59.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type59.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type59.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type59.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type59.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type59.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_Type59.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type59); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type59, member_index); + } + CompleteStructType struct_type_Type59 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type59, header_Type59, member_seq_Type59); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type59, type_name_Type59.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type59 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type59 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type59", type_ids_Type59); + if (return_code_Type59 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type59: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep59 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep59; + MemberId member_id_dep59 = 0x0000003b; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep59 = TypeObjectUtils::build_common_struct_member(member_id_dep59, member_flags_dep59, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep59 = TypeObjectUtils::build_common_struct_member(member_id_dep59, member_flags_dep59, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep59 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep59 = "dep59"; + eprosima::fastcdr::optional member_ann_builtin_dep59; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep59 = TypeObjectUtils::build_complete_member_detail(name_dep59, member_ann_builtin_dep59, ann_custom_TypeBig); + CompleteStructMember member_dep59 = TypeObjectUtils::build_complete_struct_member(common_dep59, detail_dep59); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep59); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type60", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type60 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type60; + TypeIdentifierPair type_ids_Type60; + QualifiedTypeName type_name_Type60 = "Type60"; + eprosima::fastcdr::optional type_ann_builtin_Type60; + eprosima::fastcdr::optional ann_custom_Type60; + CompleteTypeDetail detail_Type60 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type60, ann_custom_Type60, type_name_Type60.to_string()); + CompleteStructHeader header_Type60; + header_Type60 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type60); + CompleteStructMemberSeq member_seq_Type60; + { + return_code_Type60 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type60); + + if (return_code_Type60 != 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_Type60.type_identifier1()._d() || TK_NONE == type_ids_Type60.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type60.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type60.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type60.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type60.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type60.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type60.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type60.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type60.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type60.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type60.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type60.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type60.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type60.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type60.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type60.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type60.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type60.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type60.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type60.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type60.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type60.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type60.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type60.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type60.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_Type60.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type60); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type60, member_index); + } + CompleteStructType struct_type_Type60 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type60, header_Type60, member_seq_Type60); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type60, type_name_Type60.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type60 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type60 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type60", type_ids_Type60); + if (return_code_Type60 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type60: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep60 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep60; + MemberId member_id_dep60 = 0x0000003c; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep60 = TypeObjectUtils::build_common_struct_member(member_id_dep60, member_flags_dep60, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep60 = TypeObjectUtils::build_common_struct_member(member_id_dep60, member_flags_dep60, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep60 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep60 = "dep60"; + eprosima::fastcdr::optional member_ann_builtin_dep60; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep60 = TypeObjectUtils::build_complete_member_detail(name_dep60, member_ann_builtin_dep60, ann_custom_TypeBig); + CompleteStructMember member_dep60 = TypeObjectUtils::build_complete_struct_member(common_dep60, detail_dep60); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep60); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type61", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type61 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type61; + TypeIdentifierPair type_ids_Type61; + QualifiedTypeName type_name_Type61 = "Type61"; + eprosima::fastcdr::optional type_ann_builtin_Type61; + eprosima::fastcdr::optional ann_custom_Type61; + CompleteTypeDetail detail_Type61 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type61, ann_custom_Type61, type_name_Type61.to_string()); + CompleteStructHeader header_Type61; + header_Type61 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type61); + CompleteStructMemberSeq member_seq_Type61; + { + return_code_Type61 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type61); + + if (return_code_Type61 != 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_Type61.type_identifier1()._d() || TK_NONE == type_ids_Type61.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type61.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type61.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type61.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type61.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type61.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type61.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type61.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type61.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type61.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type61.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type61.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type61.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type61.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type61.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type61.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type61.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type61.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type61.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type61.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type61.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type61.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type61.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type61.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type61.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_Type61.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type61); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type61, member_index); + } + CompleteStructType struct_type_Type61 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type61, header_Type61, member_seq_Type61); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type61, type_name_Type61.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type61 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type61 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type61", type_ids_Type61); + if (return_code_Type61 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type61: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep61 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep61; + MemberId member_id_dep61 = 0x0000003d; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep61 = TypeObjectUtils::build_common_struct_member(member_id_dep61, member_flags_dep61, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep61 = TypeObjectUtils::build_common_struct_member(member_id_dep61, member_flags_dep61, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep61 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep61 = "dep61"; + eprosima::fastcdr::optional member_ann_builtin_dep61; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep61 = TypeObjectUtils::build_complete_member_detail(name_dep61, member_ann_builtin_dep61, ann_custom_TypeBig); + CompleteStructMember member_dep61 = TypeObjectUtils::build_complete_struct_member(common_dep61, detail_dep61); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep61); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type62", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type62 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type62; + TypeIdentifierPair type_ids_Type62; + QualifiedTypeName type_name_Type62 = "Type62"; + eprosima::fastcdr::optional type_ann_builtin_Type62; + eprosima::fastcdr::optional ann_custom_Type62; + CompleteTypeDetail detail_Type62 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type62, ann_custom_Type62, type_name_Type62.to_string()); + CompleteStructHeader header_Type62; + header_Type62 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type62); + CompleteStructMemberSeq member_seq_Type62; + { + return_code_Type62 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type62); + + if (return_code_Type62 != 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_Type62.type_identifier1()._d() || TK_NONE == type_ids_Type62.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type62.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type62.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type62.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type62.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type62.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type62.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type62.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type62.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type62.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type62.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type62.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type62.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type62.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type62.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type62.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type62.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type62.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type62.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type62.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type62.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type62.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type62.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type62.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type62.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_Type62.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type62); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type62, member_index); + } + CompleteStructType struct_type_Type62 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type62, header_Type62, member_seq_Type62); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type62, type_name_Type62.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type62 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type62 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type62", type_ids_Type62); + if (return_code_Type62 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type62: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep62 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep62; + MemberId member_id_dep62 = 0x0000003e; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep62 = TypeObjectUtils::build_common_struct_member(member_id_dep62, member_flags_dep62, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep62 = TypeObjectUtils::build_common_struct_member(member_id_dep62, member_flags_dep62, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep62 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep62 = "dep62"; + eprosima::fastcdr::optional member_ann_builtin_dep62; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep62 = TypeObjectUtils::build_complete_member_detail(name_dep62, member_ann_builtin_dep62, ann_custom_TypeBig); + CompleteStructMember member_dep62 = TypeObjectUtils::build_complete_struct_member(common_dep62, detail_dep62); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep62); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type63", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type63 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type63; + TypeIdentifierPair type_ids_Type63; + QualifiedTypeName type_name_Type63 = "Type63"; + eprosima::fastcdr::optional type_ann_builtin_Type63; + eprosima::fastcdr::optional ann_custom_Type63; + CompleteTypeDetail detail_Type63 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type63, ann_custom_Type63, type_name_Type63.to_string()); + CompleteStructHeader header_Type63; + header_Type63 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type63); + CompleteStructMemberSeq member_seq_Type63; + { + return_code_Type63 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type63); + + if (return_code_Type63 != 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_Type63.type_identifier1()._d() || TK_NONE == type_ids_Type63.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type63.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type63.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type63.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type63.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type63.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type63.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type63.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type63.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type63.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type63.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type63.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type63.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type63.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type63.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type63.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type63.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type63.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type63.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type63.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type63.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type63.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type63.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type63.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type63.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_Type63.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type63); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type63, member_index); + } + CompleteStructType struct_type_Type63 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type63, header_Type63, member_seq_Type63); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type63, type_name_Type63.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type63 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type63 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type63", type_ids_Type63); + if (return_code_Type63 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type63: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep63 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep63; + MemberId member_id_dep63 = 0x0000003f; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep63 = TypeObjectUtils::build_common_struct_member(member_id_dep63, member_flags_dep63, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep63 = TypeObjectUtils::build_common_struct_member(member_id_dep63, member_flags_dep63, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep63 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep63 = "dep63"; + eprosima::fastcdr::optional member_ann_builtin_dep63; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep63 = TypeObjectUtils::build_complete_member_detail(name_dep63, member_ann_builtin_dep63, ann_custom_TypeBig); + CompleteStructMember member_dep63 = TypeObjectUtils::build_complete_struct_member(common_dep63, detail_dep63); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep63); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type64", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type64; + TypeIdentifierPair type_ids_Type64; + QualifiedTypeName type_name_Type64 = "Type64"; + eprosima::fastcdr::optional type_ann_builtin_Type64; + eprosima::fastcdr::optional ann_custom_Type64; + CompleteTypeDetail detail_Type64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type64, ann_custom_Type64, type_name_Type64.to_string()); + CompleteStructHeader header_Type64; + header_Type64 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type64); + CompleteStructMemberSeq member_seq_Type64; + { + return_code_Type64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type64); + + if (return_code_Type64 != 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_Type64.type_identifier1()._d() || TK_NONE == type_ids_Type64.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type64.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type64.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type64.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type64.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type64.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type64.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type64.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type64.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type64.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type64.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type64.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type64.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type64.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type64.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type64.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type64.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type64.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type64.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type64.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type64.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type64.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type64.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type64.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type64.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_Type64.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type64); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type64, member_index); + } + CompleteStructType struct_type_Type64 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type64, header_Type64, member_seq_Type64); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type64, type_name_Type64.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type64 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type64", type_ids_Type64); + if (return_code_Type64 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type64: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep64; + MemberId member_id_dep64 = 0x00000040; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep64 = TypeObjectUtils::build_common_struct_member(member_id_dep64, member_flags_dep64, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep64 = TypeObjectUtils::build_common_struct_member(member_id_dep64, member_flags_dep64, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep64 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep64 = "dep64"; + eprosima::fastcdr::optional member_ann_builtin_dep64; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep64 = TypeObjectUtils::build_complete_member_detail(name_dep64, member_ann_builtin_dep64, ann_custom_TypeBig); + CompleteStructMember member_dep64 = TypeObjectUtils::build_complete_struct_member(common_dep64, detail_dep64); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep64); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type65", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type65 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type65; + TypeIdentifierPair type_ids_Type65; + QualifiedTypeName type_name_Type65 = "Type65"; + eprosima::fastcdr::optional type_ann_builtin_Type65; + eprosima::fastcdr::optional ann_custom_Type65; + CompleteTypeDetail detail_Type65 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type65, ann_custom_Type65, type_name_Type65.to_string()); + CompleteStructHeader header_Type65; + header_Type65 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type65); + CompleteStructMemberSeq member_seq_Type65; + { + return_code_Type65 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type65); + + if (return_code_Type65 != 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_Type65.type_identifier1()._d() || TK_NONE == type_ids_Type65.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type65.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type65.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type65.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type65.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type65.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type65.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type65.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type65.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type65.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type65.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type65.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type65.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type65.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type65.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type65.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type65.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type65.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type65.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type65.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type65.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type65.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type65.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type65.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type65.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_Type65.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type65); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type65, member_index); + } + CompleteStructType struct_type_Type65 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type65, header_Type65, member_seq_Type65); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type65, type_name_Type65.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type65 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type65 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type65", type_ids_Type65); + if (return_code_Type65 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type65: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep65 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep65; + MemberId member_id_dep65 = 0x00000041; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep65 = TypeObjectUtils::build_common_struct_member(member_id_dep65, member_flags_dep65, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep65 = TypeObjectUtils::build_common_struct_member(member_id_dep65, member_flags_dep65, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep65 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep65 = "dep65"; + eprosima::fastcdr::optional member_ann_builtin_dep65; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep65 = TypeObjectUtils::build_complete_member_detail(name_dep65, member_ann_builtin_dep65, ann_custom_TypeBig); + CompleteStructMember member_dep65 = TypeObjectUtils::build_complete_struct_member(common_dep65, detail_dep65); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep65); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type66", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type66 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type66; + TypeIdentifierPair type_ids_Type66; + QualifiedTypeName type_name_Type66 = "Type66"; + eprosima::fastcdr::optional type_ann_builtin_Type66; + eprosima::fastcdr::optional ann_custom_Type66; + CompleteTypeDetail detail_Type66 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type66, ann_custom_Type66, type_name_Type66.to_string()); + CompleteStructHeader header_Type66; + header_Type66 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type66); + CompleteStructMemberSeq member_seq_Type66; + { + return_code_Type66 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type66); + + if (return_code_Type66 != 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_Type66.type_identifier1()._d() || TK_NONE == type_ids_Type66.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type66.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type66.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type66.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type66.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type66.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type66.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type66.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type66.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type66.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type66.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type66.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type66.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type66.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type66.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type66.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type66.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type66.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type66.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type66.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type66.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type66.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type66.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type66.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type66.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_Type66.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type66); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type66, member_index); + } + CompleteStructType struct_type_Type66 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type66, header_Type66, member_seq_Type66); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type66, type_name_Type66.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type66 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type66 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type66", type_ids_Type66); + if (return_code_Type66 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type66: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep66 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep66; + MemberId member_id_dep66 = 0x00000042; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep66 = TypeObjectUtils::build_common_struct_member(member_id_dep66, member_flags_dep66, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep66 = TypeObjectUtils::build_common_struct_member(member_id_dep66, member_flags_dep66, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep66 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep66 = "dep66"; + eprosima::fastcdr::optional member_ann_builtin_dep66; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep66 = TypeObjectUtils::build_complete_member_detail(name_dep66, member_ann_builtin_dep66, ann_custom_TypeBig); + CompleteStructMember member_dep66 = TypeObjectUtils::build_complete_struct_member(common_dep66, detail_dep66); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep66); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type67", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type67 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type67; + TypeIdentifierPair type_ids_Type67; + QualifiedTypeName type_name_Type67 = "Type67"; + eprosima::fastcdr::optional type_ann_builtin_Type67; + eprosima::fastcdr::optional ann_custom_Type67; + CompleteTypeDetail detail_Type67 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type67, ann_custom_Type67, type_name_Type67.to_string()); + CompleteStructHeader header_Type67; + header_Type67 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type67); + CompleteStructMemberSeq member_seq_Type67; + { + return_code_Type67 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type67); + + if (return_code_Type67 != 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_Type67.type_identifier1()._d() || TK_NONE == type_ids_Type67.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type67.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type67.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type67.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type67.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type67.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type67.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type67.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type67.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type67.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type67.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type67.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type67.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type67.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type67.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type67.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type67.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type67.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type67.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type67.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type67.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type67.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type67.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type67.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type67.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_Type67.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type67); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type67, member_index); + } + CompleteStructType struct_type_Type67 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type67, header_Type67, member_seq_Type67); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type67, type_name_Type67.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type67 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type67 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type67", type_ids_Type67); + if (return_code_Type67 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type67: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep67 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep67; + MemberId member_id_dep67 = 0x00000043; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep67 = TypeObjectUtils::build_common_struct_member(member_id_dep67, member_flags_dep67, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep67 = TypeObjectUtils::build_common_struct_member(member_id_dep67, member_flags_dep67, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep67 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep67 = "dep67"; + eprosima::fastcdr::optional member_ann_builtin_dep67; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep67 = TypeObjectUtils::build_complete_member_detail(name_dep67, member_ann_builtin_dep67, ann_custom_TypeBig); + CompleteStructMember member_dep67 = TypeObjectUtils::build_complete_struct_member(common_dep67, detail_dep67); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep67); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type68", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type68 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type68; + TypeIdentifierPair type_ids_Type68; + QualifiedTypeName type_name_Type68 = "Type68"; + eprosima::fastcdr::optional type_ann_builtin_Type68; + eprosima::fastcdr::optional ann_custom_Type68; + CompleteTypeDetail detail_Type68 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type68, ann_custom_Type68, type_name_Type68.to_string()); + CompleteStructHeader header_Type68; + header_Type68 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type68); + CompleteStructMemberSeq member_seq_Type68; + { + return_code_Type68 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type68); + + if (return_code_Type68 != 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_Type68.type_identifier1()._d() || TK_NONE == type_ids_Type68.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type68.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type68.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type68.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type68.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type68.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type68.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type68.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type68.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type68.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type68.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type68.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type68.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type68.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type68.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type68.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type68.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type68.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type68.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type68.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type68.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type68.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type68.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type68.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type68.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_Type68.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type68); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type68, member_index); + } + CompleteStructType struct_type_Type68 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type68, header_Type68, member_seq_Type68); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type68, type_name_Type68.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type68 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type68 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type68", type_ids_Type68); + if (return_code_Type68 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type68: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep68 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep68; + MemberId member_id_dep68 = 0x00000044; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep68 = TypeObjectUtils::build_common_struct_member(member_id_dep68, member_flags_dep68, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep68 = TypeObjectUtils::build_common_struct_member(member_id_dep68, member_flags_dep68, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep68 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep68 = "dep68"; + eprosima::fastcdr::optional member_ann_builtin_dep68; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep68 = TypeObjectUtils::build_complete_member_detail(name_dep68, member_ann_builtin_dep68, ann_custom_TypeBig); + CompleteStructMember member_dep68 = TypeObjectUtils::build_complete_struct_member(common_dep68, detail_dep68); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep68); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type69", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type69 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type69; + TypeIdentifierPair type_ids_Type69; + QualifiedTypeName type_name_Type69 = "Type69"; + eprosima::fastcdr::optional type_ann_builtin_Type69; + eprosima::fastcdr::optional ann_custom_Type69; + CompleteTypeDetail detail_Type69 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type69, ann_custom_Type69, type_name_Type69.to_string()); + CompleteStructHeader header_Type69; + header_Type69 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type69); + CompleteStructMemberSeq member_seq_Type69; + { + return_code_Type69 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type69); + + if (return_code_Type69 != 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_Type69.type_identifier1()._d() || TK_NONE == type_ids_Type69.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type69.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type69.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type69.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type69.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type69.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type69.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type69.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type69.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type69.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type69.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type69.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type69.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type69.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type69.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type69.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type69.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type69.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type69.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type69.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type69.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type69.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type69.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type69.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type69.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_Type69.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type69); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type69, member_index); + } + CompleteStructType struct_type_Type69 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type69, header_Type69, member_seq_Type69); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type69, type_name_Type69.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type69 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type69 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type69", type_ids_Type69); + if (return_code_Type69 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type69: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep69 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep69; + MemberId member_id_dep69 = 0x00000045; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep69 = TypeObjectUtils::build_common_struct_member(member_id_dep69, member_flags_dep69, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep69 = TypeObjectUtils::build_common_struct_member(member_id_dep69, member_flags_dep69, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep69 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep69 = "dep69"; + eprosima::fastcdr::optional member_ann_builtin_dep69; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep69 = TypeObjectUtils::build_complete_member_detail(name_dep69, member_ann_builtin_dep69, ann_custom_TypeBig); + CompleteStructMember member_dep69 = TypeObjectUtils::build_complete_struct_member(common_dep69, detail_dep69); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep69); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type70", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type70 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type70; + TypeIdentifierPair type_ids_Type70; + QualifiedTypeName type_name_Type70 = "Type70"; + eprosima::fastcdr::optional type_ann_builtin_Type70; + eprosima::fastcdr::optional ann_custom_Type70; + CompleteTypeDetail detail_Type70 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type70, ann_custom_Type70, type_name_Type70.to_string()); + CompleteStructHeader header_Type70; + header_Type70 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type70); + CompleteStructMemberSeq member_seq_Type70; + { + return_code_Type70 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type70); + + if (return_code_Type70 != 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_Type70.type_identifier1()._d() || TK_NONE == type_ids_Type70.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type70.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type70.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type70.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type70.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type70.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type70.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type70.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type70.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type70.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type70.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type70.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type70.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type70.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type70.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type70.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type70.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type70.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type70.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type70.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type70.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type70.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type70.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type70.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type70.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_Type70.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type70); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type70, member_index); + } + CompleteStructType struct_type_Type70 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type70, header_Type70, member_seq_Type70); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type70, type_name_Type70.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type70 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type70 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type70", type_ids_Type70); + if (return_code_Type70 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type70: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep70 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep70; + MemberId member_id_dep70 = 0x00000046; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep70 = TypeObjectUtils::build_common_struct_member(member_id_dep70, member_flags_dep70, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep70 = TypeObjectUtils::build_common_struct_member(member_id_dep70, member_flags_dep70, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep70 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep70 = "dep70"; + eprosima::fastcdr::optional member_ann_builtin_dep70; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep70 = TypeObjectUtils::build_complete_member_detail(name_dep70, member_ann_builtin_dep70, ann_custom_TypeBig); + CompleteStructMember member_dep70 = TypeObjectUtils::build_complete_struct_member(common_dep70, detail_dep70); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep70); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type71", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type71 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type71; + TypeIdentifierPair type_ids_Type71; + QualifiedTypeName type_name_Type71 = "Type71"; + eprosima::fastcdr::optional type_ann_builtin_Type71; + eprosima::fastcdr::optional ann_custom_Type71; + CompleteTypeDetail detail_Type71 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type71, ann_custom_Type71, type_name_Type71.to_string()); + CompleteStructHeader header_Type71; + header_Type71 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type71); + CompleteStructMemberSeq member_seq_Type71; + { + return_code_Type71 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type71); + + if (return_code_Type71 != 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_Type71.type_identifier1()._d() || TK_NONE == type_ids_Type71.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type71.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type71.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type71.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type71.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type71.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type71.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type71.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type71.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type71.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type71.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type71.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type71.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type71.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type71.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type71.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type71.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type71.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type71.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type71.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type71.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type71.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type71.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type71.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type71.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_Type71.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type71); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type71, member_index); + } + CompleteStructType struct_type_Type71 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type71, header_Type71, member_seq_Type71); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type71, type_name_Type71.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type71 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type71 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type71", type_ids_Type71); + if (return_code_Type71 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type71: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep71 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep71; + MemberId member_id_dep71 = 0x00000047; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep71 = TypeObjectUtils::build_common_struct_member(member_id_dep71, member_flags_dep71, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep71 = TypeObjectUtils::build_common_struct_member(member_id_dep71, member_flags_dep71, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep71 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep71 = "dep71"; + eprosima::fastcdr::optional member_ann_builtin_dep71; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep71 = TypeObjectUtils::build_complete_member_detail(name_dep71, member_ann_builtin_dep71, ann_custom_TypeBig); + CompleteStructMember member_dep71 = TypeObjectUtils::build_complete_struct_member(common_dep71, detail_dep71); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep71); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type72", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type72 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type72; + TypeIdentifierPair type_ids_Type72; + QualifiedTypeName type_name_Type72 = "Type72"; + eprosima::fastcdr::optional type_ann_builtin_Type72; + eprosima::fastcdr::optional ann_custom_Type72; + CompleteTypeDetail detail_Type72 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type72, ann_custom_Type72, type_name_Type72.to_string()); + CompleteStructHeader header_Type72; + header_Type72 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type72); + CompleteStructMemberSeq member_seq_Type72; + { + return_code_Type72 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type72); + + if (return_code_Type72 != 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_Type72.type_identifier1()._d() || TK_NONE == type_ids_Type72.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type72.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type72.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type72.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type72.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type72.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type72.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type72.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type72.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type72.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type72.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type72.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type72.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type72.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type72.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type72.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type72.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type72.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type72.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type72.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type72.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type72.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type72.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type72.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type72.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_Type72.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type72); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type72, member_index); + } + CompleteStructType struct_type_Type72 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type72, header_Type72, member_seq_Type72); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type72, type_name_Type72.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type72 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type72 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type72", type_ids_Type72); + if (return_code_Type72 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type72: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep72 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep72; + MemberId member_id_dep72 = 0x00000048; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep72 = TypeObjectUtils::build_common_struct_member(member_id_dep72, member_flags_dep72, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep72 = TypeObjectUtils::build_common_struct_member(member_id_dep72, member_flags_dep72, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep72 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep72 = "dep72"; + eprosima::fastcdr::optional member_ann_builtin_dep72; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep72 = TypeObjectUtils::build_complete_member_detail(name_dep72, member_ann_builtin_dep72, ann_custom_TypeBig); + CompleteStructMember member_dep72 = TypeObjectUtils::build_complete_struct_member(common_dep72, detail_dep72); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep72); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type73", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type73 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type73; + TypeIdentifierPair type_ids_Type73; + QualifiedTypeName type_name_Type73 = "Type73"; + eprosima::fastcdr::optional type_ann_builtin_Type73; + eprosima::fastcdr::optional ann_custom_Type73; + CompleteTypeDetail detail_Type73 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type73, ann_custom_Type73, type_name_Type73.to_string()); + CompleteStructHeader header_Type73; + header_Type73 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type73); + CompleteStructMemberSeq member_seq_Type73; + { + return_code_Type73 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type73); + + if (return_code_Type73 != 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_Type73.type_identifier1()._d() || TK_NONE == type_ids_Type73.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type73.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type73.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type73.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type73.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type73.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type73.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type73.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type73.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type73.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type73.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type73.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type73.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type73.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type73.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type73.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type73.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type73.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type73.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type73.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type73.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type73.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type73.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type73.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type73.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_Type73.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type73); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type73, member_index); + } + CompleteStructType struct_type_Type73 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type73, header_Type73, member_seq_Type73); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type73, type_name_Type73.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type73 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type73 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type73", type_ids_Type73); + if (return_code_Type73 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type73: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep73 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep73; + MemberId member_id_dep73 = 0x00000049; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep73 = TypeObjectUtils::build_common_struct_member(member_id_dep73, member_flags_dep73, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep73 = TypeObjectUtils::build_common_struct_member(member_id_dep73, member_flags_dep73, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep73 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep73 = "dep73"; + eprosima::fastcdr::optional member_ann_builtin_dep73; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep73 = TypeObjectUtils::build_complete_member_detail(name_dep73, member_ann_builtin_dep73, ann_custom_TypeBig); + CompleteStructMember member_dep73 = TypeObjectUtils::build_complete_struct_member(common_dep73, detail_dep73); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep73); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type74", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type74 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type74; + TypeIdentifierPair type_ids_Type74; + QualifiedTypeName type_name_Type74 = "Type74"; + eprosima::fastcdr::optional type_ann_builtin_Type74; + eprosima::fastcdr::optional ann_custom_Type74; + CompleteTypeDetail detail_Type74 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type74, ann_custom_Type74, type_name_Type74.to_string()); + CompleteStructHeader header_Type74; + header_Type74 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type74); + CompleteStructMemberSeq member_seq_Type74; + { + return_code_Type74 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type74); + + if (return_code_Type74 != 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_Type74.type_identifier1()._d() || TK_NONE == type_ids_Type74.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type74.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type74.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type74.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type74.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type74.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type74.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type74.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type74.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type74.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type74.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type74.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type74.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type74.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type74.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type74.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type74.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type74.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type74.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type74.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type74.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type74.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type74.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type74.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type74.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_Type74.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type74); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type74, member_index); + } + CompleteStructType struct_type_Type74 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type74, header_Type74, member_seq_Type74); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type74, type_name_Type74.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type74 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type74 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type74", type_ids_Type74); + if (return_code_Type74 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type74: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep74 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep74; + MemberId member_id_dep74 = 0x0000004a; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep74 = TypeObjectUtils::build_common_struct_member(member_id_dep74, member_flags_dep74, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep74 = TypeObjectUtils::build_common_struct_member(member_id_dep74, member_flags_dep74, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep74 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep74 = "dep74"; + eprosima::fastcdr::optional member_ann_builtin_dep74; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep74 = TypeObjectUtils::build_complete_member_detail(name_dep74, member_ann_builtin_dep74, ann_custom_TypeBig); + CompleteStructMember member_dep74 = TypeObjectUtils::build_complete_struct_member(common_dep74, detail_dep74); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep74); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type75", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type75 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type75; + TypeIdentifierPair type_ids_Type75; + QualifiedTypeName type_name_Type75 = "Type75"; + eprosima::fastcdr::optional type_ann_builtin_Type75; + eprosima::fastcdr::optional ann_custom_Type75; + CompleteTypeDetail detail_Type75 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type75, ann_custom_Type75, type_name_Type75.to_string()); + CompleteStructHeader header_Type75; + header_Type75 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type75); + CompleteStructMemberSeq member_seq_Type75; + { + return_code_Type75 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type75); + + if (return_code_Type75 != 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_Type75.type_identifier1()._d() || TK_NONE == type_ids_Type75.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type75.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type75.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type75.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type75.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type75.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type75.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type75.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type75.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type75.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type75.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type75.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type75.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type75.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type75.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type75.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type75.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type75.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type75.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type75.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type75.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type75.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type75.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type75.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type75.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_Type75.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type75); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type75, member_index); + } + CompleteStructType struct_type_Type75 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type75, header_Type75, member_seq_Type75); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type75, type_name_Type75.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type75 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type75 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type75", type_ids_Type75); + if (return_code_Type75 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type75: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep75 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep75; + MemberId member_id_dep75 = 0x0000004b; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep75 = TypeObjectUtils::build_common_struct_member(member_id_dep75, member_flags_dep75, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep75 = TypeObjectUtils::build_common_struct_member(member_id_dep75, member_flags_dep75, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep75 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep75 = "dep75"; + eprosima::fastcdr::optional member_ann_builtin_dep75; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep75 = TypeObjectUtils::build_complete_member_detail(name_dep75, member_ann_builtin_dep75, ann_custom_TypeBig); + CompleteStructMember member_dep75 = TypeObjectUtils::build_complete_struct_member(common_dep75, detail_dep75); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep75); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type76", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type76 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type76; + TypeIdentifierPair type_ids_Type76; + QualifiedTypeName type_name_Type76 = "Type76"; + eprosima::fastcdr::optional type_ann_builtin_Type76; + eprosima::fastcdr::optional ann_custom_Type76; + CompleteTypeDetail detail_Type76 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type76, ann_custom_Type76, type_name_Type76.to_string()); + CompleteStructHeader header_Type76; + header_Type76 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type76); + CompleteStructMemberSeq member_seq_Type76; + { + return_code_Type76 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type76); + + if (return_code_Type76 != 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_Type76.type_identifier1()._d() || TK_NONE == type_ids_Type76.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type76.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type76.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type76.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type76.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type76.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type76.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type76.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type76.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type76.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type76.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type76.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type76.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type76.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type76.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type76.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type76.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type76.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type76.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type76.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type76.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type76.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type76.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type76.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type76.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_Type76.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type76); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type76, member_index); + } + CompleteStructType struct_type_Type76 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type76, header_Type76, member_seq_Type76); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type76, type_name_Type76.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type76 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type76 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type76", type_ids_Type76); + if (return_code_Type76 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type76: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep76 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep76; + MemberId member_id_dep76 = 0x0000004c; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep76 = TypeObjectUtils::build_common_struct_member(member_id_dep76, member_flags_dep76, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep76 = TypeObjectUtils::build_common_struct_member(member_id_dep76, member_flags_dep76, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep76 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep76 = "dep76"; + eprosima::fastcdr::optional member_ann_builtin_dep76; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep76 = TypeObjectUtils::build_complete_member_detail(name_dep76, member_ann_builtin_dep76, ann_custom_TypeBig); + CompleteStructMember member_dep76 = TypeObjectUtils::build_complete_struct_member(common_dep76, detail_dep76); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep76); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type77", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type77 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type77; + TypeIdentifierPair type_ids_Type77; + QualifiedTypeName type_name_Type77 = "Type77"; + eprosima::fastcdr::optional type_ann_builtin_Type77; + eprosima::fastcdr::optional ann_custom_Type77; + CompleteTypeDetail detail_Type77 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type77, ann_custom_Type77, type_name_Type77.to_string()); + CompleteStructHeader header_Type77; + header_Type77 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type77); + CompleteStructMemberSeq member_seq_Type77; + { + return_code_Type77 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type77); + + if (return_code_Type77 != 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_Type77.type_identifier1()._d() || TK_NONE == type_ids_Type77.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type77.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type77.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type77.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type77.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type77.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type77.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type77.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type77.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type77.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type77.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type77.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type77.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type77.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type77.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type77.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type77.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type77.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type77.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type77.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type77.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type77.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type77.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type77.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type77.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_Type77.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type77); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type77, member_index); + } + CompleteStructType struct_type_Type77 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type77, header_Type77, member_seq_Type77); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type77, type_name_Type77.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type77 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type77 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type77", type_ids_Type77); + if (return_code_Type77 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type77: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep77 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep77; + MemberId member_id_dep77 = 0x0000004d; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep77 = TypeObjectUtils::build_common_struct_member(member_id_dep77, member_flags_dep77, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep77 = TypeObjectUtils::build_common_struct_member(member_id_dep77, member_flags_dep77, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep77 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep77 = "dep77"; + eprosima::fastcdr::optional member_ann_builtin_dep77; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep77 = TypeObjectUtils::build_complete_member_detail(name_dep77, member_ann_builtin_dep77, ann_custom_TypeBig); + CompleteStructMember member_dep77 = TypeObjectUtils::build_complete_struct_member(common_dep77, detail_dep77); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep77); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type78", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type78 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type78; + TypeIdentifierPair type_ids_Type78; + QualifiedTypeName type_name_Type78 = "Type78"; + eprosima::fastcdr::optional type_ann_builtin_Type78; + eprosima::fastcdr::optional ann_custom_Type78; + CompleteTypeDetail detail_Type78 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type78, ann_custom_Type78, type_name_Type78.to_string()); + CompleteStructHeader header_Type78; + header_Type78 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type78); + CompleteStructMemberSeq member_seq_Type78; + { + return_code_Type78 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type78); + + if (return_code_Type78 != 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_Type78.type_identifier1()._d() || TK_NONE == type_ids_Type78.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type78.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type78.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type78.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type78.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type78.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type78.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type78.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type78.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type78.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type78.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type78.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type78.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type78.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type78.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type78.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type78.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type78.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type78.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type78.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type78.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type78.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type78.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type78.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type78.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_Type78.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type78); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type78, member_index); + } + CompleteStructType struct_type_Type78 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type78, header_Type78, member_seq_Type78); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type78, type_name_Type78.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type78 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type78 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type78", type_ids_Type78); + if (return_code_Type78 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type78: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep78 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep78; + MemberId member_id_dep78 = 0x0000004e; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep78 = TypeObjectUtils::build_common_struct_member(member_id_dep78, member_flags_dep78, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep78 = TypeObjectUtils::build_common_struct_member(member_id_dep78, member_flags_dep78, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep78 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep78 = "dep78"; + eprosima::fastcdr::optional member_ann_builtin_dep78; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep78 = TypeObjectUtils::build_complete_member_detail(name_dep78, member_ann_builtin_dep78, ann_custom_TypeBig); + CompleteStructMember member_dep78 = TypeObjectUtils::build_complete_struct_member(common_dep78, detail_dep78); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep78); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type79", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type79 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type79; + TypeIdentifierPair type_ids_Type79; + QualifiedTypeName type_name_Type79 = "Type79"; + eprosima::fastcdr::optional type_ann_builtin_Type79; + eprosima::fastcdr::optional ann_custom_Type79; + CompleteTypeDetail detail_Type79 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type79, ann_custom_Type79, type_name_Type79.to_string()); + CompleteStructHeader header_Type79; + header_Type79 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type79); + CompleteStructMemberSeq member_seq_Type79; + { + return_code_Type79 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type79); + + if (return_code_Type79 != 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_Type79.type_identifier1()._d() || TK_NONE == type_ids_Type79.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type79.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type79.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type79.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type79.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type79.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type79.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type79.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type79.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type79.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type79.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type79.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type79.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type79.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type79.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type79.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type79.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type79.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type79.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type79.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type79.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type79.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type79.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type79.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type79.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_Type79.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type79); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type79, member_index); + } + CompleteStructType struct_type_Type79 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type79, header_Type79, member_seq_Type79); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type79, type_name_Type79.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type79 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type79 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type79", type_ids_Type79); + if (return_code_Type79 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type79: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep79 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep79; + MemberId member_id_dep79 = 0x0000004f; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep79 = TypeObjectUtils::build_common_struct_member(member_id_dep79, member_flags_dep79, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep79 = TypeObjectUtils::build_common_struct_member(member_id_dep79, member_flags_dep79, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep79 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep79 = "dep79"; + eprosima::fastcdr::optional member_ann_builtin_dep79; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep79 = TypeObjectUtils::build_complete_member_detail(name_dep79, member_ann_builtin_dep79, ann_custom_TypeBig); + CompleteStructMember member_dep79 = TypeObjectUtils::build_complete_struct_member(common_dep79, detail_dep79); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep79); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type80", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type80 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type80; + TypeIdentifierPair type_ids_Type80; + QualifiedTypeName type_name_Type80 = "Type80"; + eprosima::fastcdr::optional type_ann_builtin_Type80; + eprosima::fastcdr::optional ann_custom_Type80; + CompleteTypeDetail detail_Type80 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type80, ann_custom_Type80, type_name_Type80.to_string()); + CompleteStructHeader header_Type80; + header_Type80 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type80); + CompleteStructMemberSeq member_seq_Type80; + { + return_code_Type80 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type80); + + if (return_code_Type80 != 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_Type80.type_identifier1()._d() || TK_NONE == type_ids_Type80.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type80.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type80.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type80.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type80.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type80.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type80.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type80.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type80.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type80.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type80.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type80.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type80.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type80.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type80.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type80.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type80.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type80.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type80.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type80.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type80.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type80.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type80.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type80.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type80.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_Type80.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type80); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type80, member_index); + } + CompleteStructType struct_type_Type80 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type80, header_Type80, member_seq_Type80); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type80, type_name_Type80.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type80 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type80 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type80", type_ids_Type80); + if (return_code_Type80 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type80: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep80 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep80; + MemberId member_id_dep80 = 0x00000050; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep80 = TypeObjectUtils::build_common_struct_member(member_id_dep80, member_flags_dep80, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep80 = TypeObjectUtils::build_common_struct_member(member_id_dep80, member_flags_dep80, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep80 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep80 = "dep80"; + eprosima::fastcdr::optional member_ann_builtin_dep80; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep80 = TypeObjectUtils::build_complete_member_detail(name_dep80, member_ann_builtin_dep80, ann_custom_TypeBig); + CompleteStructMember member_dep80 = TypeObjectUtils::build_complete_struct_member(common_dep80, detail_dep80); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep80); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type81", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type81 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type81; + TypeIdentifierPair type_ids_Type81; + QualifiedTypeName type_name_Type81 = "Type81"; + eprosima::fastcdr::optional type_ann_builtin_Type81; + eprosima::fastcdr::optional ann_custom_Type81; + CompleteTypeDetail detail_Type81 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type81, ann_custom_Type81, type_name_Type81.to_string()); + CompleteStructHeader header_Type81; + header_Type81 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type81); + CompleteStructMemberSeq member_seq_Type81; + { + return_code_Type81 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type81); + + if (return_code_Type81 != 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_Type81.type_identifier1()._d() || TK_NONE == type_ids_Type81.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type81.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type81.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type81.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type81.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type81.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type81.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type81.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type81.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type81.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type81.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type81.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type81.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type81.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type81.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type81.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type81.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type81.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type81.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type81.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type81.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type81.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type81.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type81.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type81.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_Type81.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type81); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type81, member_index); + } + CompleteStructType struct_type_Type81 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type81, header_Type81, member_seq_Type81); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type81, type_name_Type81.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type81 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type81 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type81", type_ids_Type81); + if (return_code_Type81 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type81: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep81 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep81; + MemberId member_id_dep81 = 0x00000051; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep81 = TypeObjectUtils::build_common_struct_member(member_id_dep81, member_flags_dep81, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep81 = TypeObjectUtils::build_common_struct_member(member_id_dep81, member_flags_dep81, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep81 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep81 = "dep81"; + eprosima::fastcdr::optional member_ann_builtin_dep81; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep81 = TypeObjectUtils::build_complete_member_detail(name_dep81, member_ann_builtin_dep81, ann_custom_TypeBig); + CompleteStructMember member_dep81 = TypeObjectUtils::build_complete_struct_member(common_dep81, detail_dep81); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep81); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type82", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type82 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type82; + TypeIdentifierPair type_ids_Type82; + QualifiedTypeName type_name_Type82 = "Type82"; + eprosima::fastcdr::optional type_ann_builtin_Type82; + eprosima::fastcdr::optional ann_custom_Type82; + CompleteTypeDetail detail_Type82 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type82, ann_custom_Type82, type_name_Type82.to_string()); + CompleteStructHeader header_Type82; + header_Type82 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type82); + CompleteStructMemberSeq member_seq_Type82; + { + return_code_Type82 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type82); + + if (return_code_Type82 != 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_Type82.type_identifier1()._d() || TK_NONE == type_ids_Type82.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type82.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type82.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type82.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type82.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type82.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type82.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type82.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type82.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type82.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type82.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type82.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type82.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type82.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type82.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type82.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type82.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type82.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type82.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type82.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type82.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type82.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type82.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type82.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type82.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_Type82.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type82); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type82, member_index); + } + CompleteStructType struct_type_Type82 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type82, header_Type82, member_seq_Type82); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type82, type_name_Type82.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type82 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type82 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type82", type_ids_Type82); + if (return_code_Type82 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type82: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep82 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep82; + MemberId member_id_dep82 = 0x00000052; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep82 = TypeObjectUtils::build_common_struct_member(member_id_dep82, member_flags_dep82, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep82 = TypeObjectUtils::build_common_struct_member(member_id_dep82, member_flags_dep82, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep82 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep82 = "dep82"; + eprosima::fastcdr::optional member_ann_builtin_dep82; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep82 = TypeObjectUtils::build_complete_member_detail(name_dep82, member_ann_builtin_dep82, ann_custom_TypeBig); + CompleteStructMember member_dep82 = TypeObjectUtils::build_complete_struct_member(common_dep82, detail_dep82); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep82); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type83", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type83 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type83; + TypeIdentifierPair type_ids_Type83; + QualifiedTypeName type_name_Type83 = "Type83"; + eprosima::fastcdr::optional type_ann_builtin_Type83; + eprosima::fastcdr::optional ann_custom_Type83; + CompleteTypeDetail detail_Type83 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type83, ann_custom_Type83, type_name_Type83.to_string()); + CompleteStructHeader header_Type83; + header_Type83 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type83); + CompleteStructMemberSeq member_seq_Type83; + { + return_code_Type83 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type83); + + if (return_code_Type83 != 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_Type83.type_identifier1()._d() || TK_NONE == type_ids_Type83.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type83.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type83.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type83.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type83.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type83.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type83.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type83.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type83.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type83.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type83.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type83.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type83.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type83.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type83.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type83.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type83.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type83.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type83.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type83.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type83.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type83.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type83.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type83.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type83.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_Type83.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type83); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type83, member_index); + } + CompleteStructType struct_type_Type83 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type83, header_Type83, member_seq_Type83); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type83, type_name_Type83.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type83 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type83 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type83", type_ids_Type83); + if (return_code_Type83 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type83: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep83 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep83; + MemberId member_id_dep83 = 0x00000053; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep83 = TypeObjectUtils::build_common_struct_member(member_id_dep83, member_flags_dep83, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep83 = TypeObjectUtils::build_common_struct_member(member_id_dep83, member_flags_dep83, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep83 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep83 = "dep83"; + eprosima::fastcdr::optional member_ann_builtin_dep83; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep83 = TypeObjectUtils::build_complete_member_detail(name_dep83, member_ann_builtin_dep83, ann_custom_TypeBig); + CompleteStructMember member_dep83 = TypeObjectUtils::build_complete_struct_member(common_dep83, detail_dep83); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep83); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type84", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type84 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type84; + TypeIdentifierPair type_ids_Type84; + QualifiedTypeName type_name_Type84 = "Type84"; + eprosima::fastcdr::optional type_ann_builtin_Type84; + eprosima::fastcdr::optional ann_custom_Type84; + CompleteTypeDetail detail_Type84 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type84, ann_custom_Type84, type_name_Type84.to_string()); + CompleteStructHeader header_Type84; + header_Type84 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type84); + CompleteStructMemberSeq member_seq_Type84; + { + return_code_Type84 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type84); + + if (return_code_Type84 != 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_Type84.type_identifier1()._d() || TK_NONE == type_ids_Type84.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type84.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type84.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type84.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type84.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type84.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type84.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type84.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type84.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type84.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type84.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type84.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type84.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type84.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type84.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type84.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type84.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type84.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type84.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type84.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type84.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type84.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type84.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type84.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type84.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_Type84.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type84); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type84, member_index); + } + CompleteStructType struct_type_Type84 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type84, header_Type84, member_seq_Type84); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type84, type_name_Type84.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type84 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type84 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type84", type_ids_Type84); + if (return_code_Type84 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type84: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep84 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep84; + MemberId member_id_dep84 = 0x00000054; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep84 = TypeObjectUtils::build_common_struct_member(member_id_dep84, member_flags_dep84, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep84 = TypeObjectUtils::build_common_struct_member(member_id_dep84, member_flags_dep84, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep84 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep84 = "dep84"; + eprosima::fastcdr::optional member_ann_builtin_dep84; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep84 = TypeObjectUtils::build_complete_member_detail(name_dep84, member_ann_builtin_dep84, ann_custom_TypeBig); + CompleteStructMember member_dep84 = TypeObjectUtils::build_complete_struct_member(common_dep84, detail_dep84); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep84); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type85", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type85 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type85; + TypeIdentifierPair type_ids_Type85; + QualifiedTypeName type_name_Type85 = "Type85"; + eprosima::fastcdr::optional type_ann_builtin_Type85; + eprosima::fastcdr::optional ann_custom_Type85; + CompleteTypeDetail detail_Type85 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type85, ann_custom_Type85, type_name_Type85.to_string()); + CompleteStructHeader header_Type85; + header_Type85 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type85); + CompleteStructMemberSeq member_seq_Type85; + { + return_code_Type85 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type85); + + if (return_code_Type85 != 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_Type85.type_identifier1()._d() || TK_NONE == type_ids_Type85.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type85.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type85.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type85.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type85.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type85.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type85.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type85.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type85.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type85.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type85.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type85.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type85.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type85.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type85.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type85.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type85.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type85.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type85.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type85.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type85.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type85.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type85.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type85.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type85.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_Type85.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type85); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type85, member_index); + } + CompleteStructType struct_type_Type85 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type85, header_Type85, member_seq_Type85); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type85, type_name_Type85.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type85 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type85 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type85", type_ids_Type85); + if (return_code_Type85 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type85: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep85 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep85; + MemberId member_id_dep85 = 0x00000055; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep85 = TypeObjectUtils::build_common_struct_member(member_id_dep85, member_flags_dep85, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep85 = TypeObjectUtils::build_common_struct_member(member_id_dep85, member_flags_dep85, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep85 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep85 = "dep85"; + eprosima::fastcdr::optional member_ann_builtin_dep85; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep85 = TypeObjectUtils::build_complete_member_detail(name_dep85, member_ann_builtin_dep85, ann_custom_TypeBig); + CompleteStructMember member_dep85 = TypeObjectUtils::build_complete_struct_member(common_dep85, detail_dep85); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep85); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type86", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type86 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type86; + TypeIdentifierPair type_ids_Type86; + QualifiedTypeName type_name_Type86 = "Type86"; + eprosima::fastcdr::optional type_ann_builtin_Type86; + eprosima::fastcdr::optional ann_custom_Type86; + CompleteTypeDetail detail_Type86 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type86, ann_custom_Type86, type_name_Type86.to_string()); + CompleteStructHeader header_Type86; + header_Type86 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type86); + CompleteStructMemberSeq member_seq_Type86; + { + return_code_Type86 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type86); + + if (return_code_Type86 != 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_Type86.type_identifier1()._d() || TK_NONE == type_ids_Type86.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type86.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type86.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type86.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type86.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type86.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type86.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type86.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type86.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type86.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type86.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type86.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type86.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type86.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type86.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type86.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type86.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type86.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type86.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type86.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type86.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type86.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type86.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type86.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type86.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_Type86.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type86); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type86, member_index); + } + CompleteStructType struct_type_Type86 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type86, header_Type86, member_seq_Type86); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type86, type_name_Type86.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type86 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type86 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type86", type_ids_Type86); + if (return_code_Type86 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type86: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep86 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep86; + MemberId member_id_dep86 = 0x00000056; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep86 = TypeObjectUtils::build_common_struct_member(member_id_dep86, member_flags_dep86, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep86 = TypeObjectUtils::build_common_struct_member(member_id_dep86, member_flags_dep86, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep86 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep86 = "dep86"; + eprosima::fastcdr::optional member_ann_builtin_dep86; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep86 = TypeObjectUtils::build_complete_member_detail(name_dep86, member_ann_builtin_dep86, ann_custom_TypeBig); + CompleteStructMember member_dep86 = TypeObjectUtils::build_complete_struct_member(common_dep86, detail_dep86); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep86); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type87", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type87 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type87; + TypeIdentifierPair type_ids_Type87; + QualifiedTypeName type_name_Type87 = "Type87"; + eprosima::fastcdr::optional type_ann_builtin_Type87; + eprosima::fastcdr::optional ann_custom_Type87; + CompleteTypeDetail detail_Type87 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type87, ann_custom_Type87, type_name_Type87.to_string()); + CompleteStructHeader header_Type87; + header_Type87 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type87); + CompleteStructMemberSeq member_seq_Type87; + { + return_code_Type87 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type87); + + if (return_code_Type87 != 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_Type87.type_identifier1()._d() || TK_NONE == type_ids_Type87.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type87.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type87.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type87.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type87.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type87.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type87.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type87.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type87.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type87.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type87.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type87.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type87.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type87.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type87.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type87.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type87.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type87.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type87.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type87.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type87.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type87.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type87.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type87.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type87.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_Type87.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type87); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type87, member_index); + } + CompleteStructType struct_type_Type87 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type87, header_Type87, member_seq_Type87); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type87, type_name_Type87.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type87 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type87 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type87", type_ids_Type87); + if (return_code_Type87 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type87: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep87 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep87; + MemberId member_id_dep87 = 0x00000057; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep87 = TypeObjectUtils::build_common_struct_member(member_id_dep87, member_flags_dep87, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep87 = TypeObjectUtils::build_common_struct_member(member_id_dep87, member_flags_dep87, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep87 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep87 = "dep87"; + eprosima::fastcdr::optional member_ann_builtin_dep87; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep87 = TypeObjectUtils::build_complete_member_detail(name_dep87, member_ann_builtin_dep87, ann_custom_TypeBig); + CompleteStructMember member_dep87 = TypeObjectUtils::build_complete_struct_member(common_dep87, detail_dep87); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep87); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type88", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type88 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type88; + TypeIdentifierPair type_ids_Type88; + QualifiedTypeName type_name_Type88 = "Type88"; + eprosima::fastcdr::optional type_ann_builtin_Type88; + eprosima::fastcdr::optional ann_custom_Type88; + CompleteTypeDetail detail_Type88 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type88, ann_custom_Type88, type_name_Type88.to_string()); + CompleteStructHeader header_Type88; + header_Type88 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type88); + CompleteStructMemberSeq member_seq_Type88; + { + return_code_Type88 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type88); + + if (return_code_Type88 != 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_Type88.type_identifier1()._d() || TK_NONE == type_ids_Type88.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type88.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type88.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type88.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type88.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type88.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type88.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type88.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type88.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type88.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type88.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type88.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type88.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type88.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type88.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type88.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type88.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type88.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type88.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type88.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type88.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type88.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type88.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type88.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type88.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_Type88.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type88); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type88, member_index); + } + CompleteStructType struct_type_Type88 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type88, header_Type88, member_seq_Type88); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type88, type_name_Type88.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type88 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type88 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type88", type_ids_Type88); + if (return_code_Type88 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type88: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep88 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep88; + MemberId member_id_dep88 = 0x00000058; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep88 = TypeObjectUtils::build_common_struct_member(member_id_dep88, member_flags_dep88, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep88 = TypeObjectUtils::build_common_struct_member(member_id_dep88, member_flags_dep88, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep88 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep88 = "dep88"; + eprosima::fastcdr::optional member_ann_builtin_dep88; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep88 = TypeObjectUtils::build_complete_member_detail(name_dep88, member_ann_builtin_dep88, ann_custom_TypeBig); + CompleteStructMember member_dep88 = TypeObjectUtils::build_complete_struct_member(common_dep88, detail_dep88); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep88); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type89", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type89 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type89; + TypeIdentifierPair type_ids_Type89; + QualifiedTypeName type_name_Type89 = "Type89"; + eprosima::fastcdr::optional type_ann_builtin_Type89; + eprosima::fastcdr::optional ann_custom_Type89; + CompleteTypeDetail detail_Type89 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type89, ann_custom_Type89, type_name_Type89.to_string()); + CompleteStructHeader header_Type89; + header_Type89 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type89); + CompleteStructMemberSeq member_seq_Type89; + { + return_code_Type89 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type89); + + if (return_code_Type89 != 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_Type89.type_identifier1()._d() || TK_NONE == type_ids_Type89.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type89.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type89.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type89.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type89.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type89.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type89.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type89.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type89.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type89.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type89.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type89.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type89.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type89.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type89.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type89.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type89.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type89.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type89.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type89.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type89.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type89.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type89.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type89.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type89.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_Type89.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type89); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type89, member_index); + } + CompleteStructType struct_type_Type89 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type89, header_Type89, member_seq_Type89); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type89, type_name_Type89.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type89 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type89 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type89", type_ids_Type89); + if (return_code_Type89 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type89: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep89 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep89; + MemberId member_id_dep89 = 0x00000059; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep89 = TypeObjectUtils::build_common_struct_member(member_id_dep89, member_flags_dep89, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep89 = TypeObjectUtils::build_common_struct_member(member_id_dep89, member_flags_dep89, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep89 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep89 = "dep89"; + eprosima::fastcdr::optional member_ann_builtin_dep89; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep89 = TypeObjectUtils::build_complete_member_detail(name_dep89, member_ann_builtin_dep89, ann_custom_TypeBig); + CompleteStructMember member_dep89 = TypeObjectUtils::build_complete_struct_member(common_dep89, detail_dep89); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep89); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type90", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type90 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type90; + TypeIdentifierPair type_ids_Type90; + QualifiedTypeName type_name_Type90 = "Type90"; + eprosima::fastcdr::optional type_ann_builtin_Type90; + eprosima::fastcdr::optional ann_custom_Type90; + CompleteTypeDetail detail_Type90 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type90, ann_custom_Type90, type_name_Type90.to_string()); + CompleteStructHeader header_Type90; + header_Type90 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type90); + CompleteStructMemberSeq member_seq_Type90; + { + return_code_Type90 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type90); + + if (return_code_Type90 != 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_Type90.type_identifier1()._d() || TK_NONE == type_ids_Type90.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type90.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type90.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type90.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type90.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type90.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type90.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type90.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type90.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type90.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type90.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type90.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type90.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type90.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type90.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type90.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type90.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type90.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type90.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type90.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type90.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type90.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type90.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type90.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type90.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_Type90.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type90); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type90, member_index); + } + CompleteStructType struct_type_Type90 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type90, header_Type90, member_seq_Type90); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type90, type_name_Type90.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type90 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type90 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type90", type_ids_Type90); + if (return_code_Type90 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type90: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep90 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep90; + MemberId member_id_dep90 = 0x0000005a; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep90 = TypeObjectUtils::build_common_struct_member(member_id_dep90, member_flags_dep90, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep90 = TypeObjectUtils::build_common_struct_member(member_id_dep90, member_flags_dep90, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep90 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep90 = "dep90"; + eprosima::fastcdr::optional member_ann_builtin_dep90; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep90 = TypeObjectUtils::build_complete_member_detail(name_dep90, member_ann_builtin_dep90, ann_custom_TypeBig); + CompleteStructMember member_dep90 = TypeObjectUtils::build_complete_struct_member(common_dep90, detail_dep90); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep90); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type91", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type91 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type91; + TypeIdentifierPair type_ids_Type91; + QualifiedTypeName type_name_Type91 = "Type91"; + eprosima::fastcdr::optional type_ann_builtin_Type91; + eprosima::fastcdr::optional ann_custom_Type91; + CompleteTypeDetail detail_Type91 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type91, ann_custom_Type91, type_name_Type91.to_string()); + CompleteStructHeader header_Type91; + header_Type91 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type91); + CompleteStructMemberSeq member_seq_Type91; + { + return_code_Type91 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type91); + + if (return_code_Type91 != 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_Type91.type_identifier1()._d() || TK_NONE == type_ids_Type91.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type91.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type91.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type91.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type91.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type91.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type91.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type91.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type91.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type91.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type91.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type91.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type91.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type91.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type91.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type91.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type91.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type91.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type91.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type91.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type91.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type91.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type91.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type91.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type91.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_Type91.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type91); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type91, member_index); + } + CompleteStructType struct_type_Type91 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type91, header_Type91, member_seq_Type91); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type91, type_name_Type91.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type91 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type91 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type91", type_ids_Type91); + if (return_code_Type91 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type91: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep91 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep91; + MemberId member_id_dep91 = 0x0000005b; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep91 = TypeObjectUtils::build_common_struct_member(member_id_dep91, member_flags_dep91, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep91 = TypeObjectUtils::build_common_struct_member(member_id_dep91, member_flags_dep91, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep91 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep91 = "dep91"; + eprosima::fastcdr::optional member_ann_builtin_dep91; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep91 = TypeObjectUtils::build_complete_member_detail(name_dep91, member_ann_builtin_dep91, ann_custom_TypeBig); + CompleteStructMember member_dep91 = TypeObjectUtils::build_complete_struct_member(common_dep91, detail_dep91); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep91); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type92", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type92 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type92; + TypeIdentifierPair type_ids_Type92; + QualifiedTypeName type_name_Type92 = "Type92"; + eprosima::fastcdr::optional type_ann_builtin_Type92; + eprosima::fastcdr::optional ann_custom_Type92; + CompleteTypeDetail detail_Type92 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type92, ann_custom_Type92, type_name_Type92.to_string()); + CompleteStructHeader header_Type92; + header_Type92 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type92); + CompleteStructMemberSeq member_seq_Type92; + { + return_code_Type92 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type92); + + if (return_code_Type92 != 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_Type92.type_identifier1()._d() || TK_NONE == type_ids_Type92.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type92.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type92.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type92.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type92.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type92.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type92.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type92.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type92.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type92.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type92.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type92.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type92.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type92.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type92.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type92.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type92.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type92.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type92.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type92.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type92.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type92.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type92.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type92.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type92.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_Type92.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type92); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type92, member_index); + } + CompleteStructType struct_type_Type92 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type92, header_Type92, member_seq_Type92); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type92, type_name_Type92.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type92 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type92 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type92", type_ids_Type92); + if (return_code_Type92 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type92: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep92 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep92; + MemberId member_id_dep92 = 0x0000005c; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep92 = TypeObjectUtils::build_common_struct_member(member_id_dep92, member_flags_dep92, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep92 = TypeObjectUtils::build_common_struct_member(member_id_dep92, member_flags_dep92, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep92 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep92 = "dep92"; + eprosima::fastcdr::optional member_ann_builtin_dep92; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep92 = TypeObjectUtils::build_complete_member_detail(name_dep92, member_ann_builtin_dep92, ann_custom_TypeBig); + CompleteStructMember member_dep92 = TypeObjectUtils::build_complete_struct_member(common_dep92, detail_dep92); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep92); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type93", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type93 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type93; + TypeIdentifierPair type_ids_Type93; + QualifiedTypeName type_name_Type93 = "Type93"; + eprosima::fastcdr::optional type_ann_builtin_Type93; + eprosima::fastcdr::optional ann_custom_Type93; + CompleteTypeDetail detail_Type93 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type93, ann_custom_Type93, type_name_Type93.to_string()); + CompleteStructHeader header_Type93; + header_Type93 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type93); + CompleteStructMemberSeq member_seq_Type93; + { + return_code_Type93 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type93); + + if (return_code_Type93 != 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_Type93.type_identifier1()._d() || TK_NONE == type_ids_Type93.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type93.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type93.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type93.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type93.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type93.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type93.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type93.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type93.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type93.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type93.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type93.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type93.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type93.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type93.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type93.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type93.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type93.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type93.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type93.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type93.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type93.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type93.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type93.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type93.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_Type93.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type93); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type93, member_index); + } + CompleteStructType struct_type_Type93 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type93, header_Type93, member_seq_Type93); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type93, type_name_Type93.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type93 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type93 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type93", type_ids_Type93); + if (return_code_Type93 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type93: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep93 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep93; + MemberId member_id_dep93 = 0x0000005d; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep93 = TypeObjectUtils::build_common_struct_member(member_id_dep93, member_flags_dep93, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep93 = TypeObjectUtils::build_common_struct_member(member_id_dep93, member_flags_dep93, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep93 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep93 = "dep93"; + eprosima::fastcdr::optional member_ann_builtin_dep93; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep93 = TypeObjectUtils::build_complete_member_detail(name_dep93, member_ann_builtin_dep93, ann_custom_TypeBig); + CompleteStructMember member_dep93 = TypeObjectUtils::build_complete_struct_member(common_dep93, detail_dep93); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep93); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type94", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type94 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type94; + TypeIdentifierPair type_ids_Type94; + QualifiedTypeName type_name_Type94 = "Type94"; + eprosima::fastcdr::optional type_ann_builtin_Type94; + eprosima::fastcdr::optional ann_custom_Type94; + CompleteTypeDetail detail_Type94 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type94, ann_custom_Type94, type_name_Type94.to_string()); + CompleteStructHeader header_Type94; + header_Type94 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type94); + CompleteStructMemberSeq member_seq_Type94; + { + return_code_Type94 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type94); + + if (return_code_Type94 != 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_Type94.type_identifier1()._d() || TK_NONE == type_ids_Type94.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type94.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type94.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type94.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type94.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type94.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type94.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type94.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type94.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type94.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type94.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type94.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type94.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type94.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type94.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type94.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type94.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type94.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type94.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type94.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type94.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type94.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type94.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type94.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type94.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_Type94.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type94); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type94, member_index); + } + CompleteStructType struct_type_Type94 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type94, header_Type94, member_seq_Type94); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type94, type_name_Type94.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type94 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type94 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type94", type_ids_Type94); + if (return_code_Type94 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type94: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep94 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep94; + MemberId member_id_dep94 = 0x0000005e; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep94 = TypeObjectUtils::build_common_struct_member(member_id_dep94, member_flags_dep94, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep94 = TypeObjectUtils::build_common_struct_member(member_id_dep94, member_flags_dep94, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep94 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep94 = "dep94"; + eprosima::fastcdr::optional member_ann_builtin_dep94; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep94 = TypeObjectUtils::build_complete_member_detail(name_dep94, member_ann_builtin_dep94, ann_custom_TypeBig); + CompleteStructMember member_dep94 = TypeObjectUtils::build_complete_struct_member(common_dep94, detail_dep94); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep94); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type95", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type95 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type95; + TypeIdentifierPair type_ids_Type95; + QualifiedTypeName type_name_Type95 = "Type95"; + eprosima::fastcdr::optional type_ann_builtin_Type95; + eprosima::fastcdr::optional ann_custom_Type95; + CompleteTypeDetail detail_Type95 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type95, ann_custom_Type95, type_name_Type95.to_string()); + CompleteStructHeader header_Type95; + header_Type95 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type95); + CompleteStructMemberSeq member_seq_Type95; + { + return_code_Type95 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type95); + + if (return_code_Type95 != 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_Type95.type_identifier1()._d() || TK_NONE == type_ids_Type95.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type95.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type95.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type95.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type95.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type95.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type95.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type95.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type95.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type95.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type95.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type95.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type95.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type95.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type95.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type95.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type95.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type95.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type95.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type95.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type95.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type95.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type95.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type95.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type95.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_Type95.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type95); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type95, member_index); + } + CompleteStructType struct_type_Type95 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type95, header_Type95, member_seq_Type95); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type95, type_name_Type95.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type95 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type95 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type95", type_ids_Type95); + if (return_code_Type95 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type95: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep95 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep95; + MemberId member_id_dep95 = 0x0000005f; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep95 = TypeObjectUtils::build_common_struct_member(member_id_dep95, member_flags_dep95, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep95 = TypeObjectUtils::build_common_struct_member(member_id_dep95, member_flags_dep95, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep95 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep95 = "dep95"; + eprosima::fastcdr::optional member_ann_builtin_dep95; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep95 = TypeObjectUtils::build_complete_member_detail(name_dep95, member_ann_builtin_dep95, ann_custom_TypeBig); + CompleteStructMember member_dep95 = TypeObjectUtils::build_complete_struct_member(common_dep95, detail_dep95); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep95); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type96", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type96 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type96; + TypeIdentifierPair type_ids_Type96; + QualifiedTypeName type_name_Type96 = "Type96"; + eprosima::fastcdr::optional type_ann_builtin_Type96; + eprosima::fastcdr::optional ann_custom_Type96; + CompleteTypeDetail detail_Type96 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type96, ann_custom_Type96, type_name_Type96.to_string()); + CompleteStructHeader header_Type96; + header_Type96 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type96); + CompleteStructMemberSeq member_seq_Type96; + { + return_code_Type96 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type96); + + if (return_code_Type96 != 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_Type96.type_identifier1()._d() || TK_NONE == type_ids_Type96.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type96.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type96.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type96.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type96.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type96.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type96.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type96.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type96.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type96.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type96.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type96.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type96.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type96.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type96.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type96.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type96.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type96.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type96.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type96.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type96.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type96.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type96.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type96.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type96.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_Type96.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type96); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type96, member_index); + } + CompleteStructType struct_type_Type96 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type96, header_Type96, member_seq_Type96); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type96, type_name_Type96.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type96 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type96 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type96", type_ids_Type96); + if (return_code_Type96 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type96: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep96 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep96; + MemberId member_id_dep96 = 0x00000060; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep96 = TypeObjectUtils::build_common_struct_member(member_id_dep96, member_flags_dep96, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep96 = TypeObjectUtils::build_common_struct_member(member_id_dep96, member_flags_dep96, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep96 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep96 = "dep96"; + eprosima::fastcdr::optional member_ann_builtin_dep96; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep96 = TypeObjectUtils::build_complete_member_detail(name_dep96, member_ann_builtin_dep96, ann_custom_TypeBig); + CompleteStructMember member_dep96 = TypeObjectUtils::build_complete_struct_member(common_dep96, detail_dep96); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep96); + } + { + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type97", type_ids_TypeBig); + + if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_Type97 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_Type97; + TypeIdentifierPair type_ids_Type97; + QualifiedTypeName type_name_Type97 = "Type97"; + eprosima::fastcdr::optional type_ann_builtin_Type97; + eprosima::fastcdr::optional ann_custom_Type97; + CompleteTypeDetail detail_Type97 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type97, ann_custom_Type97, type_name_Type97.to_string()); + CompleteStructHeader header_Type97; + header_Type97 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type97); + CompleteStructMemberSeq member_seq_Type97; + { + return_code_Type97 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_Type97); + + if (return_code_Type97 != 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_Type97.type_identifier1()._d() || TK_NONE == type_ids_Type97.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type97.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type97.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type97.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type97.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type97.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type97.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type97.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type97.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type97.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type97.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type97.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_Type97.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type97.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type97.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type97.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type97.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type97.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type97.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type97.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type97.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type97.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type97.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type97.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type97.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_Type97.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type97); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type97, member_index); + } + CompleteStructType struct_type_Type97 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type97, header_Type97, member_seq_Type97); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type97, type_name_Type97.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type97 already registered in TypeObjectRegistry for a different type."); + } + return_code_Type97 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type97", type_ids_Type97); + if (return_code_Type97 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Type97: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_dep97 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_dep97; + MemberId member_id_dep97 = 0x00000061; + if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_dep97 = TypeObjectUtils::build_common_struct_member(member_id_dep97, member_flags_dep97, type_ids_TypeBig.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_dep97 = TypeObjectUtils::build_common_struct_member(member_id_dep97, member_flags_dep97, type_ids_TypeBig.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure dep97 member TypeIdentifier inconsistent."); + return; + } + MemberName name_dep97 = "dep97"; + eprosima::fastcdr::optional member_ann_builtin_dep97; + ann_custom_TypeBig.reset(); + CompleteMemberDetail detail_dep97 = TypeObjectUtils::build_complete_member_detail(name_dep97, member_ann_builtin_dep97, ann_custom_TypeBig); + CompleteStructMember member_dep97 = TypeObjectUtils::build_complete_struct_member(common_dep97, detail_dep97); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep97); + } { return_code_TypeBig = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type1", type_ids_TypeBig); + "Type98", type_ids_TypeBig); if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) { { - StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type98 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - ReturnCode_t return_code_Type1; - TypeIdentifierPair type_ids_Type1; - QualifiedTypeName type_name_Type1 = "Type1"; - eprosima::fastcdr::optional type_ann_builtin_Type1; - eprosima::fastcdr::optional ann_custom_Type1; - CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); - CompleteStructHeader header_Type1; - header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); - CompleteStructMemberSeq member_seq_Type1; + ReturnCode_t return_code_Type98; + TypeIdentifierPair type_ids_Type98; + QualifiedTypeName type_name_Type98 = "Type98"; + eprosima::fastcdr::optional type_ann_builtin_Type98; + eprosima::fastcdr::optional ann_custom_Type98; + CompleteTypeDetail detail_Type98 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type98, ann_custom_Type98, type_name_Type98.to_string()); + CompleteStructHeader header_Type98; + header_Type98 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type98); + CompleteStructMemberSeq member_seq_Type98; { - return_code_Type1 = + return_code_Type98 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type1); + "_uint16_t", type_ids_Type98); - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + if (return_code_Type98 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); @@ -105,41 +24613,41 @@ void register_TypeBig_type_identifier() false, false, false, false); CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) + if (EK_COMPLETE == type_ids_Type98.type_identifier1()._d() || TK_NONE == type_ids_Type98.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type98.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type98.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type98.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type98.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type98.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type98.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type98.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type98.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type98.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type98.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type98.type_identifier1()); } - else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) + else if (EK_COMPLETE == type_ids_Type98.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type98.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type98.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type98.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type98.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type98.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type98.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type98.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type98.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type98.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type98.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type98.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier2()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type98.type_identifier2()); } else { @@ -149,33 +24657,33 @@ void register_TypeBig_type_identifier() } MemberName name_index = "index"; eprosima::fastcdr::optional member_ann_builtin_index; - ann_custom_Type1.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); + ann_custom_Type98.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type98); CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type98, member_index); } - CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); + CompleteStructType struct_type_Type98 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type98, header_Type98, member_seq_Type98); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type98, type_name_Type98.to_string())) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1 already registered in TypeObjectRegistry for a different type."); + "Type98 already registered in TypeObjectRegistry for a different type."); } - return_code_Type1 = + return_code_Type98 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type1", type_ids_Type1); - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + "Type98", type_ids_Type98); + if (return_code_Type98 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + "Type98: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); return; } } } - StructMemberFlag member_flags_dep1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_dep98 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, false, false, false, false); - CommonStructMember common_dep1; - MemberId member_id_dep1 = 0x00000000; + CommonStructMember common_dep98; + MemberId member_id_dep98 = 0x00000062; if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || @@ -192,7 +24700,7 @@ void register_TypeBig_type_identifier() (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_dep1 = TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, type_ids_TypeBig.type_identifier1()); + common_dep98 = TypeObjectUtils::build_common_struct_member(member_id_dep98, member_flags_dep98, type_ids_TypeBig.type_identifier1()); } else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && @@ -210,46 +24718,46 @@ void register_TypeBig_type_identifier() (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_dep1 = TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, type_ids_TypeBig.type_identifier2()); + common_dep98 = TypeObjectUtils::build_common_struct_member(member_id_dep98, member_flags_dep98, type_ids_TypeBig.type_identifier2()); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep1 member TypeIdentifier inconsistent."); + "Structure dep98 member TypeIdentifier inconsistent."); return; } - MemberName name_dep1 = "dep1"; - eprosima::fastcdr::optional member_ann_builtin_dep1; + MemberName name_dep98 = "dep98"; + eprosima::fastcdr::optional member_ann_builtin_dep98; ann_custom_TypeBig.reset(); - CompleteMemberDetail detail_dep1 = TypeObjectUtils::build_complete_member_detail(name_dep1, member_ann_builtin_dep1, ann_custom_TypeBig); - CompleteStructMember member_dep1 = TypeObjectUtils::build_complete_struct_member(common_dep1, detail_dep1); - TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep1); + CompleteMemberDetail detail_dep98 = TypeObjectUtils::build_complete_member_detail(name_dep98, member_ann_builtin_dep98, ann_custom_TypeBig); + CompleteStructMember member_dep98 = TypeObjectUtils::build_complete_struct_member(common_dep98, detail_dep98); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep98); } { return_code_TypeBig = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type2", type_ids_TypeBig); + "Type99", type_ids_TypeBig); if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) { { - StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type99 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - ReturnCode_t return_code_Type2; - TypeIdentifierPair type_ids_Type2; - QualifiedTypeName type_name_Type2 = "Type2"; - eprosima::fastcdr::optional type_ann_builtin_Type2; - eprosima::fastcdr::optional ann_custom_Type2; - CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); - CompleteStructHeader header_Type2; - header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); - CompleteStructMemberSeq member_seq_Type2; + ReturnCode_t return_code_Type99; + TypeIdentifierPair type_ids_Type99; + QualifiedTypeName type_name_Type99 = "Type99"; + eprosima::fastcdr::optional type_ann_builtin_Type99; + eprosima::fastcdr::optional ann_custom_Type99; + CompleteTypeDetail detail_Type99 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type99, ann_custom_Type99, type_name_Type99.to_string()); + CompleteStructHeader header_Type99; + header_Type99 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type99); + CompleteStructMemberSeq member_seq_Type99; { - return_code_Type2 = + return_code_Type99 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Type2); + "_uint16_t", type_ids_Type99); - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + if (return_code_Type99 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); @@ -259,41 +24767,41 @@ void register_TypeBig_type_identifier() false, false, false, false); CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) + if (EK_COMPLETE == type_ids_Type99.type_identifier1()._d() || TK_NONE == type_ids_Type99.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type99.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type99.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type99.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type99.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type99.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type99.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type99.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type99.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type99.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type99.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type99.type_identifier1()); } - else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) + else if (EK_COMPLETE == type_ids_Type99.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type99.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type99.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type99.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type99.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type99.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type99.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type99.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type99.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type99.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type99.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type99.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier2()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type99.type_identifier2()); } else { @@ -303,33 +24811,33 @@ void register_TypeBig_type_identifier() } MemberName name_index = "index"; eprosima::fastcdr::optional member_ann_builtin_index; - ann_custom_Type2.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); + ann_custom_Type99.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type99); CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type99, member_index); } - CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); + CompleteStructType struct_type_Type99 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type99, header_Type99, member_seq_Type99); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type99, type_name_Type99.to_string())) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2 already registered in TypeObjectRegistry for a different type."); + "Type99 already registered in TypeObjectRegistry for a different type."); } - return_code_Type2 = + return_code_Type99 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type2", type_ids_Type2); - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + "Type99", type_ids_Type99); + if (return_code_Type99 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + "Type99: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); return; } } } - StructMemberFlag member_flags_dep2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_dep99 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, false, false, false, false); - CommonStructMember common_dep2; - MemberId member_id_dep2 = 0x00000001; + CommonStructMember common_dep99; + MemberId member_id_dep99 = 0x00000063; if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || @@ -346,7 +24854,7 @@ void register_TypeBig_type_identifier() (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_dep2 = TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, type_ids_TypeBig.type_identifier1()); + common_dep99 = TypeObjectUtils::build_common_struct_member(member_id_dep99, member_flags_dep99, type_ids_TypeBig.type_identifier1()); } else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && @@ -364,46 +24872,46 @@ void register_TypeBig_type_identifier() (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_dep2 = TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, type_ids_TypeBig.type_identifier2()); + common_dep99 = TypeObjectUtils::build_common_struct_member(member_id_dep99, member_flags_dep99, type_ids_TypeBig.type_identifier2()); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep2 member TypeIdentifier inconsistent."); + "Structure dep99 member TypeIdentifier inconsistent."); return; } - MemberName name_dep2 = "dep2"; - eprosima::fastcdr::optional member_ann_builtin_dep2; + MemberName name_dep99 = "dep99"; + eprosima::fastcdr::optional member_ann_builtin_dep99; ann_custom_TypeBig.reset(); - CompleteMemberDetail detail_dep2 = TypeObjectUtils::build_complete_member_detail(name_dep2, member_ann_builtin_dep2, ann_custom_TypeBig); - CompleteStructMember member_dep2 = TypeObjectUtils::build_complete_struct_member(common_dep2, detail_dep2); - TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep2); + CompleteMemberDetail detail_dep99 = TypeObjectUtils::build_complete_member_detail(name_dep99, member_ann_builtin_dep99, ann_custom_TypeBig); + CompleteStructMember member_dep99 = TypeObjectUtils::build_complete_struct_member(common_dep99, detail_dep99); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep99); } { return_code_TypeBig = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type3", type_ids_TypeBig); + "Type100", type_ids_TypeBig); if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) { { - StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type100 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - ReturnCode_t return_code_Type3; - TypeIdentifierPair type_ids_Type3; - QualifiedTypeName type_name_Type3 = "Type3"; - eprosima::fastcdr::optional type_ann_builtin_Type3; - eprosima::fastcdr::optional ann_custom_Type3; - CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); - CompleteStructHeader header_Type3; - header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); - CompleteStructMemberSeq member_seq_Type3; + ReturnCode_t return_code_Type100; + TypeIdentifierPair type_ids_Type100; + QualifiedTypeName type_name_Type100 = "Type100"; + eprosima::fastcdr::optional type_ann_builtin_Type100; + eprosima::fastcdr::optional ann_custom_Type100; + CompleteTypeDetail detail_Type100 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type100, ann_custom_Type100, type_name_Type100.to_string()); + CompleteStructHeader header_Type100; + header_Type100 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type100); + CompleteStructMemberSeq member_seq_Type100; { - return_code_Type3 = + return_code_Type100 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Type3); + "_uint16_t", type_ids_Type100); - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) + if (return_code_Type100 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); @@ -413,41 +24921,41 @@ void register_TypeBig_type_identifier() false, false, false, false); CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) + if (EK_COMPLETE == type_ids_Type100.type_identifier1()._d() || TK_NONE == type_ids_Type100.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type100.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type100.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type100.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type100.type_identifier1()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type100.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type100.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type100.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type100.type_identifier1()._d() && + (EK_COMPLETE == type_ids_Type100.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type100.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type100.type_identifier1()); } - else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) + else if (EK_COMPLETE == type_ids_Type100.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type100.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type100.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_Type100.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_Type100.type_identifier2()._d() && + EK_COMPLETE == type_ids_Type100.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_Type100.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type100.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type100.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_Type100.type_identifier2()._d() && + (EK_COMPLETE == type_ids_Type100.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_Type100.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier2()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type100.type_identifier2()); } else { @@ -457,33 +24965,33 @@ void register_TypeBig_type_identifier() } MemberName name_index = "index"; eprosima::fastcdr::optional member_ann_builtin_index; - ann_custom_Type3.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); + ann_custom_Type100.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type100); CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Type100, member_index); } - CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); + CompleteStructType struct_type_Type100 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type100, header_Type100, member_seq_Type100); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type100, type_name_Type100.to_string())) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3 already registered in TypeObjectRegistry for a different type."); + "Type100 already registered in TypeObjectRegistry for a different type."); } - return_code_Type3 = + return_code_Type100 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type3", type_ids_Type3); - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) + "Type100", type_ids_Type100); + if (return_code_Type100 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + "Type100: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); return; } } } - StructMemberFlag member_flags_dep3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_dep100 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, false, false, false, false); - CommonStructMember common_dep3; - MemberId member_id_dep3 = 0x00000002; + CommonStructMember common_dep100; + MemberId member_id_dep100 = 0x00000064; if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || @@ -500,7 +25008,7 @@ void register_TypeBig_type_identifier() (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_dep3 = TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, type_ids_TypeBig.type_identifier1()); + common_dep100 = TypeObjectUtils::build_common_struct_member(member_id_dep100, member_flags_dep100, type_ids_TypeBig.type_identifier1()); } else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && @@ -518,20 +25026,20 @@ void register_TypeBig_type_identifier() (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_dep3 = TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, type_ids_TypeBig.type_identifier2()); + common_dep100 = TypeObjectUtils::build_common_struct_member(member_id_dep100, member_flags_dep100, type_ids_TypeBig.type_identifier2()); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep3 member TypeIdentifier inconsistent."); + "Structure dep100 member TypeIdentifier inconsistent."); return; } - MemberName name_dep3 = "dep3"; - eprosima::fastcdr::optional member_ann_builtin_dep3; + MemberName name_dep100 = "dep100"; + eprosima::fastcdr::optional member_ann_builtin_dep100; ann_custom_TypeBig.reset(); - CompleteMemberDetail detail_dep3 = TypeObjectUtils::build_complete_member_detail(name_dep3, member_ann_builtin_dep3, ann_custom_TypeBig); - CompleteStructMember member_dep3 = TypeObjectUtils::build_complete_struct_member(common_dep3, detail_dep3); - TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep3); + CompleteMemberDetail detail_dep100 = TypeObjectUtils::build_complete_member_detail(name_dep100, member_ann_builtin_dep100, ann_custom_TypeBig); + CompleteStructMember member_dep100 = TypeObjectUtils::build_complete_struct_member(common_dep100, detail_dep100); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep100); } CompleteStructType struct_type_TypeBig = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeBig, header_TypeBig, member_seq_TypeBig); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp index 4c7c0fffa5e..b21427bac11 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp @@ -43,6 +43,685 @@ eProsima_user_DllExport void register_XtypesTestsTypeBig_type_objects(); #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC +/** + * @brief Register Type4 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_Type4_type_identifier(); +/** + * @brief Register Type5 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_Type5_type_identifier(); +/** + * @brief Register Type6 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_Type6_type_identifier(); +/** + * @brief Register Type7 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_Type7_type_identifier(); +/** + * @brief Register Type8 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_Type8_type_identifier(); +/** + * @brief Register Type9 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_Type9_type_identifier(); +/** + * @brief Register Type10 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_Type10_type_identifier(); +/** + * @brief Register Type11 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_Type11_type_identifier(); +/** + * @brief Register Type12 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_Type12_type_identifier(); +/** + * @brief Register Type13 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_Type13_type_identifier(); +/** + * @brief Register Type14 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_Type14_type_identifier(); +/** + * @brief Register Type15 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_Type15_type_identifier(); +/** + * @brief Register Type16 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_Type16_type_identifier(); +/** + * @brief Register Type17 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_Type17_type_identifier(); +/** + * @brief Register Type18 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_Type18_type_identifier(); +/** + * @brief Register Type19 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_Type19_type_identifier(); +/** + * @brief Register Type20 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_Type20_type_identifier(); +/** + * @brief Register Type21 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_Type21_type_identifier(); +/** + * @brief Register Type22 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_Type22_type_identifier(); +/** + * @brief Register Type23 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_Type23_type_identifier(); +/** + * @brief Register Type24 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_Type24_type_identifier(); +/** + * @brief Register Type25 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_Type25_type_identifier(); +/** + * @brief Register Type26 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_Type26_type_identifier(); +/** + * @brief Register Type27 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_Type27_type_identifier(); +/** + * @brief Register Type28 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_Type28_type_identifier(); +/** + * @brief Register Type29 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_Type29_type_identifier(); +/** + * @brief Register Type30 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_Type30_type_identifier(); +/** + * @brief Register Type31 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_Type31_type_identifier(); +/** + * @brief Register Type32 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_Type32_type_identifier(); +/** + * @brief Register Type33 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_Type33_type_identifier(); +/** + * @brief Register Type34 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_Type34_type_identifier(); +/** + * @brief Register Type35 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_Type35_type_identifier(); +/** + * @brief Register Type36 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_Type36_type_identifier(); +/** + * @brief Register Type37 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_Type37_type_identifier(); +/** + * @brief Register Type38 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_Type38_type_identifier(); +/** + * @brief Register Type39 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_Type39_type_identifier(); +/** + * @brief Register Type40 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_Type40_type_identifier(); +/** + * @brief Register Type41 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_Type41_type_identifier(); +/** + * @brief Register Type42 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_Type42_type_identifier(); +/** + * @brief Register Type43 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_Type43_type_identifier(); +/** + * @brief Register Type44 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_Type44_type_identifier(); +/** + * @brief Register Type45 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_Type45_type_identifier(); +/** + * @brief Register Type46 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_Type46_type_identifier(); +/** + * @brief Register Type47 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_Type47_type_identifier(); +/** + * @brief Register Type48 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_Type48_type_identifier(); +/** + * @brief Register Type49 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_Type49_type_identifier(); +/** + * @brief Register Type50 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_Type50_type_identifier(); +/** + * @brief Register Type51 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_Type51_type_identifier(); +/** + * @brief Register Type52 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_Type52_type_identifier(); +/** + * @brief Register Type53 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_Type53_type_identifier(); +/** + * @brief Register Type54 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_Type54_type_identifier(); +/** + * @brief Register Type55 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_Type55_type_identifier(); +/** + * @brief Register Type56 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_Type56_type_identifier(); +/** + * @brief Register Type57 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_Type57_type_identifier(); +/** + * @brief Register Type58 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_Type58_type_identifier(); +/** + * @brief Register Type59 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_Type59_type_identifier(); +/** + * @brief Register Type60 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_Type60_type_identifier(); +/** + * @brief Register Type61 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_Type61_type_identifier(); +/** + * @brief Register Type62 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_Type62_type_identifier(); +/** + * @brief Register Type63 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_Type63_type_identifier(); +/** + * @brief Register Type64 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_Type64_type_identifier(); +/** + * @brief Register Type65 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_Type65_type_identifier(); +/** + * @brief Register Type66 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_Type66_type_identifier(); +/** + * @brief Register Type67 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_Type67_type_identifier(); +/** + * @brief Register Type68 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_Type68_type_identifier(); +/** + * @brief Register Type69 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_Type69_type_identifier(); +/** + * @brief Register Type70 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_Type70_type_identifier(); +/** + * @brief Register Type71 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_Type71_type_identifier(); +/** + * @brief Register Type72 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_Type72_type_identifier(); +/** + * @brief Register Type73 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_Type73_type_identifier(); +/** + * @brief Register Type74 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_Type74_type_identifier(); +/** + * @brief Register Type75 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_Type75_type_identifier(); +/** + * @brief Register Type76 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_Type76_type_identifier(); +/** + * @brief Register Type77 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_Type77_type_identifier(); +/** + * @brief Register Type78 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_Type78_type_identifier(); +/** + * @brief Register Type79 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_Type79_type_identifier(); +/** + * @brief Register Type80 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_Type80_type_identifier(); +/** + * @brief Register Type81 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_Type81_type_identifier(); +/** + * @brief Register Type82 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_Type82_type_identifier(); +/** + * @brief Register Type83 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_Type83_type_identifier(); +/** + * @brief Register Type84 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_Type84_type_identifier(); +/** + * @brief Register Type85 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_Type85_type_identifier(); +/** + * @brief Register Type86 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_Type86_type_identifier(); +/** + * @brief Register Type87 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_Type87_type_identifier(); +/** + * @brief Register Type88 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_Type88_type_identifier(); +/** + * @brief Register Type89 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_Type89_type_identifier(); +/** + * @brief Register Type90 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_Type90_type_identifier(); +/** + * @brief Register Type91 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_Type91_type_identifier(); +/** + * @brief Register Type92 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_Type92_type_identifier(); +/** + * @brief Register Type93 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_Type93_type_identifier(); +/** + * @brief Register Type94 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_Type94_type_identifier(); +/** + * @brief Register Type95 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_Type95_type_identifier(); +/** + * @brief Register Type96 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_Type96_type_identifier(); +/** + * @brief Register Type97 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_Type97_type_identifier(); +/** + * @brief Register Type98 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_Type98_type_identifier(); +/** + * @brief Register Type99 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_Type99_type_identifier(); +/** + * @brief Register Type100 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_Type100_type_identifier(); /** * @brief Register TypeBig related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp index c556693490a..439257aa363 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp @@ -81,11 +81,13 @@ class TypeDep eProsima_user_DllExport TypeDep( const TypeDep& x) { - m_var_type1 = x.m_var_type1; + m_index = x.m_index; - m_var_type2 = x.m_var_type2; + m_var_type1 = x.m_var_type1; - m_var_type3 = x.m_var_type3; + m_var_type2 = x.m_var_type2; + + m_var_type3 = x.m_var_type3; } @@ -96,6 +98,7 @@ class TypeDep eProsima_user_DllExport TypeDep( TypeDep&& x) noexcept { + m_index = x.m_index; m_var_type1 = std::move(x.m_var_type1); m_var_type2 = std::move(x.m_var_type2); m_var_type3 = std::move(x.m_var_type3); @@ -109,11 +112,13 @@ class TypeDep const TypeDep& x) { - m_var_type1 = x.m_var_type1; + m_index = x.m_index; + + m_var_type1 = x.m_var_type1; - m_var_type2 = x.m_var_type2; + m_var_type2 = x.m_var_type2; - m_var_type3 = x.m_var_type3; + m_var_type3 = x.m_var_type3; return *this; } @@ -126,6 +131,7 @@ class TypeDep TypeDep&& x) noexcept { + m_index = x.m_index; m_var_type1 = std::move(x.m_var_type1); m_var_type2 = std::move(x.m_var_type2); m_var_type3 = std::move(x.m_var_type3); @@ -139,9 +145,10 @@ class TypeDep eProsima_user_DllExport bool operator ==( const TypeDep& x) const { - return (m_var_type1 == x.m_var_type1 && - m_var_type2 == x.m_var_type2 && - m_var_type3 == x.m_var_type3); + return (m_index == x.m_index && + m_var_type1 == x.m_var_type1 && + m_var_type2 == x.m_var_type2 && + m_var_type3 == x.m_var_type3); } /*! @@ -154,6 +161,35 @@ class TypeDep return !(*this == x); } + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + /*! * @brief This function copies the value in member var_type1 * @param _var_type1 New value to be copied in member var_type1 @@ -192,6 +228,7 @@ class TypeDep return m_var_type1; } + /*! * @brief This function copies the value in member var_type2 * @param _var_type2 New value to be copied in member var_type2 @@ -230,6 +267,7 @@ class TypeDep return m_var_type2; } + /*! * @brief This function copies the value in member var_type3 * @param _var_type3 New value to be copied in member var_type3 @@ -268,8 +306,11 @@ class TypeDep return m_var_type3; } + + private: + uint16_t m_index{0}; Type1 m_var_type1; Type2 m_var_type2; Type3 m_var_type3; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.idl b/test/dds/xtypes/idl/XtypesTestsTypeDep.idl index 6a007befc92..3eef39f8d44 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDep.idl +++ b/test/dds/xtypes/idl/XtypesTestsTypeDep.idl @@ -4,6 +4,7 @@ struct TypeDep { + unsigned short index; Type1 var_type1; Type2 var_type2; Type3 var_type3; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp index e6b367e22e7..7ad5a304e87 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp @@ -24,7 +24,7 @@ #include "XtypesTestsTypeDep.hpp" -constexpr uint32_t TypeDep_max_cdr_typesize {28UL}; +constexpr uint32_t TypeDep_max_cdr_typesize {32UL}; constexpr uint32_t TypeDep_max_key_cdr_typesize {0UL}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp index 704902cecb7..e6f323ba9f0 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp @@ -51,12 +51,15 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.var_type1(), current_alignment); + data.index(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.var_type2(), current_alignment); + data.var_type1(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.var_type2(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(3), data.var_type3(), current_alignment); @@ -77,9 +80,10 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.var_type1() - << eprosima::fastcdr::MemberId(1) << data.var_type2() - << eprosima::fastcdr::MemberId(2) << data.var_type3() + << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(1) << data.var_type1() + << eprosima::fastcdr::MemberId(2) << data.var_type2() + << eprosima::fastcdr::MemberId(3) << data.var_type3() ; scdr.end_serialize_type(current_state); } @@ -98,14 +102,18 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.var_type1(); + dcdr >> data.index(); break; case 1: - dcdr >> data.var_type2(); + dcdr >> data.var_type1(); break; case 2: + dcdr >> data.var_type2(); + break; + + case 3: dcdr >> data.var_type3(); break; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx index 61aebef29d8..c7d22336fdb 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx @@ -60,39 +60,118 @@ void register_XtypesTestsTypeDep_type_objects() void register_TypeDep_type_identifier() { { - StructTypeFlag struct_flags_TypeDep = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); + StructTypeFlag struct_flags_TypeDep = TypeObjectUtils::build_struct_type_flag( + eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); ReturnCode_t return_code_TypeDep; TypeIdentifierPair type_ids_TypeDep; QualifiedTypeName type_name_TypeDep = "TypeDep"; eprosima::fastcdr::optional type_ann_builtin_TypeDep; eprosima::fastcdr::optional ann_custom_TypeDep; - CompleteTypeDetail detail_TypeDep = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeDep, ann_custom_TypeDep, type_name_TypeDep.to_string()); + CompleteTypeDetail detail_TypeDep = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeDep, + ann_custom_TypeDep, + type_name_TypeDep.to_string()); CompleteStructHeader header_TypeDep; header_TypeDep = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeDep); CompleteStructMemberSeq member_seq_TypeDep; { return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). + get_type_identifiers( + "_uint16_t", type_ids_TypeDep); + + if (return_code_TypeDep != 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_TypeDep.type_identifier1()._d() || + TK_NONE == type_ids_TypeDep.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier1()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier1()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, + type_ids_TypeDep.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier2()._d() && + EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier2()._d() && + (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, + type_ids_TypeDep.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_TypeDep.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, + member_ann_builtin_index, + ann_custom_TypeDep); + CompleteStructMember member_index = + TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_index); + } + { + return_code_TypeDep = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). + get_type_identifiers( "Type1", type_ids_TypeDep); if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) { { - StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); + StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag( + eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); ReturnCode_t return_code_Type1; TypeIdentifierPair type_ids_Type1; QualifiedTypeName type_name_Type1 = "Type1"; eprosima::fastcdr::optional type_ann_builtin_Type1; eprosima::fastcdr::optional ann_custom_Type1; - CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); + CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail( + type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); CompleteStructHeader header_Type1; header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); CompleteStructMemberSeq member_seq_Type1; { return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() + .get_type_identifiers( "_uint16_t", type_ids_Type1); if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) @@ -101,11 +180,13 @@ void register_TypeDep_type_identifier() "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); + 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || + if (EK_COMPLETE == type_ids_Type1.type_identifier1()._d() || + TK_NONE == type_ids_Type1.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && @@ -121,7 +202,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, + member_flags_index, + type_ids_Type1.type_identifier1()); } else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && @@ -139,7 +222,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier2()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, + member_flags_index, + type_ids_Type1.type_identifier2()); } else { @@ -150,33 +235,41 @@ void register_TypeDep_type_identifier() MemberName name_index = "index"; eprosima::fastcdr::optional member_ann_builtin_index; ann_custom_Type1.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, + member_ann_builtin_index, + ann_custom_Type1); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, + detail_index); TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); } - CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); + CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type( + struct_flags_Type1, header_Type1, member_seq_Type1); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, + type_name_Type1.to_string())) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type1 already registered in TypeObjectRegistry for a different type."); } return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). + get_type_identifiers( "Type1", type_ids_Type1); if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); return; } } } - StructMemberFlag member_flags_var_type1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); + StructMemberFlag member_flags_var_type1 = TypeObjectUtils::build_struct_member_flag( + eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); CommonStructMember common_var_type1; - MemberId member_id_var_type1 = 0x00000000; - if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || TK_NONE == type_ids_TypeDep.type_identifier2()._d() || + MemberId member_id_var_type1 = 0x00000001; + if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || + TK_NONE == type_ids_TypeDep.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && @@ -192,7 +285,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_var_type1 = TypeObjectUtils::build_common_struct_member(member_id_var_type1, member_flags_var_type1, type_ids_TypeDep.type_identifier1()); + common_var_type1 = TypeObjectUtils::build_common_struct_member(member_id_var_type1, + member_flags_var_type1, + type_ids_TypeDep.type_identifier1()); } else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && @@ -210,7 +305,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_var_type1 = TypeObjectUtils::build_common_struct_member(member_id_var_type1, member_flags_var_type1, type_ids_TypeDep.type_identifier2()); + common_var_type1 = TypeObjectUtils::build_common_struct_member(member_id_var_type1, + member_flags_var_type1, + type_ids_TypeDep.type_identifier2()); } else { @@ -221,32 +318,39 @@ void register_TypeDep_type_identifier() MemberName name_var_type1 = "var_type1"; eprosima::fastcdr::optional member_ann_builtin_var_type1; ann_custom_TypeDep.reset(); - CompleteMemberDetail detail_var_type1 = TypeObjectUtils::build_complete_member_detail(name_var_type1, member_ann_builtin_var_type1, ann_custom_TypeDep); - CompleteStructMember member_var_type1 = TypeObjectUtils::build_complete_struct_member(common_var_type1, detail_var_type1); + CompleteMemberDetail detail_var_type1 = TypeObjectUtils::build_complete_member_detail(name_var_type1, + member_ann_builtin_var_type1, + ann_custom_TypeDep); + CompleteStructMember member_var_type1 = TypeObjectUtils::build_complete_struct_member(common_var_type1, + detail_var_type1); TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type1); } { return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). + get_type_identifiers( "Type2", type_ids_TypeDep); if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) { { - StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); + StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag( + eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); ReturnCode_t return_code_Type2; TypeIdentifierPair type_ids_Type2; QualifiedTypeName type_name_Type2 = "Type2"; eprosima::fastcdr::optional type_ann_builtin_Type2; eprosima::fastcdr::optional ann_custom_Type2; - CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); + CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail( + type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); CompleteStructHeader header_Type2; header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); CompleteStructMemberSeq member_seq_Type2; { return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() + .get_type_identifiers( "_int16_t", type_ids_Type2); if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) @@ -255,11 +359,13 @@ void register_TypeDep_type_identifier() "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); + 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || + if (EK_COMPLETE == type_ids_Type2.type_identifier1()._d() || + TK_NONE == type_ids_Type2.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && @@ -275,7 +381,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, + member_flags_index, + type_ids_Type2.type_identifier1()); } else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && @@ -293,7 +401,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier2()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, + member_flags_index, + type_ids_Type2.type_identifier2()); } else { @@ -304,33 +414,41 @@ void register_TypeDep_type_identifier() MemberName name_index = "index"; eprosima::fastcdr::optional member_ann_builtin_index; ann_custom_Type2.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, + member_ann_builtin_index, + ann_custom_Type2); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, + detail_index); TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); } - CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); + CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type( + struct_flags_Type2, header_Type2, member_seq_Type2); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, + type_name_Type2.to_string())) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type2 already registered in TypeObjectRegistry for a different type."); } return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). + get_type_identifiers( "Type2", type_ids_Type2); if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); return; } } } - StructMemberFlag member_flags_var_type2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); + StructMemberFlag member_flags_var_type2 = TypeObjectUtils::build_struct_member_flag( + eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); CommonStructMember common_var_type2; - MemberId member_id_var_type2 = 0x00000001; - if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || TK_NONE == type_ids_TypeDep.type_identifier2()._d() || + MemberId member_id_var_type2 = 0x00000002; + if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || + TK_NONE == type_ids_TypeDep.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && @@ -346,7 +464,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_var_type2 = TypeObjectUtils::build_common_struct_member(member_id_var_type2, member_flags_var_type2, type_ids_TypeDep.type_identifier1()); + common_var_type2 = TypeObjectUtils::build_common_struct_member(member_id_var_type2, + member_flags_var_type2, + type_ids_TypeDep.type_identifier1()); } else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && @@ -364,7 +484,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_var_type2 = TypeObjectUtils::build_common_struct_member(member_id_var_type2, member_flags_var_type2, type_ids_TypeDep.type_identifier2()); + common_var_type2 = TypeObjectUtils::build_common_struct_member(member_id_var_type2, + member_flags_var_type2, + type_ids_TypeDep.type_identifier2()); } else { @@ -375,32 +497,39 @@ void register_TypeDep_type_identifier() MemberName name_var_type2 = "var_type2"; eprosima::fastcdr::optional member_ann_builtin_var_type2; ann_custom_TypeDep.reset(); - CompleteMemberDetail detail_var_type2 = TypeObjectUtils::build_complete_member_detail(name_var_type2, member_ann_builtin_var_type2, ann_custom_TypeDep); - CompleteStructMember member_var_type2 = TypeObjectUtils::build_complete_struct_member(common_var_type2, detail_var_type2); + CompleteMemberDetail detail_var_type2 = TypeObjectUtils::build_complete_member_detail(name_var_type2, + member_ann_builtin_var_type2, + ann_custom_TypeDep); + CompleteStructMember member_var_type2 = TypeObjectUtils::build_complete_struct_member(common_var_type2, + detail_var_type2); TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type2); } { return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). + get_type_identifiers( "Type3", type_ids_TypeDep); if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) { { - StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); + StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag( + eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); ReturnCode_t return_code_Type3; TypeIdentifierPair type_ids_Type3; QualifiedTypeName type_name_Type3 = "Type3"; eprosima::fastcdr::optional type_ann_builtin_Type3; eprosima::fastcdr::optional ann_custom_Type3; - CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); + CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail( + type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); CompleteStructHeader header_Type3; header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); CompleteStructMemberSeq member_seq_Type3; { return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() + .get_type_identifiers( "_int32_t", type_ids_Type3); if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) @@ -409,11 +538,13 @@ void register_TypeDep_type_identifier() "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); + 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_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || + if (EK_COMPLETE == type_ids_Type3.type_identifier1()._d() || + TK_NONE == type_ids_Type3.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && @@ -429,7 +560,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, + member_flags_index, + type_ids_Type3.type_identifier1()); } else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && @@ -447,7 +580,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier2()); + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, + member_flags_index, + type_ids_Type3.type_identifier2()); } else { @@ -458,33 +593,41 @@ void register_TypeDep_type_identifier() MemberName name_index = "index"; eprosima::fastcdr::optional member_ann_builtin_index; ann_custom_Type3.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, + member_ann_builtin_index, + ann_custom_Type3); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, + detail_index); TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); } - CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); + CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type( + struct_flags_Type3, header_Type3, member_seq_Type3); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, + type_name_Type3.to_string())) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type3 already registered in TypeObjectRegistry for a different type."); } return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). + get_type_identifiers( "Type3", type_ids_Type3); if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); return; } } } - StructMemberFlag member_flags_var_type3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); + StructMemberFlag member_flags_var_type3 = TypeObjectUtils::build_struct_member_flag( + eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); CommonStructMember common_var_type3; - MemberId member_id_var_type3 = 0x00000002; - if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || TK_NONE == type_ids_TypeDep.type_identifier2()._d() || + MemberId member_id_var_type3 = 0x00000003; + if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || + TK_NONE == type_ids_TypeDep.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && @@ -500,7 +643,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) { - common_var_type3 = TypeObjectUtils::build_common_struct_member(member_id_var_type3, member_flags_var_type3, type_ids_TypeDep.type_identifier1()); + common_var_type3 = TypeObjectUtils::build_common_struct_member(member_id_var_type3, + member_flags_var_type3, + type_ids_TypeDep.type_identifier1()); } else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && @@ -518,7 +663,9 @@ void register_TypeDep_type_identifier() (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) { - common_var_type3 = TypeObjectUtils::build_common_struct_member(member_id_var_type3, member_flags_var_type3, type_ids_TypeDep.type_identifier2()); + common_var_type3 = TypeObjectUtils::build_common_struct_member(member_id_var_type3, + member_flags_var_type3, + type_ids_TypeDep.type_identifier2()); } else { @@ -529,26 +676,32 @@ void register_TypeDep_type_identifier() MemberName name_var_type3 = "var_type3"; eprosima::fastcdr::optional member_ann_builtin_var_type3; ann_custom_TypeDep.reset(); - CompleteMemberDetail detail_var_type3 = TypeObjectUtils::build_complete_member_detail(name_var_type3, member_ann_builtin_var_type3, ann_custom_TypeDep); - CompleteStructMember member_var_type3 = TypeObjectUtils::build_complete_struct_member(common_var_type3, detail_var_type3); + CompleteMemberDetail detail_var_type3 = TypeObjectUtils::build_complete_member_detail(name_var_type3, + member_ann_builtin_var_type3, + ann_custom_TypeDep); + CompleteStructMember member_var_type3 = TypeObjectUtils::build_complete_struct_member(common_var_type3, + detail_var_type3); TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type3); } - CompleteStructType struct_type_TypeDep = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeDep, header_TypeDep, member_seq_TypeDep); + CompleteStructType struct_type_TypeDep = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeDep, + header_TypeDep, + member_seq_TypeDep); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeDep, type_name_TypeDep.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeDep, + type_name_TypeDep.to_string())) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "TypeDep already registered in TypeObjectRegistry for a different type."); } return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). + get_type_identifiers( "TypeDep", type_ids_TypeDep); if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "TypeDep: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + "TypeDep: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); return; } } } - diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 3223110ec09..3a8468ea74d 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -67,7 +67,7 @@ def execute_commands(commands, logger): for command in commands: logger.info(f'Executing: {command}') processes.append(subprocess.Popen(command)) - time.sleep(0.25) # Delay for consistency + time.sleep(1) # Delay for consistency ret_value = 0 From 9fd7b1f9e32a8c6cda1f9540a1a8c5b53c65c5c8 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Mon, 22 Jan 2024 14:41:11 +0100 Subject: [PATCH 07/45] Refs #20165: Fixes for TypeBig. Signed-off-by: adriancampo --- test/dds/xtypes/Case1.json | 4 +- test/dds/xtypes/Case10.json | 16 ++--- test/dds/xtypes/Case11.json | 4 +- test/dds/xtypes/Case12.json | 4 +- test/dds/xtypes/Case13.json | 4 +- test/dds/xtypes/Case14.json | 4 +- test/dds/xtypes/Case2.json | 8 +-- test/dds/xtypes/Case3.json | 4 +- test/dds/xtypes/Case4.json | 4 +- test/dds/xtypes/Case5.json | 4 +- test/dds/xtypes/Case6.json | 4 +- test/dds/xtypes/Case7.json | 4 +- test/dds/xtypes/Case8.json | 8 +-- test/dds/xtypes/Case9.json | 16 ++--- test/dds/xtypes/TypeLookupPublisher.cpp | 84 +++++++++++++++------- test/dds/xtypes/TypeLookupPublisher.h | 13 ++-- test/dds/xtypes/TypeLookupSubscriber.cpp | 89 ++++++++++++++++++------ test/dds/xtypes/TypeLookupSubscriber.h | 16 +++-- test/dds/xtypes/TypeLookup_main.cpp | 14 ++-- test/dds/xtypes/test_build.py | 2 +- 20 files changed, 196 insertions(+), 110 deletions(-) diff --git a/test/dds/xtypes/Case1.json b/test/dds/xtypes/Case1.json index 4f1653379a8..80c66f16ca0 100644 --- a/test/dds/xtypes/Case1.json +++ b/test/dds/xtypes/Case1.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "1", + "expected_matches": "1", "known_types": [ "Type1" ] @@ -14,7 +14,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "1", + "expected_matches": "1", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case10.json b/test/dds/xtypes/Case10.json index 3f9b5307913..8dcb5768646 100644 --- a/test/dds/xtypes/Case10.json +++ b/test/dds/xtypes/Case10.json @@ -2,10 +2,10 @@ "description": "Case 10: Subscriber knows Type1 and Type2, Publisher1 knows Type1 and Type2, Publisher2 knows Type1.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "Type2" @@ -15,19 +15,19 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ - "Type1", - "Type2" + "Type1" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "4", "known_types": [ - "Type1" + "Type1", + "Type2" ] } ] diff --git a/test/dds/xtypes/Case11.json b/test/dds/xtypes/Case11.json index d3a11592395..470d02e30c7 100644 --- a/test/dds/xtypes/Case11.json +++ b/test/dds/xtypes/Case11.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "Type2" @@ -15,7 +15,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case12.json b/test/dds/xtypes/Case12.json index b9102a0359a..96cb850e94f 100644 --- a/test/dds/xtypes/Case12.json +++ b/test/dds/xtypes/Case12.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "Type2" @@ -15,7 +15,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case13.json b/test/dds/xtypes/Case13.json index 021535832ed..4f701318bb1 100644 --- a/test/dds/xtypes/Case13.json +++ b/test/dds/xtypes/Case13.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "Type2" @@ -15,7 +15,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case14.json b/test/dds/xtypes/Case14.json index 08d73493bb7..3e4b6d19d5b 100644 --- a/test/dds/xtypes/Case14.json +++ b/test/dds/xtypes/Case14.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "Type2" @@ -15,7 +15,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case2.json b/test/dds/xtypes/Case2.json index 646cf4ab883..c4bdc090502 100644 --- a/test/dds/xtypes/Case2.json +++ b/test/dds/xtypes/Case2.json @@ -2,20 +2,20 @@ "description": "Case 2: Subscriber knows Type1 and Type2, Publisher knows Type1.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "Type2" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case3.json b/test/dds/xtypes/Case3.json index 668165c95ac..fab4ab071b5 100644 --- a/test/dds/xtypes/Case3.json +++ b/test/dds/xtypes/Case3.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] @@ -14,7 +14,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type2" ] diff --git a/test/dds/xtypes/Case4.json b/test/dds/xtypes/Case4.json index caef8fa1014..fc7e75ccbfd 100644 --- a/test/dds/xtypes/Case4.json +++ b/test/dds/xtypes/Case4.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "3", + "expected_matches": "3", "known_types": [ "Type1", "Type2" @@ -15,7 +15,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "3", + "expected_matches": "3", "known_types": [ "Type1", "Type3" diff --git a/test/dds/xtypes/Case5.json b/test/dds/xtypes/Case5.json index af6e66acc99..c2e926a0c18 100644 --- a/test/dds/xtypes/Case5.json +++ b/test/dds/xtypes/Case5.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "Type2" @@ -15,7 +15,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "Type2" diff --git a/test/dds/xtypes/Case6.json b/test/dds/xtypes/Case6.json index 55dd90bbcfc..83ddf48094d 100644 --- a/test/dds/xtypes/Case6.json +++ b/test/dds/xtypes/Case6.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "TypeDep" @@ -15,7 +15,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case7.json b/test/dds/xtypes/Case7.json index d6b8feb2056..25132fde6cf 100644 --- a/test/dds/xtypes/Case7.json +++ b/test/dds/xtypes/Case7.json @@ -5,7 +5,7 @@ "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1", "TypeBig" @@ -15,7 +15,7 @@ "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/Case8.json index 4dcf4815e12..ad9b27c23a6 100644 --- a/test/dds/xtypes/Case8.json +++ b/test/dds/xtypes/Case8.json @@ -4,8 +4,8 @@ { "kind": "subscriber", "samples": "3", - "timeout": "100", - "expected_types": "100", + "timeout": "10", + "expected_matches": "100", "known_types": [ "Type1" ] @@ -13,8 +13,8 @@ { "kind": "publisher", "samples": "3", - "timeout": "100", - "expected_types": "100", + "timeout": "10", + "expected_matches": "100", "known_types": [ "Type1", "Type2", diff --git a/test/dds/xtypes/Case9.json b/test/dds/xtypes/Case9.json index bd204db62d9..5e77c6df81b 100644 --- a/test/dds/xtypes/Case9.json +++ b/test/dds/xtypes/Case9.json @@ -2,31 +2,31 @@ "description": "Case 9: Subscriber knows Type1 and Type2, Publisher1 knows Type1, Publisher2 knows Type1.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ - "Type1", - "Type2" + "Type1" ] }, { "kind": "publisher", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "2", "known_types": [ "Type1" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", "timeout": "10", - "expected_types": "2", + "expected_matches": "4", "known_types": [ - "Type1" + "Type1", + "Type2" ] } ] diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupPublisher.cpp index b8c62fcf498..4544614c59b 100644 --- a/test/dds/xtypes/TypeLookupPublisher.cpp +++ b/test/dds/xtypes/TypeLookupPublisher.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -62,6 +63,11 @@ TypeLookupPublisher::~TypeLookupPublisher() { DomainParticipantFactory::get_instance()->delete_participant(participant_); } + + for (auto& thread : create_known_types_threads) + { + thread.join(); + } } void TypeLookupPublisher::create_type_creator_functions() @@ -190,20 +196,18 @@ bool TypeLookupPublisher::init( for (const auto& type : known_types) { - create_known_type(type); + if (!create_known_type(type)) + { + return false; + } } + return true; } bool TypeLookupPublisher::create_known_type( const std::string& type) { - // Check if the type is already created - if (nullptr != participant_->find_type(type)) - { - return true; - } - // Find the type creator in the map auto it = type_creator_functions_.find(type); if (it != type_creator_functions_.end()) @@ -240,7 +244,8 @@ bool TypeLookupPublisher::create_known_type_impl( // CREATE THE TOPIC std::ostringstream topic_name; topic_name << type << "_" << asio::ip::host_name() << "_" << PUB_DOMAIN_ID_; - a_type.topic_ = participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); + a_type.topic_ = + participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); if (a_type.topic_ == nullptr) { std::cout << "ERROR TypeLookupSubscriber: create_topic: " << type << std::endl; @@ -252,6 +257,7 @@ bool TypeLookupPublisher::create_known_type_impl( wqos.liveliness().lease_duration = 3; wqos.liveliness().announcement_period = 1; wqos.liveliness().kind = AUTOMATIC_LIVELINESS_QOS; + wqos.data_sharing().off(); a_type.writer_ = a_type.publisher_->create_datawriter(a_type.topic_, wqos, this); if (a_type.writer_ == nullptr) @@ -267,7 +273,11 @@ bool TypeLookupPublisher::create_known_type_impl( typed_data->index(current_sample); }; - known_types_.emplace(type, a_type); + { + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(type, a_type); + } + return true; } @@ -280,18 +290,23 @@ bool TypeLookupPublisher::check_registered_type( } bool TypeLookupPublisher::wait_discovery( - uint32_t expected_match, + uint32_t expected_matches, uint32_t timeout) { - std::unique_lock lock(matched_mutex_); + expected_matches_ = expected_matches; + std::unique_lock lock(mutex_); bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() { - std::cout << "TypeLookupPublisher::wait_discovery(" << - matched_ << "/" << expected_match << ")" << std::endl; - return matched_ == expected_match; + return matched_ == expected_matches_; }); - return result; + if (!result) + { + std::cout << "TypeLookupPublisher discovery Timeout with matched = " + << matched_ << std::endl; + return false; + } + return true; } bool TypeLookupPublisher::run( @@ -299,9 +314,10 @@ bool TypeLookupPublisher::run( uint32_t timeout) { std::unique_lock lock(mutex_); - return cv_.wait_for( + bool result = cv_.wait_for( lock, std::chrono::seconds(timeout), [&] { + std::this_thread::sleep_for(std::chrono::seconds(1)); uint32_t current_sample = 0; void* sample = nullptr; @@ -326,13 +342,29 @@ bool TypeLookupPublisher::run( } return true; }); + + if (!result) + { + std::cout << "TypeLookupPublisher run Timeout" << std::endl; + + for (auto& sent_sample : sent_samples_) + { + if (samples != sent_sample.second) + { + std::cout << sent_sample.first << "Wrote: " + << sent_sample.second << " samples" << std::endl; + } + } + return false; + } + return true; } void TypeLookupPublisher::on_publication_matched( DataWriter* /*writer*/, const PublicationMatchedStatus& info) { - std::unique_lock lock(matched_mutex_); + std::unique_lock lock(mutex_); if (info.current_count_change == 1) { ++matched_; @@ -354,14 +386,18 @@ void TypeLookupPublisher::on_data_reader_discovery( bool& should_be_ignored) { should_be_ignored = false; - xtypes::TypeInformationParameter type_info = info.info.type_information(); - if (check_registered_type(type_info)) - { - create_known_type(info.info.typeName().to_string()); - } - else + // Check if the type is already created + if (nullptr == participant_->find_type(info.info.typeName().to_string())) { - throw TypeLookupPublisherTypeNotRegisteredException(info.info.typeName().to_string()); + if (check_registered_type(info.info.type_information())) + { + create_known_types_threads.emplace_back(&TypeLookupPublisher::create_known_type, this, + info.info.typeName().to_string()); + } + else + { + throw TypeLookupPublisherTypeNotRegisteredException(info.info.typeName().to_string()); + } } } diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupPublisher.h index 0a202e0edf5..6a298a0b7d6 100644 --- a/test/dds/xtypes/TypeLookupPublisher.h +++ b/test/dds/xtypes/TypeLookupPublisher.h @@ -31,6 +31,7 @@ #include #include #include +#include namespace eprosima { namespace fastdds { @@ -94,7 +95,7 @@ class TypeLookupPublisher const xtypes::TypeInformationParameter& type_info); bool wait_discovery( - uint32_t expected_match, + uint32_t expected_matches, uint32_t timeout); bool run( @@ -112,17 +113,19 @@ class TypeLookupPublisher private: + DomainParticipant* participant_ = nullptr; + std::mutex mutex_; std::condition_variable cv_; - std::mutex matched_mutex_; unsigned int matched_ = 0; + unsigned int expected_matches_ = 0; std::map sent_samples_; - DomainParticipant* participant_ = nullptr; - - std::map> type_creator_functions_; + std::mutex known_types_mutex_; std::map known_types_; + std::map> type_creator_functions_; + std::vector create_known_types_threads; }; } // dds diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupSubscriber.cpp index 2b3a4dffeba..c442b6d6cb7 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupSubscriber.cpp @@ -59,6 +59,11 @@ TypeLookupSubscriber::~TypeLookupSubscriber() { DomainParticipantFactory::get_instance()->delete_participant(participant_); } + + for (auto& thread : create_known_types_threads) + { + thread.join(); + } } void TypeLookupSubscriber::create_type_creator_functions() @@ -191,7 +196,10 @@ bool TypeLookupSubscriber::init( for (const auto& type : known_types) { - create_known_type(type); + if (!create_known_type(type)) + { + return false; + } } return true; @@ -203,10 +211,11 @@ bool TypeLookupSubscriber::create_known_type( // Check if the type is already created if (nullptr != participant_->find_type(type)) { - return true; + return false; } // Find the type creator in the map + //std::map> type_creator_functions_; auto it = type_creator_functions_.find(type); if (it != type_creator_functions_.end()) { @@ -241,7 +250,8 @@ bool TypeLookupSubscriber::create_known_type_impl( //CREATE THE TOPIC std::ostringstream topic_name; topic_name << type << "_" << asio::ip::host_name() << "_" << SUB_DOMAIN_ID_; - a_type.topic_ = participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); + a_type.topic_ = + participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); if (a_type.topic_ == nullptr) { std::cout << "ERROR TypeLookupSubscriber: create_topic" << std::endl; @@ -250,6 +260,8 @@ bool TypeLookupSubscriber::create_known_type_impl( //CREATE THE DATAREADER DataReaderQos rqos = a_type.subscriber_->get_default_datareader_qos(); + rqos.data_sharing().off(); + a_type.reader_ = a_type.subscriber_->create_datareader(a_type.topic_, rqos); if (a_type.reader_ == nullptr) { @@ -264,7 +276,10 @@ bool TypeLookupSubscriber::create_known_type_impl( std::cout << "index(" << sample->index() << ")" << std::endl; }; - known_types_.emplace(type, a_type); + { + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(type, a_type); + } return true; } @@ -278,19 +293,23 @@ bool TypeLookupSubscriber::check_registered_type( } bool TypeLookupSubscriber::wait_discovery( - uint32_t expected_match, + uint32_t expected_matches, uint32_t timeout) { - std::unique_lock lock(matched_mutex_); + expected_matches_ = expected_matches; + std::unique_lock lock(mutex_); bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() { - std::cout << "TypeLookupSubscriber::wait_discovery(" << - matched_ << "/" << expected_match << ")" << std::endl; - return matched_ == expected_match; + return matched_ == expected_matches_; }); - - return result; + if (!result) + { + std::cout << "TypeLookupSubscriber discovery Timeout with matched = " + << matched_ << std::endl; + return false; + } + return true; } bool TypeLookupSubscriber::run( @@ -298,31 +317,53 @@ bool TypeLookupSubscriber::run( uint32_t timeout) { std::unique_lock lock(mutex_); - return cv_.wait_for( + bool result = cv_.wait_for( lock, std::chrono::seconds(timeout), [&] { - if (known_types_.size() != received_samples_.size()) + if (expected_matches_ != received_samples_.size()) { return false; } - std::lock_guard lock(received_samples_mutex_); for (auto& received_sample : received_samples_) { if (samples != received_sample.second) + { return false; } } return true; }); + + if (!result) + { + std::cout << "TypeLookupSubscriber run Timeout" << std::endl; + + if (expected_matches_ != received_samples_.size()) + { + std::cout << "expected_matches_ = " << expected_matches_ << + " matched_ = " << received_samples_.size() << std::endl; + } + for (auto& received_sample : received_samples_) + { + if (samples != received_sample.second) + { + std::cout << "From: " << received_sample.first << + " samples: " << received_sample.second << "/" << samples << std::endl; + } + } + + return false; + } + return true; } void TypeLookupSubscriber::on_subscription_matched( DataReader* /*reader*/, const SubscriptionMatchedStatus& info) { - std::unique_lock lock(matched_mutex_); + std::unique_lock lock(mutex_); if (info.current_count_change == 1) { ++matched_; @@ -365,14 +406,18 @@ void TypeLookupSubscriber::on_data_writer_discovery( bool& should_be_ignored) { should_be_ignored = false; - xtypes::TypeInformationParameter type_info = info.info.type_information(); - if (check_registered_type(type_info)) - { - create_known_type(info.info.typeName().to_string()); - } - else + // Check if the type is already created + if (nullptr == participant_->find_type(info.info.typeName().to_string())) { - throw TypeLookupSubscriberTypeNotRegisteredException(info.info.typeName().to_string()); + if (check_registered_type(info.info.type_information())) + { + create_known_types_threads.emplace_back(&TypeLookupSubscriber::create_known_type, this, + info.info.typeName().to_string()); + } + else + { + throw TypeLookupSubscriberTypeNotRegisteredException(info.info.typeName().to_string()); + } } } diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupSubscriber.h index 2ef967e9b9f..95eb46bc68e 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.h +++ b/test/dds/xtypes/TypeLookupSubscriber.h @@ -33,6 +33,7 @@ #include #include #include +#include namespace eprosima { namespace fastdds { @@ -95,7 +96,7 @@ class TypeLookupSubscriber const xtypes::TypeInformationParameter& type_info); bool wait_discovery( - uint32_t expected_match, + uint32_t expected_matches, uint32_t timeout); bool run( @@ -116,19 +117,20 @@ class TypeLookupSubscriber private: + DomainParticipant* participant_ = nullptr; + std::mutex mutex_; std::condition_variable cv_; - - std::mutex matched_mutex_; unsigned int matched_ = 0; + unsigned int expected_matches_ = 0; - std::mutex received_samples_mutex_; std::map received_samples_; - DomainParticipant* participant_ = nullptr; - - std::map> type_creator_functions_; + std::mutex known_types_mutex_; std::map known_types_; + std::map> type_creator_functions_; + std::vector create_known_types_threads; + }; } // dds diff --git a/test/dds/xtypes/TypeLookup_main.cpp b/test/dds/xtypes/TypeLookup_main.cpp index c9bcc299a01..f377a080337 100644 --- a/test/dds/xtypes/TypeLookup_main.cpp +++ b/test/dds/xtypes/TypeLookup_main.cpp @@ -32,7 +32,7 @@ struct CommandLineArgs int kind; int samples; int timeout; - int expected_types; + int expected_matches; std::vector known_types; }; @@ -70,9 +70,9 @@ CommandLineArgs parse_args( { args.timeout = std::stoi(value); } - else if (key == "expected_types") + else if (key == "expected_matches") { - args.expected_types = std::stoi(value); + args.expected_matches = std::stoi(value); } else if (key == "known_types") { @@ -103,13 +103,13 @@ int main( CommandLineArgs args = parse_args(argc, argv); if (args.kind == 0 || args.samples == 0 || args.timeout == 0 || - args.expected_types == 0 || args.known_types.empty()) + args.expected_matches == 0 || args.known_types.empty()) { std::cout << "Invalid command-line arguments. Usage: " << "./DDSXtypesCommunication " << "kind= " << "samples= " << - "expected_types= " << + "expected_matches= " << "timeout= " << "known_types=" << std::endl; return -1; @@ -121,13 +121,13 @@ int main( case 1: { eprosima::fastdds::dds::TypeLookupPublisher pub; return (pub.init(args.known_types) && - pub.wait_discovery(args.expected_types, args.timeout) && + pub.wait_discovery(args.expected_matches, args.timeout) && pub.run(args.samples, args.timeout)) ? 0 : -1; } case 2: { eprosima::fastdds::dds::TypeLookupSubscriber sub; return (sub.init(args.known_types) && - sub.wait_discovery(args.expected_types, args.timeout) && + sub.wait_discovery(args.expected_matches, args.timeout) && sub.run(args.samples, args.timeout)) ? 0 : -1; } default: diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 3a8468ea74d..26c5b709a18 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -28,7 +28,7 @@ def define_args(participant): args.extend([f"kind={participant.get('kind')}"]) args.extend([f"samples={participant.get('samples', 10)}"]) args.extend([f"timeout={participant.get('timeout', 10)}"]) - args.extend([f"expected_types={participant.get('expected_types', 1)}"]) + args.extend([f"expected_matches={participant.get('expected_matches', 1)}"]) if 'known_types' in participant and isinstance(participant['known_types'], list): args.append(f'known_types={",".join(participant["known_types"])}') From 75d961149111262da5daf1d1d8beb05aad21240b Mon Sep 17 00:00:00 2001 From: adriancampo Date: Tue, 23 Jan 2024 08:28:59 +0100 Subject: [PATCH 08/45] Refs #20165: Fixes for json files. Signed-off-by: adriancampo --- test/dds/xtypes/CMakeLists.txt | 7 ------- test/dds/xtypes/Case10.json | 2 +- test/dds/xtypes/Case11.json | 24 ------------------------ test/dds/xtypes/Case12.json | 24 ------------------------ test/dds/xtypes/Case13.json | 24 ------------------------ test/dds/xtypes/Case14.json | 24 ------------------------ test/dds/xtypes/Case2.json | 4 ++-- test/dds/xtypes/Case8.json | 2 +- test/dds/xtypes/Case9.json | 2 +- 9 files changed, 5 insertions(+), 108 deletions(-) delete mode 100644 test/dds/xtypes/Case11.json delete mode 100644 test/dds/xtypes/Case12.json delete mode 100644 test/dds/xtypes/Case13.json delete mode 100644 test/dds/xtypes/Case14.json diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index 57b3aef1a29..fd66675c9d3 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -77,10 +77,6 @@ list(APPEND TEST_DEFINITIONS Case8 Case9 Case10 - Case11 - Case12 - Case13 - Case14 ) # Python file @@ -108,9 +104,6 @@ if(PYTHONINTERP_FOUND) ${TEST_DEFINITION}.json ) - # set_property(TEST ${TEST_NAME} PROPERTY ENVIRONMENT - # "DDS_XTYPES_COMMUNICATION_BIN=$") - if(WIN32) string(REPLACE ";" "\\;" WIN_PATH "$ENV{PATH}") set_property(TEST ${TEST_NAME} APPEND PROPERTY ENVIRONMENT diff --git a/test/dds/xtypes/Case10.json b/test/dds/xtypes/Case10.json index 8dcb5768646..a4ce4a0af23 100644 --- a/test/dds/xtypes/Case10.json +++ b/test/dds/xtypes/Case10.json @@ -1,5 +1,5 @@ { - "description": "Case 10: Subscriber knows Type1 and Type2, Publisher1 knows Type1 and Type2, Publisher2 knows Type1.", + "description": "Case 10: Subscriber knows Type1 and Type2, Publisher1 knows Type1, Publisher2 knows Type1 and Type2.", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case11.json b/test/dds/xtypes/Case11.json deleted file mode 100644 index 470d02e30c7..00000000000 --- a/test/dds/xtypes/Case11.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "Case 11: Test to communicate a publisher and a subscriber, with a malformed request.", - "participants": [ - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "2", - "known_types": [ - "Type1", - "Type2" - ] - }, - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "2", - "known_types": [ - "Type1" - ] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/Case12.json b/test/dds/xtypes/Case12.json deleted file mode 100644 index 96cb850e94f..00000000000 --- a/test/dds/xtypes/Case12.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "Case 12: Test to communicate a publisher and a subscriber, where the is no response.", - "participants": [ - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "2", - "known_types": [ - "Type1", - "Type2" - ] - }, - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "2", - "known_types": [ - "Type1" - ] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/Case13.json b/test/dds/xtypes/Case13.json deleted file mode 100644 index 4f701318bb1..00000000000 --- a/test/dds/xtypes/Case13.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "Case 13: Test to communicate a publisher and a subscriber, where no TypeInformation is sent.", - "participants": [ - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "2", - "known_types": [ - "Type1", - "Type2" - ] - }, - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "2", - "known_types": [ - "Type1" - ] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/Case14.json b/test/dds/xtypes/Case14.json deleted file mode 100644 index 3e4b6d19d5b..00000000000 --- a/test/dds/xtypes/Case14.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "Case 14: Test to communicate a publisher and a subscriber, with TypeObject.", - "participants": [ - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "2", - "known_types": [ - "Type1", - "Type2" - ] - }, - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "2", - "known_types": [ - "Type1" - ] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/Case2.json b/test/dds/xtypes/Case2.json index c4bdc090502..02360501751 100644 --- a/test/dds/xtypes/Case2.json +++ b/test/dds/xtypes/Case2.json @@ -2,7 +2,7 @@ "description": "Case 2: Subscriber knows Type1 and Type2, Publisher knows Type1.", "participants": [ { - "kind": "publisher", + "kind": "subscriber", "samples": "10", "timeout": "10", "expected_matches": "2", @@ -12,7 +12,7 @@ ] }, { - "kind": "subscriber", + "kind": "publisher", "samples": "10", "timeout": "10", "expected_matches": "2", diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/Case8.json index ad9b27c23a6..28d7fb8a4b3 100644 --- a/test/dds/xtypes/Case8.json +++ b/test/dds/xtypes/Case8.json @@ -1,5 +1,5 @@ { - "description": "Case 8: Subscriber from Type1 to Type39, Publisher knows Type1 ", + "description": "Case 8: Subscriber from Type1, Publisher knows Type1...Type100 ", "participants": [ { "kind": "subscriber", diff --git a/test/dds/xtypes/Case9.json b/test/dds/xtypes/Case9.json index 5e77c6df81b..b5721397faa 100644 --- a/test/dds/xtypes/Case9.json +++ b/test/dds/xtypes/Case9.json @@ -1,5 +1,5 @@ { - "description": "Case 9: Subscriber knows Type1 and Type2, Publisher1 knows Type1, Publisher2 knows Type1.", + "description": "Case 9: Subscriber knows Type1 and Type2, Publisher1 and Publisher2 knows Type1.", "participants": [ { "kind": "publisher", From b7afbf703af7cb3d6313f4205085ee3faabf3bc1 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Tue, 23 Jan 2024 09:43:41 +0100 Subject: [PATCH 09/45] Refs #20165: Removed code for debug. Signed-off-by: adriancampo --- src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp b/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp index 2cfaec54e3f..736a0ab7e8c 100644 --- a/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp +++ b/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp @@ -1088,11 +1088,8 @@ inline bool QosPoliciesSerializer::read_conten deser >> qos_policy.type_information; qos_policy.assigned(true); } - //catch (eprosima::fastcdr::exception::Exception& /*exception*/) - catch (eprosima::fastcdr::exception::Exception& exception) + catch (eprosima::fastcdr::exception::Exception& /*exception*/) { - //TODO(adelcampo) - std::cout << "read_content_from_cdr_message not assigned: " << exception.what() << std::endl; qos_policy.assigned(false); } From 283ad16c8ac21534788299696d7b164d16db6de7 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Sun, 28 Jan 2024 20:03:24 +0100 Subject: [PATCH 10/45] Refs #20165: Created unittest Signed-off-by: adriancampo --- .../TypeLookupReplyListener.cpp | 1 - test/dds/xtypes/TypeLookupPublisher.cpp | 29 +- test/dds/xtypes/TypeLookupPublisher.h | 7 +- test/dds/xtypes/TypeLookupSubscriber.cpp | 29 +- test/dds/xtypes/TypeLookupSubscriber.h | 7 +- test/dds/xtypes/TypeLookupTestsTypes.h | 12 +- test/dds/xtypes/TypeLookup_main.cpp | 2 - test/dds/xtypes/idl/XtypesTestsType1.hpp | 4 +- .../dds/xtypes/idl/XtypesTestsType1CdrAux.hpp | 6 +- .../dds/xtypes/idl/XtypesTestsType1CdrAux.ipp | 9 +- .../idl/XtypesTestsType1PubSubTypes.cxx | 160 +- ...ypes.h => XtypesTestsType1PubSubTypes.hpp} | 70 +- .../idl/XtypesTestsType1TypeObjectSupport.cxx | 87 +- .../idl/XtypesTestsType1TypeObjectSupport.hpp | 20 +- test/dds/xtypes/idl/XtypesTestsType2.hpp | 4 +- .../dds/xtypes/idl/XtypesTestsType2CdrAux.hpp | 6 +- .../dds/xtypes/idl/XtypesTestsType2CdrAux.ipp | 9 +- .../idl/XtypesTestsType2PubSubTypes.cxx | 160 +- ...ypes.h => XtypesTestsType2PubSubTypes.hpp} | 70 +- .../idl/XtypesTestsType2TypeObjectSupport.cxx | 87 +- .../idl/XtypesTestsType2TypeObjectSupport.hpp | 20 +- test/dds/xtypes/idl/XtypesTestsType3.hpp | 4 +- .../dds/xtypes/idl/XtypesTestsType3CdrAux.hpp | 6 +- .../dds/xtypes/idl/XtypesTestsType3CdrAux.ipp | 9 +- .../idl/XtypesTestsType3PubSubTypes.cxx | 160 +- ...ypes.h => XtypesTestsType3PubSubTypes.hpp} | 70 +- .../idl/XtypesTestsType3TypeObjectSupport.cxx | 87 +- .../idl/XtypesTestsType3TypeObjectSupport.hpp | 20 +- test/dds/xtypes/idl/XtypesTestsTypeBig.hpp | 4 +- .../xtypes/idl/XtypesTestsTypeBigCdrAux.hpp | 6 +- .../xtypes/idl/XtypesTestsTypeBigCdrAux.ipp | 900 +- .../idl/XtypesTestsTypeBigPubSubTypes.cxx | 15532 +++++----- ...es.h => XtypesTestsTypeBigPubSubTypes.hpp} | 5120 ++-- .../XtypesTestsTypeBigTypeObjectSupport.cxx | 23350 +++------------- .../XtypesTestsTypeBigTypeObjectSupport.hpp | 699 +- test/dds/xtypes/idl/XtypesTestsTypeDep.hpp | 4 +- .../xtypes/idl/XtypesTestsTypeDepCdrAux.hpp | 6 +- .../xtypes/idl/XtypesTestsTypeDepCdrAux.ipp | 27 +- .../idl/XtypesTestsTypeDepPubSubTypes.cxx | 160 +- ...es.h => XtypesTestsTypeDepPubSubTypes.hpp} | 76 +- .../XtypesTestsTypeDepTypeObjectSupport.cxx | 666 +- .../XtypesTestsTypeDepTypeObjectSupport.hpp | 20 +- .../EDP/rtps/builtin/discovery/endpoint/EDP.h | 24 + .../discovery/endpoint/EDPSimpleListeners.h | 465 + .../rtps/builtin/discovery/participant/PDP.h | 21 + .../rtps/participant/RTPSParticipantImpl.h | 13 + .../fastdds/rtps/history/ReaderHistory.hpp | 5 + .../rtps/reader/StatefulReader.hpp | 5 +- .../type_lookup_service/TypeLookupManager.hpp | 152 +- .../TypeObjectRegistry.hpp | 122 + .../dds/xtypes/typelookup/CMakeLists.txt | 237 + .../dds/xtypes/typelookup/TypeLookupTests.cpp | 847 + 52 files changed, 16773 insertions(+), 32843 deletions(-) rename test/dds/xtypes/idl/{XtypesTestsType1PubSubTypes.h => XtypesTestsType1PubSubTypes.hpp} (61%) rename test/dds/xtypes/idl/{XtypesTestsType2PubSubTypes.h => XtypesTestsType2PubSubTypes.hpp} (61%) rename test/dds/xtypes/idl/{XtypesTestsType3PubSubTypes.h => XtypesTestsType3PubSubTypes.hpp} (61%) rename test/dds/xtypes/idl/{XtypesTestsTypeBigPubSubTypes.h => XtypesTestsTypeBigPubSubTypes.hpp} (56%) rename test/dds/xtypes/idl/{XtypesTestsTypeDepPubSubTypes.h => XtypesTestsTypeDepPubSubTypes.hpp} (59%) create mode 100644 test/mock/rtps/EDPSimpleListeners/rtps/builtin/discovery/endpoint/EDPSimpleListeners.h create mode 100644 test/mock/rtps/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp create mode 100644 test/unittest/dds/xtypes/typelookup/CMakeLists.txt create mode 100644 test/unittest/dds/xtypes/typelookup/TypeLookupTests.cpp diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp index 8dd09b551f8..fb87fe7e84e 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp @@ -18,7 +18,6 @@ */ #include - #include #include diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupPublisher.cpp index 4544614c59b..80c205693b0 100644 --- a/test/dds/xtypes/TypeLookupPublisher.cpp +++ b/test/dds/xtypes/TypeLookupPublisher.cpp @@ -34,10 +34,11 @@ #include #include #include +#include using namespace eprosima::fastdds::dds; -using namespace eprosima::fastrtps::rtps; +using namespace eprosima::fastdds::rtps; static int PUB_DOMAIN_ID_ = 10; @@ -381,23 +382,27 @@ void TypeLookupPublisher::on_publication_matched( } void TypeLookupPublisher::on_data_reader_discovery( - eprosima::fastdds::dds::DomainParticipant* /*participant*/, - eprosima::fastrtps::rtps::ReaderDiscoveryInfo&& info, + DomainParticipant* /*participant*/, + ReaderDiscoveryStatus reason, + const SubscriptionBuiltinTopicData& info, bool& should_be_ignored) { should_be_ignored = false; - // Check if the type is already created - if (nullptr == participant_->find_type(info.info.typeName().to_string())) + if (eprosima::fastdds::rtps::ReaderDiscoveryStatus::DISCOVERED_READER == reason) { - if (check_registered_type(info.info.type_information())) + // Check if the type is already created + if (nullptr == participant_->find_type(info.type_name.to_string())) { - create_known_types_threads.emplace_back(&TypeLookupPublisher::create_known_type, this, - info.info.typeName().to_string()); - } - else - { - throw TypeLookupPublisherTypeNotRegisteredException(info.info.typeName().to_string()); + if (check_registered_type(info.type_information)) + { + create_known_types_threads.emplace_back(&TypeLookupPublisher::create_known_type, this, + info.type_name.to_string()); + } + else + { + throw TypeLookupPublisherTypeNotRegisteredException(info.type_name.to_string()); + } } } } diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupPublisher.h index 6a298a0b7d6..176c9e1625d 100644 --- a/test/dds/xtypes/TypeLookupPublisher.h +++ b/test/dds/xtypes/TypeLookupPublisher.h @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include "TypeLookupTestsTypes.h" @@ -108,7 +108,8 @@ class TypeLookupPublisher void on_data_reader_discovery( eprosima::fastdds::dds::DomainParticipant* /*participant*/, - eprosima::fastrtps::rtps::ReaderDiscoveryInfo&& info, + eprosima::fastdds::rtps::ReaderDiscoveryStatus reason, + const eprosima::fastdds::dds::SubscriptionBuiltinTopicData& info, bool& should_be_ignored) override; private: @@ -120,7 +121,7 @@ class TypeLookupPublisher unsigned int matched_ = 0; unsigned int expected_matches_ = 0; - std::map sent_samples_; + std::map sent_samples_; std::mutex known_types_mutex_; std::map known_types_; diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupSubscriber.cpp index c442b6d6cb7..62a5e6eed7f 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupSubscriber.cpp @@ -31,9 +31,10 @@ #include #include #include +#include using namespace eprosima::fastdds::dds; -using namespace eprosima::fastrtps::rtps; +using namespace eprosima::fastdds::rtps; static int SUB_DOMAIN_ID_ = 10; @@ -401,23 +402,27 @@ void TypeLookupSubscriber::on_data_available( } void TypeLookupSubscriber::on_data_writer_discovery( - eprosima::fastdds::dds::DomainParticipant* /*participant*/, - eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info, + DomainParticipant* /*participant*/, + WriterDiscoveryStatus reason, + const PublicationBuiltinTopicData& info, bool& should_be_ignored) { should_be_ignored = false; - // Check if the type is already created - if (nullptr == participant_->find_type(info.info.typeName().to_string())) + if (eprosima::fastdds::rtps::WriterDiscoveryStatus::DISCOVERED_WRITER == reason) { - if (check_registered_type(info.info.type_information())) - { - create_known_types_threads.emplace_back(&TypeLookupSubscriber::create_known_type, this, - info.info.typeName().to_string()); - } - else + // Check if the type is already created + if (nullptr == participant_->find_type(info.type_name.to_string())) { - throw TypeLookupSubscriberTypeNotRegisteredException(info.info.typeName().to_string()); + if (check_registered_type(info.type_information)) + { + create_known_types_threads.emplace_back(&TypeLookupSubscriber::create_known_type, this, + info.type_name.to_string()); + } + else + { + throw TypeLookupSubscriberTypeNotRegisteredException(info.type_name.to_string()); + } } } } diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupSubscriber.h index 95eb46bc68e..e6b8254000a 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.h +++ b/test/dds/xtypes/TypeLookupSubscriber.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include "TypeLookupTestsTypes.h" @@ -112,7 +112,8 @@ class TypeLookupSubscriber void on_data_writer_discovery( eprosima::fastdds::dds::DomainParticipant* /*participant*/, - eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info, + eprosima::fastdds::rtps::WriterDiscoveryStatus reason, + const eprosima::fastdds::dds::PublicationBuiltinTopicData& info, bool& should_be_ignored) override; private: @@ -124,7 +125,7 @@ class TypeLookupSubscriber unsigned int matched_ = 0; unsigned int expected_matches_ = 0; - std::map received_samples_; + std::map received_samples_; std::mutex known_types_mutex_; std::map known_types_; diff --git a/test/dds/xtypes/TypeLookupTestsTypes.h b/test/dds/xtypes/TypeLookupTestsTypes.h index e36f7a850a9..14b097a5179 100644 --- a/test/dds/xtypes/TypeLookupTestsTypes.h +++ b/test/dds/xtypes/TypeLookupTestsTypes.h @@ -20,10 +20,10 @@ #ifndef _TYPELOOKUPTEST_TYPES_H_ #define _TYPELOOKUPTEST_TYPES_H_ -#include "idl/XtypesTestsType1PubSubTypes.h" -#include "idl/XtypesTestsType2PubSubTypes.h" -#include "idl/XtypesTestsType3PubSubTypes.h" -#include "idl/XtypesTestsTypeBigPubSubTypes.h" -#include "idl/XtypesTestsTypeDepPubSubTypes.h" +#include "idl/XtypesTestsType1PubSubTypes.hpp" +#include "idl/XtypesTestsType2PubSubTypes.hpp" +#include "idl/XtypesTestsType3PubSubTypes.hpp" +#include "idl/XtypesTestsTypeBigPubSubTypes.hpp" +#include "idl/XtypesTestsTypeDepPubSubTypes.hpp" -#endif /* _TYPELOOKUPTEST_TYPES_H_ */ \ No newline at end of file +#endif /* _TYPELOOKUPTEST_TYPES_H_ */ diff --git a/test/dds/xtypes/TypeLookup_main.cpp b/test/dds/xtypes/TypeLookup_main.cpp index f377a080337..a8d0834a0b6 100644 --- a/test/dds/xtypes/TypeLookup_main.cpp +++ b/test/dds/xtypes/TypeLookup_main.cpp @@ -25,8 +25,6 @@ #include #include -using namespace eprosima::fastrtps; - struct CommandLineArgs { int kind; diff --git a/test/dds/xtypes/idl/XtypesTestsType1.hpp b/test/dds/xtypes/idl/XtypesTestsType1.hpp index 771b67caf58..59b208a8ed7 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType1.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1_HPP #include #include diff --git a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp index 1eac21875ad..1c5eb5326fa 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_HPP #include "XtypesTestsType1.hpp" @@ -42,5 +42,5 @@ eProsima_user_DllExport void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp index 0d201ce5c8b..38e813972bb 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_IPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_IPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_IPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_IPP #include "XtypesTestsType1CdrAux.hpp" @@ -105,8 +105,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type1& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -114,5 +117,5 @@ void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1CDRAUX_IPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_IPP diff --git a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx index 6ccb55947e1..c7eeed3634d 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx @@ -19,7 +19,7 @@ * This file was generated by the tool fastddsgen. */ -#include "XtypesTestsType1PubSubTypes.h" +#include "XtypesTestsType1PubSubTypes.hpp" #include #include @@ -27,55 +27,48 @@ #include "XtypesTestsType1CdrAux.hpp" #include "XtypesTestsType1TypeObjectSupport.hpp" -using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; -using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; Type1PubSubType::Type1PubSubType() { - setName("Type1"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type1::getMaxCdrSerializedSize()); -#else - Type1_max_cdr_typesize; -#endif + set_name("Type1"); + uint32_t type_size = Type1_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type1_max_key_cdr_typesize > 16 ? Type1_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type1_max_key_cdr_typesize > 16 ? Type1_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type1PubSubType::~Type1PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type1PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type1* p_type = static_cast(data); + const Type1* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -90,16 +83,12 @@ bool Type1PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type1PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -108,18 +97,14 @@ bool Type1PubSubType::deserialize( Type1* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -132,96 +117,99 @@ bool Type1PubSubType::deserialize( return true; } -std::function Type1PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type1PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } } -void* Type1PubSubType::createData() +void* Type1PubSubType::create_data() { return reinterpret_cast(new Type1()); } -void Type1PubSubType::deleteData( +void Type1PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type1PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type1PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type1 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type1PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type1* p_type = static_cast(data); + const Type1* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type1_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type1_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type1PubSubType::register_type_object_representation() const +void Type1PubSubType::register_type_object_representation() { - register_XtypesTestsType1_type_objects(); + register_Type1_type_identifier(type_identifiers_); } diff --git a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp similarity index 61% rename from test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.h rename to test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp index 4435346b705..d31937de686 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.h +++ b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp @@ -13,29 +13,29 @@ // limitations under the License. /*! - * @file XtypesTestsType1PubSubTypes.h + * @file XtypesTestsType1PubSubTypes.hpp * This header file contains the declaration of the serialization functions. * * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_PUBSUBTYPES_H_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_PUBSUBTYPES_H_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1_PUBSUBTYPES_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1_PUBSUBTYPES_HPP #include #include -#include -#include -#include +#include +#include +#include #include "XtypesTestsType1.hpp" -#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#if !defined(FASTDDS_GEN_API_VER) || (FASTDDS_GEN_API_VER != 3) #error \ Generated XtypesTestsType1 is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. -#endif // GEN_API_VER +#endif // FASTDDS_GEN_API_VER /*! @@ -53,43 +53,35 @@ class Type1PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type1PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -100,13 +92,9 @@ class Type1PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -124,10 +112,12 @@ class Type1PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_PUBSUBTYPES_H_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE1_PUBSUBTYPES_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx index d4cefd7e1f3..8f119f5f70d 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx @@ -38,23 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_XtypesTestsType1_type_objects() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type1_type_identifier( + TypeIdentifierPair& type_ids_Type1) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - register_Type1_type_identifier(); - - }); -} -void register_Type1_type_identifier() -{ + ReturnCode_t return_code_Type1 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_Type1); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type1) { - StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type1; - TypeIdentifierPair type_ids_Type1; QualifiedTypeName type_name_Type1 = "Type1"; eprosima::fastcdr::optional type_ann_builtin_Type1; eprosima::fastcdr::optional ann_custom_Type1; @@ -63,60 +59,26 @@ void register_Type1_type_identifier() header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); CompleteStructMemberSeq member_seq_Type1; { - return_code_Type1 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type1); + "_uint16_t", type_ids_index); - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -128,20 +90,11 @@ void register_Type1_type_identifier() } CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string(), type_ids_Type1)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type1 already registered in TypeObjectRegistry for a different type."); } - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type1", type_ids_Type1); - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } diff --git a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp index 194f6847d9c..c74be920545 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp @@ -19,8 +19,10 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP + +#include #if defined(_WIN32) @@ -33,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_XtypesTestsType1_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -45,10 +42,15 @@ eProsima_user_DllExport void register_XtypesTestsType1_type_objects(); * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type1_type_identifier(); +eProsima_user_DllExport void register_Type1_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsType2.hpp b/test/dds/xtypes/idl/XtypesTestsType2.hpp index 7f2f68037a9..32227eb5c70 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType2.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE2_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE2_HPP #include #include diff --git a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp index 555958aa1dc..85ceced92eb 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE2CDRAUX_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE2CDRAUX_HPP #include "XtypesTestsType2.hpp" @@ -42,5 +42,5 @@ eProsima_user_DllExport void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE2CDRAUX_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp index 8a626871774..47de377e77f 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_IPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_IPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE2CDRAUX_IPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE2CDRAUX_IPP #include "XtypesTestsType2CdrAux.hpp" @@ -105,8 +105,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type2& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -114,5 +117,5 @@ void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2CDRAUX_IPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE2CDRAUX_IPP diff --git a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx index 1e6cfdda388..38ee039fee1 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx @@ -19,7 +19,7 @@ * This file was generated by the tool fastddsgen. */ -#include "XtypesTestsType2PubSubTypes.h" +#include "XtypesTestsType2PubSubTypes.hpp" #include #include @@ -27,55 +27,48 @@ #include "XtypesTestsType2CdrAux.hpp" #include "XtypesTestsType2TypeObjectSupport.hpp" -using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; -using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; Type2PubSubType::Type2PubSubType() { - setName("Type2"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type2::getMaxCdrSerializedSize()); -#else - Type2_max_cdr_typesize; -#endif + set_name("Type2"); + uint32_t type_size = Type2_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type2_max_key_cdr_typesize > 16 ? Type2_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type2_max_key_cdr_typesize > 16 ? Type2_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type2PubSubType::~Type2PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type2PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type2* p_type = static_cast(data); + const Type2* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -90,16 +83,12 @@ bool Type2PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type2PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -108,18 +97,14 @@ bool Type2PubSubType::deserialize( Type2* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -132,96 +117,99 @@ bool Type2PubSubType::deserialize( return true; } -std::function Type2PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type2PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } } -void* Type2PubSubType::createData() +void* Type2PubSubType::create_data() { return reinterpret_cast(new Type2()); } -void Type2PubSubType::deleteData( +void Type2PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type2PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type2PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type2 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type2PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type2* p_type = static_cast(data); + const Type2* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type2_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type2_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type2PubSubType::register_type_object_representation() const +void Type2PubSubType::register_type_object_representation() { - register_XtypesTestsType2_type_objects(); + register_Type2_type_identifier(type_identifiers_); } diff --git a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp similarity index 61% rename from test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.h rename to test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp index 257f48bb708..1a58ef71a5f 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.h +++ b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp @@ -13,29 +13,29 @@ // limitations under the License. /*! - * @file XtypesTestsType2PubSubTypes.h + * @file XtypesTestsType2PubSubTypes.hpp * This header file contains the declaration of the serialization functions. * * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_PUBSUBTYPES_H_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_PUBSUBTYPES_H_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE2_PUBSUBTYPES_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE2_PUBSUBTYPES_HPP #include #include -#include -#include -#include +#include +#include +#include #include "XtypesTestsType2.hpp" -#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#if !defined(FASTDDS_GEN_API_VER) || (FASTDDS_GEN_API_VER != 3) #error \ Generated XtypesTestsType2 is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. -#endif // GEN_API_VER +#endif // FASTDDS_GEN_API_VER /*! @@ -53,43 +53,35 @@ class Type2PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type2PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -100,13 +92,9 @@ class Type2PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -124,10 +112,12 @@ class Type2PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_PUBSUBTYPES_H_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE2_PUBSUBTYPES_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx index 0d2fb7f0db7..51438647037 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx @@ -38,23 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_XtypesTestsType2_type_objects() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type2_type_identifier( + TypeIdentifierPair& type_ids_Type2) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - register_Type2_type_identifier(); - - }); -} -void register_Type2_type_identifier() -{ + ReturnCode_t return_code_Type2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_Type2); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type2) { - StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type2; - TypeIdentifierPair type_ids_Type2; QualifiedTypeName type_name_Type2 = "Type2"; eprosima::fastcdr::optional type_ann_builtin_Type2; eprosima::fastcdr::optional ann_custom_Type2; @@ -63,60 +59,26 @@ void register_Type2_type_identifier() header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); CompleteStructMemberSeq member_seq_Type2; { - return_code_Type2 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Type2); + "_int16_t", type_ids_index); - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -128,20 +90,11 @@ void register_Type2_type_identifier() } CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string(), type_ids_Type2)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type2 already registered in TypeObjectRegistry for a different type."); } - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type2", type_ids_Type2); - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } diff --git a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp index 8adc6d75de4..6031604482c 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp @@ -19,8 +19,10 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP + +#include #if defined(_WIN32) @@ -33,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_XtypesTestsType2_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -45,10 +42,15 @@ eProsima_user_DllExport void register_XtypesTestsType2_type_objects(); * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type2_type_identifier(); +eProsima_user_DllExport void register_Type2_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsType3.hpp b/test/dds/xtypes/idl/XtypesTestsType3.hpp index af3f58cceda..4ac870be8fd 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType3.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE3_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE3_HPP #include #include diff --git a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp index 9d2ca63d7a3..7581621406a 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE3CDRAUX_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE3CDRAUX_HPP #include "XtypesTestsType3.hpp" @@ -42,5 +42,5 @@ eProsima_user_DllExport void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE3CDRAUX_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp index 8e07853145f..09e7b8d79c6 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_IPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_IPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE3CDRAUX_IPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE3CDRAUX_IPP #include "XtypesTestsType3CdrAux.hpp" @@ -105,8 +105,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type3& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -114,5 +117,5 @@ void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3CDRAUX_IPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE3CDRAUX_IPP diff --git a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx index feed97cfe51..d4f28dbe82e 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx @@ -19,7 +19,7 @@ * This file was generated by the tool fastddsgen. */ -#include "XtypesTestsType3PubSubTypes.h" +#include "XtypesTestsType3PubSubTypes.hpp" #include #include @@ -27,55 +27,48 @@ #include "XtypesTestsType3CdrAux.hpp" #include "XtypesTestsType3TypeObjectSupport.hpp" -using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; -using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; Type3PubSubType::Type3PubSubType() { - setName("Type3"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type3::getMaxCdrSerializedSize()); -#else - Type3_max_cdr_typesize; -#endif + set_name("Type3"); + uint32_t type_size = Type3_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type3_max_key_cdr_typesize > 16 ? Type3_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type3_max_key_cdr_typesize > 16 ? Type3_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type3PubSubType::~Type3PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type3PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type3* p_type = static_cast(data); + const Type3* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -90,16 +83,12 @@ bool Type3PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type3PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -108,18 +97,14 @@ bool Type3PubSubType::deserialize( Type3* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -132,96 +117,99 @@ bool Type3PubSubType::deserialize( return true; } -std::function Type3PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type3PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } } -void* Type3PubSubType::createData() +void* Type3PubSubType::create_data() { return reinterpret_cast(new Type3()); } -void Type3PubSubType::deleteData( +void Type3PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type3PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type3PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type3 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type3PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type3* p_type = static_cast(data); + const Type3* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type3_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type3_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type3PubSubType::register_type_object_representation() const +void Type3PubSubType::register_type_object_representation() { - register_XtypesTestsType3_type_objects(); + register_Type3_type_identifier(type_identifiers_); } diff --git a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp similarity index 61% rename from test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.h rename to test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp index 3d9a8a997fb..ccc919eabbd 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.h +++ b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp @@ -13,29 +13,29 @@ // limitations under the License. /*! - * @file XtypesTestsType3PubSubTypes.h + * @file XtypesTestsType3PubSubTypes.hpp * This header file contains the declaration of the serialization functions. * * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_PUBSUBTYPES_H_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_PUBSUBTYPES_H_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE3_PUBSUBTYPES_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE3_PUBSUBTYPES_HPP #include #include -#include -#include -#include +#include +#include +#include #include "XtypesTestsType3.hpp" -#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#if !defined(FASTDDS_GEN_API_VER) || (FASTDDS_GEN_API_VER != 3) #error \ Generated XtypesTestsType3 is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. -#endif // GEN_API_VER +#endif // FASTDDS_GEN_API_VER /*! @@ -53,43 +53,35 @@ class Type3PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type3PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -100,13 +92,9 @@ class Type3PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -124,10 +112,12 @@ class Type3PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_PUBSUBTYPES_H_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE3_PUBSUBTYPES_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx index 68a5820caa8..b9c3c283393 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx @@ -38,23 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_XtypesTestsType3_type_objects() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type3_type_identifier( + TypeIdentifierPair& type_ids_Type3) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - register_Type3_type_identifier(); - - }); -} -void register_Type3_type_identifier() -{ + ReturnCode_t return_code_Type3 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_Type3); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type3) { - StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type3; - TypeIdentifierPair type_ids_Type3; QualifiedTypeName type_name_Type3 = "Type3"; eprosima::fastcdr::optional type_ann_builtin_Type3; eprosima::fastcdr::optional ann_custom_Type3; @@ -63,60 +59,26 @@ void register_Type3_type_identifier() header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); CompleteStructMemberSeq member_seq_Type3; { - return_code_Type3 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Type3); + "_int32_t", type_ids_index); - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -128,20 +90,11 @@ void register_Type3_type_identifier() } CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string(), type_ids_Type3)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type3 already registered in TypeObjectRegistry for a different type."); } - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type3", type_ids_Type3); - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } diff --git a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp index 9f871d28370..63f1ef9cb09 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp @@ -19,8 +19,10 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP + +#include #if defined(_WIN32) @@ -33,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_XtypesTestsType3_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -45,10 +42,15 @@ eProsima_user_DllExport void register_XtypesTestsType3_type_objects(); * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type3_type_identifier(); +eProsima_user_DllExport void register_Type3_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp index 4846cd94377..c869e9b9765 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_HPP #include #include diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp index 6352586588c..958ba625253 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEBIGCDRAUX_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEBIGCDRAUX_HPP #include "XtypesTestsTypeBig.hpp" @@ -724,5 +724,5 @@ eProsima_user_DllExport void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEBIGCDRAUX_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp index 36a2d9d725d..d3799365660 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_IPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_IPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEBIGCDRAUX_IPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEBIGCDRAUX_IPP #include "XtypesTestsTypeBigCdrAux.hpp" @@ -105,8 +105,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type4& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -181,8 +184,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type5& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -257,8 +263,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type6& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -333,8 +342,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type7& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -409,8 +421,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type8& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -485,8 +500,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type9& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -561,8 +579,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type10& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -637,8 +658,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type11& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -713,8 +737,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type12& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -789,8 +816,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type13& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -865,8 +895,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type14& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -941,8 +974,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type15& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1017,8 +1053,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type16& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1093,8 +1132,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type17& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1169,8 +1211,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type18& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1245,8 +1290,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type19& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1321,8 +1369,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type20& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1397,8 +1448,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type21& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1473,8 +1527,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type22& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1549,8 +1606,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type23& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1625,8 +1685,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type24& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1701,8 +1764,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type25& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1777,8 +1843,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type26& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1853,8 +1922,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type27& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -1929,8 +2001,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type28& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2005,8 +2080,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type29& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2081,8 +2159,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type30& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2157,8 +2238,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type31& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2233,8 +2317,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type32& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2309,8 +2396,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type33& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2385,8 +2475,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type34& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2461,8 +2554,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type35& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2537,8 +2633,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type36& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2613,8 +2712,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type37& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2689,8 +2791,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type38& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2765,8 +2870,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type39& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2841,8 +2949,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type40& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2917,8 +3028,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type41& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -2993,8 +3107,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type42& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3069,8 +3186,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type43& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3145,8 +3265,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type44& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3221,8 +3344,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type45& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3297,8 +3423,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type46& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3373,8 +3502,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type47& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3449,8 +3581,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type48& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3525,8 +3660,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type49& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3601,8 +3739,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type50& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3677,8 +3818,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type51& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3753,8 +3897,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type52& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3829,8 +3976,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type53& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3905,8 +4055,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type54& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -3981,8 +4134,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type55& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4057,8 +4213,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type56& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4133,8 +4292,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type57& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4209,8 +4371,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type58& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4285,8 +4450,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type59& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4361,8 +4529,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type60& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4437,8 +4608,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type61& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4513,8 +4687,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type62& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4589,8 +4766,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type63& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4665,8 +4845,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type64& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4741,8 +4924,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type65& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4817,8 +5003,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type66& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4893,8 +5082,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type67& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -4969,8 +5161,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type68& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5045,8 +5240,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type69& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5121,8 +5319,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type70& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5197,8 +5398,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type71& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5273,8 +5477,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type72& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5349,8 +5556,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type73& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5425,8 +5635,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type74& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5501,8 +5714,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type75& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5577,8 +5793,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type76& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5653,8 +5872,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type77& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5729,8 +5951,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type78& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5805,8 +6030,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type79& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5881,8 +6109,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type80& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -5957,8 +6188,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type81& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6033,8 +6267,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type82& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6109,8 +6346,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type83& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6185,8 +6425,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type84& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6261,8 +6504,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type85& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6337,8 +6583,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type86& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6413,8 +6662,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type87& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6489,8 +6741,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type88& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6565,8 +6820,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type89& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6641,8 +6899,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type90& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6717,8 +6978,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type91& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6793,8 +7057,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type92& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6869,8 +7136,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type93& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -6945,8 +7215,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type94& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -7021,8 +7294,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type95& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -7097,8 +7373,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type96& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -7173,8 +7452,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type97& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -7249,8 +7531,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type98& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -7325,8 +7610,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type99& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -7401,8 +7689,11 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Type100& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + } @@ -8277,8 +8568,611 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const TypeBig& data) { + extern void serialize_key( + Cdr& scdr, + const Type1& data); + + extern void serialize_key( + Cdr& scdr, + const Type2& data); + + extern void serialize_key( + Cdr& scdr, + const Type3& data); + + extern void serialize_key( + Cdr& scdr, + const Type4& data); + + extern void serialize_key( + Cdr& scdr, + const Type5& data); + + extern void serialize_key( + Cdr& scdr, + const Type6& data); + + extern void serialize_key( + Cdr& scdr, + const Type7& data); + + extern void serialize_key( + Cdr& scdr, + const Type8& data); + + extern void serialize_key( + Cdr& scdr, + const Type9& data); + + extern void serialize_key( + Cdr& scdr, + const Type10& data); + + extern void serialize_key( + Cdr& scdr, + const Type11& data); + + extern void serialize_key( + Cdr& scdr, + const Type12& data); + + extern void serialize_key( + Cdr& scdr, + const Type13& data); + + extern void serialize_key( + Cdr& scdr, + const Type14& data); + + extern void serialize_key( + Cdr& scdr, + const Type15& data); + + extern void serialize_key( + Cdr& scdr, + const Type16& data); + + extern void serialize_key( + Cdr& scdr, + const Type17& data); + + extern void serialize_key( + Cdr& scdr, + const Type18& data); + + extern void serialize_key( + Cdr& scdr, + const Type19& data); + + extern void serialize_key( + Cdr& scdr, + const Type20& data); + + extern void serialize_key( + Cdr& scdr, + const Type21& data); + + extern void serialize_key( + Cdr& scdr, + const Type22& data); + + extern void serialize_key( + Cdr& scdr, + const Type23& data); + + extern void serialize_key( + Cdr& scdr, + const Type24& data); + + extern void serialize_key( + Cdr& scdr, + const Type25& data); + + extern void serialize_key( + Cdr& scdr, + const Type26& data); + + extern void serialize_key( + Cdr& scdr, + const Type27& data); + + extern void serialize_key( + Cdr& scdr, + const Type28& data); + + extern void serialize_key( + Cdr& scdr, + const Type29& data); + + extern void serialize_key( + Cdr& scdr, + const Type30& data); + + extern void serialize_key( + Cdr& scdr, + const Type31& data); + + extern void serialize_key( + Cdr& scdr, + const Type32& data); + + extern void serialize_key( + Cdr& scdr, + const Type33& data); + + extern void serialize_key( + Cdr& scdr, + const Type34& data); + + extern void serialize_key( + Cdr& scdr, + const Type35& data); + + extern void serialize_key( + Cdr& scdr, + const Type36& data); + + extern void serialize_key( + Cdr& scdr, + const Type37& data); + + extern void serialize_key( + Cdr& scdr, + const Type38& data); + + extern void serialize_key( + Cdr& scdr, + const Type39& data); + + extern void serialize_key( + Cdr& scdr, + const Type40& data); + + extern void serialize_key( + Cdr& scdr, + const Type41& data); + + extern void serialize_key( + Cdr& scdr, + const Type42& data); + + extern void serialize_key( + Cdr& scdr, + const Type43& data); + + extern void serialize_key( + Cdr& scdr, + const Type44& data); + + extern void serialize_key( + Cdr& scdr, + const Type45& data); + + extern void serialize_key( + Cdr& scdr, + const Type46& data); + + extern void serialize_key( + Cdr& scdr, + const Type47& data); + + extern void serialize_key( + Cdr& scdr, + const Type48& data); + + extern void serialize_key( + Cdr& scdr, + const Type49& data); + + extern void serialize_key( + Cdr& scdr, + const Type50& data); + + extern void serialize_key( + Cdr& scdr, + const Type51& data); + + extern void serialize_key( + Cdr& scdr, + const Type52& data); + + extern void serialize_key( + Cdr& scdr, + const Type53& data); + + extern void serialize_key( + Cdr& scdr, + const Type54& data); + + extern void serialize_key( + Cdr& scdr, + const Type55& data); + + extern void serialize_key( + Cdr& scdr, + const Type56& data); + + extern void serialize_key( + Cdr& scdr, + const Type57& data); + + extern void serialize_key( + Cdr& scdr, + const Type58& data); + + extern void serialize_key( + Cdr& scdr, + const Type59& data); + + extern void serialize_key( + Cdr& scdr, + const Type60& data); + + extern void serialize_key( + Cdr& scdr, + const Type61& data); + + extern void serialize_key( + Cdr& scdr, + const Type62& data); + + extern void serialize_key( + Cdr& scdr, + const Type63& data); + + extern void serialize_key( + Cdr& scdr, + const Type64& data); + + extern void serialize_key( + Cdr& scdr, + const Type65& data); + + extern void serialize_key( + Cdr& scdr, + const Type66& data); + + extern void serialize_key( + Cdr& scdr, + const Type67& data); + + extern void serialize_key( + Cdr& scdr, + const Type68& data); + + extern void serialize_key( + Cdr& scdr, + const Type69& data); + + extern void serialize_key( + Cdr& scdr, + const Type70& data); + + extern void serialize_key( + Cdr& scdr, + const Type71& data); + + extern void serialize_key( + Cdr& scdr, + const Type72& data); + + extern void serialize_key( + Cdr& scdr, + const Type73& data); + + extern void serialize_key( + Cdr& scdr, + const Type74& data); + + extern void serialize_key( + Cdr& scdr, + const Type75& data); + + extern void serialize_key( + Cdr& scdr, + const Type76& data); + + extern void serialize_key( + Cdr& scdr, + const Type77& data); + + extern void serialize_key( + Cdr& scdr, + const Type78& data); + + extern void serialize_key( + Cdr& scdr, + const Type79& data); + + extern void serialize_key( + Cdr& scdr, + const Type80& data); + + extern void serialize_key( + Cdr& scdr, + const Type81& data); + + extern void serialize_key( + Cdr& scdr, + const Type82& data); + + extern void serialize_key( + Cdr& scdr, + const Type83& data); + + extern void serialize_key( + Cdr& scdr, + const Type84& data); + + extern void serialize_key( + Cdr& scdr, + const Type85& data); + + extern void serialize_key( + Cdr& scdr, + const Type86& data); + + extern void serialize_key( + Cdr& scdr, + const Type87& data); + + extern void serialize_key( + Cdr& scdr, + const Type88& data); + + extern void serialize_key( + Cdr& scdr, + const Type89& data); + + extern void serialize_key( + Cdr& scdr, + const Type90& data); + + extern void serialize_key( + Cdr& scdr, + const Type91& data); + + extern void serialize_key( + Cdr& scdr, + const Type92& data); + + extern void serialize_key( + Cdr& scdr, + const Type93& data); + + extern void serialize_key( + Cdr& scdr, + const Type94& data); + + extern void serialize_key( + Cdr& scdr, + const Type95& data); + + extern void serialize_key( + Cdr& scdr, + const Type96& data); + + extern void serialize_key( + Cdr& scdr, + const Type97& data); + + extern void serialize_key( + Cdr& scdr, + const Type98& data); + + extern void serialize_key( + Cdr& scdr, + const Type99& data); + + extern void serialize_key( + Cdr& scdr, + const Type100& data); + + static_cast(scdr); static_cast(data); + scdr << data.index(); + + serialize_key(scdr, data.dep1()); + + serialize_key(scdr, data.dep2()); + + serialize_key(scdr, data.dep3()); + + serialize_key(scdr, data.dep4()); + + serialize_key(scdr, data.dep5()); + + serialize_key(scdr, data.dep6()); + + serialize_key(scdr, data.dep7()); + + serialize_key(scdr, data.dep8()); + + serialize_key(scdr, data.dep9()); + + serialize_key(scdr, data.dep10()); + + serialize_key(scdr, data.dep11()); + + serialize_key(scdr, data.dep12()); + + serialize_key(scdr, data.dep13()); + + serialize_key(scdr, data.dep14()); + + serialize_key(scdr, data.dep15()); + + serialize_key(scdr, data.dep16()); + + serialize_key(scdr, data.dep17()); + + serialize_key(scdr, data.dep18()); + + serialize_key(scdr, data.dep19()); + + serialize_key(scdr, data.dep20()); + + serialize_key(scdr, data.dep21()); + + serialize_key(scdr, data.dep22()); + + serialize_key(scdr, data.dep23()); + + serialize_key(scdr, data.dep24()); + + serialize_key(scdr, data.dep25()); + + serialize_key(scdr, data.dep26()); + + serialize_key(scdr, data.dep27()); + + serialize_key(scdr, data.dep28()); + + serialize_key(scdr, data.dep29()); + + serialize_key(scdr, data.dep30()); + + serialize_key(scdr, data.dep31()); + + serialize_key(scdr, data.dep32()); + + serialize_key(scdr, data.dep33()); + + serialize_key(scdr, data.dep34()); + + serialize_key(scdr, data.dep35()); + + serialize_key(scdr, data.dep36()); + + serialize_key(scdr, data.dep37()); + + serialize_key(scdr, data.dep38()); + + serialize_key(scdr, data.dep39()); + + serialize_key(scdr, data.dep40()); + + serialize_key(scdr, data.dep41()); + + serialize_key(scdr, data.dep42()); + + serialize_key(scdr, data.dep43()); + + serialize_key(scdr, data.dep44()); + + serialize_key(scdr, data.dep45()); + + serialize_key(scdr, data.dep46()); + + serialize_key(scdr, data.dep47()); + + serialize_key(scdr, data.dep48()); + + serialize_key(scdr, data.dep49()); + + serialize_key(scdr, data.dep50()); + + serialize_key(scdr, data.dep51()); + + serialize_key(scdr, data.dep52()); + + serialize_key(scdr, data.dep53()); + + serialize_key(scdr, data.dep54()); + + serialize_key(scdr, data.dep55()); + + serialize_key(scdr, data.dep56()); + + serialize_key(scdr, data.dep57()); + + serialize_key(scdr, data.dep58()); + + serialize_key(scdr, data.dep59()); + + serialize_key(scdr, data.dep60()); + + serialize_key(scdr, data.dep61()); + + serialize_key(scdr, data.dep62()); + + serialize_key(scdr, data.dep63()); + + serialize_key(scdr, data.dep64()); + + serialize_key(scdr, data.dep65()); + + serialize_key(scdr, data.dep66()); + + serialize_key(scdr, data.dep67()); + + serialize_key(scdr, data.dep68()); + + serialize_key(scdr, data.dep69()); + + serialize_key(scdr, data.dep70()); + + serialize_key(scdr, data.dep71()); + + serialize_key(scdr, data.dep72()); + + serialize_key(scdr, data.dep73()); + + serialize_key(scdr, data.dep74()); + + serialize_key(scdr, data.dep75()); + + serialize_key(scdr, data.dep76()); + + serialize_key(scdr, data.dep77()); + + serialize_key(scdr, data.dep78()); + + serialize_key(scdr, data.dep79()); + + serialize_key(scdr, data.dep80()); + + serialize_key(scdr, data.dep81()); + + serialize_key(scdr, data.dep82()); + + serialize_key(scdr, data.dep83()); + + serialize_key(scdr, data.dep84()); + + serialize_key(scdr, data.dep85()); + + serialize_key(scdr, data.dep86()); + + serialize_key(scdr, data.dep87()); + + serialize_key(scdr, data.dep88()); + + serialize_key(scdr, data.dep89()); + + serialize_key(scdr, data.dep90()); + + serialize_key(scdr, data.dep91()); + + serialize_key(scdr, data.dep92()); + + serialize_key(scdr, data.dep93()); + + serialize_key(scdr, data.dep94()); + + serialize_key(scdr, data.dep95()); + + serialize_key(scdr, data.dep96()); + + serialize_key(scdr, data.dep97()); + + serialize_key(scdr, data.dep98()); + + serialize_key(scdr, data.dep99()); + + serialize_key(scdr, data.dep100()); + } @@ -8286,5 +9180,5 @@ void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIGCDRAUX_IPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEBIGCDRAUX_IPP diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx index f8cb026ca3f..56bd605601a 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx @@ -19,7 +19,7 @@ * This file was generated by the tool fastddsgen. */ -#include "XtypesTestsTypeBigPubSubTypes.h" +#include "XtypesTestsTypeBigPubSubTypes.hpp" #include #include @@ -27,55 +27,48 @@ #include "XtypesTestsTypeBigCdrAux.hpp" #include "XtypesTestsTypeBigTypeObjectSupport.hpp" -using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; -using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; Type4PubSubType::Type4PubSubType() { - setName("Type4"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type4::getMaxCdrSerializedSize()); -#else - Type4_max_cdr_typesize; -#endif + set_name("Type4"); + uint32_t type_size = Type4_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type4_max_key_cdr_typesize > 16 ? Type4_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type4_max_key_cdr_typesize > 16 ? Type4_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type4PubSubType::~Type4PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type4PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type4* p_type = static_cast(data); + const Type4* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -90,16 +83,12 @@ bool Type4PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type4PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -108,18 +97,14 @@ bool Type4PubSubType::deserialize( Type4* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -132,143 +117,139 @@ bool Type4PubSubType::deserialize( return true; } -std::function Type4PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type4PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type4PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type4PubSubType::create_data() { return reinterpret_cast(new Type4()); } -void Type4PubSubType::deleteData( +void Type4PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type4PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type4PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type4 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type4PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type4* p_type = static_cast(data); + const Type4* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type4_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type4_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type4PubSubType::register_type_object_representation() const +void Type4PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type4_type_identifier(type_identifiers_); } Type5PubSubType::Type5PubSubType() { - setName("Type5"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type5::getMaxCdrSerializedSize()); -#else - Type5_max_cdr_typesize; -#endif + set_name("Type5"); + uint32_t type_size = Type5_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type5_max_key_cdr_typesize > 16 ? Type5_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type5_max_key_cdr_typesize > 16 ? Type5_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type5PubSubType::~Type5PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type5PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type5* p_type = static_cast(data); + const Type5* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -283,16 +264,12 @@ bool Type5PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type5PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -301,18 +278,14 @@ bool Type5PubSubType::deserialize( Type5* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -325,143 +298,139 @@ bool Type5PubSubType::deserialize( return true; } -std::function Type5PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type5PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type5PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type5PubSubType::create_data() { return reinterpret_cast(new Type5()); } -void Type5PubSubType::deleteData( +void Type5PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type5PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type5PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type5 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type5PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type5* p_type = static_cast(data); + const Type5* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type5_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type5_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type5PubSubType::register_type_object_representation() const +void Type5PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type5_type_identifier(type_identifiers_); } Type6PubSubType::Type6PubSubType() { - setName("Type6"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type6::getMaxCdrSerializedSize()); -#else - Type6_max_cdr_typesize; -#endif + set_name("Type6"); + uint32_t type_size = Type6_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type6_max_key_cdr_typesize > 16 ? Type6_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type6_max_key_cdr_typesize > 16 ? Type6_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type6PubSubType::~Type6PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type6PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type6* p_type = static_cast(data); + const Type6* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -476,16 +445,12 @@ bool Type6PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type6PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -494,18 +459,14 @@ bool Type6PubSubType::deserialize( Type6* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -518,143 +479,139 @@ bool Type6PubSubType::deserialize( return true; } -std::function Type6PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type6PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type6PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type6PubSubType::create_data() { return reinterpret_cast(new Type6()); } -void Type6PubSubType::deleteData( +void Type6PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type6PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type6PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type6 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type6PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type6* p_type = static_cast(data); + const Type6* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type6_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type6_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type6PubSubType::register_type_object_representation() const +void Type6PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type6_type_identifier(type_identifiers_); } Type7PubSubType::Type7PubSubType() { - setName("Type7"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type7::getMaxCdrSerializedSize()); -#else - Type7_max_cdr_typesize; -#endif + set_name("Type7"); + uint32_t type_size = Type7_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type7_max_key_cdr_typesize > 16 ? Type7_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type7_max_key_cdr_typesize > 16 ? Type7_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type7PubSubType::~Type7PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type7PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type7* p_type = static_cast(data); + const Type7* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -669,16 +626,12 @@ bool Type7PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type7PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -687,18 +640,14 @@ bool Type7PubSubType::deserialize( Type7* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -711,143 +660,139 @@ bool Type7PubSubType::deserialize( return true; } -std::function Type7PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type7PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type7PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type7PubSubType::create_data() { return reinterpret_cast(new Type7()); } -void Type7PubSubType::deleteData( +void Type7PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type7PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type7PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type7 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type7PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type7* p_type = static_cast(data); + const Type7* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type7_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type7_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type7PubSubType::register_type_object_representation() const +void Type7PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type7_type_identifier(type_identifiers_); } Type8PubSubType::Type8PubSubType() { - setName("Type8"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type8::getMaxCdrSerializedSize()); -#else - Type8_max_cdr_typesize; -#endif + set_name("Type8"); + uint32_t type_size = Type8_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type8_max_key_cdr_typesize > 16 ? Type8_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type8_max_key_cdr_typesize > 16 ? Type8_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type8PubSubType::~Type8PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type8PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type8* p_type = static_cast(data); + const Type8* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -862,16 +807,12 @@ bool Type8PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type8PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -880,18 +821,14 @@ bool Type8PubSubType::deserialize( Type8* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -904,143 +841,139 @@ bool Type8PubSubType::deserialize( return true; } -std::function Type8PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type8PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type8PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type8PubSubType::create_data() { return reinterpret_cast(new Type8()); } -void Type8PubSubType::deleteData( +void Type8PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type8PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type8PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type8 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type8PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type8* p_type = static_cast(data); + const Type8* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type8_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type8_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type8PubSubType::register_type_object_representation() const +void Type8PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type8_type_identifier(type_identifiers_); } Type9PubSubType::Type9PubSubType() { - setName("Type9"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type9::getMaxCdrSerializedSize()); -#else - Type9_max_cdr_typesize; -#endif + set_name("Type9"); + uint32_t type_size = Type9_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type9_max_key_cdr_typesize > 16 ? Type9_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type9_max_key_cdr_typesize > 16 ? Type9_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type9PubSubType::~Type9PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type9PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type9* p_type = static_cast(data); + const Type9* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1055,16 +988,12 @@ bool Type9PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type9PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -1073,18 +1002,14 @@ bool Type9PubSubType::deserialize( Type9* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -1097,143 +1022,139 @@ bool Type9PubSubType::deserialize( return true; } -std::function Type9PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type9PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type9PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type9PubSubType::create_data() { return reinterpret_cast(new Type9()); } -void Type9PubSubType::deleteData( +void Type9PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type9PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type9PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type9 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type9PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type9* p_type = static_cast(data); + const Type9* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type9_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type9_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type9PubSubType::register_type_object_representation() const +void Type9PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type9_type_identifier(type_identifiers_); } Type10PubSubType::Type10PubSubType() { - setName("Type10"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type10::getMaxCdrSerializedSize()); -#else - Type10_max_cdr_typesize; -#endif + set_name("Type10"); + uint32_t type_size = Type10_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type10_max_key_cdr_typesize > 16 ? Type10_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type10_max_key_cdr_typesize > 16 ? Type10_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type10PubSubType::~Type10PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type10PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type10* p_type = static_cast(data); + const Type10* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1248,16 +1169,12 @@ bool Type10PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type10PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -1266,18 +1183,14 @@ bool Type10PubSubType::deserialize( Type10* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -1290,143 +1203,139 @@ bool Type10PubSubType::deserialize( return true; } -std::function Type10PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type10PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type10PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type10PubSubType::create_data() { return reinterpret_cast(new Type10()); } -void Type10PubSubType::deleteData( +void Type10PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type10PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type10PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type10 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type10PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type10* p_type = static_cast(data); + const Type10* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type10_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type10_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type10PubSubType::register_type_object_representation() const +void Type10PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type10_type_identifier(type_identifiers_); } Type11PubSubType::Type11PubSubType() { - setName("Type11"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type11::getMaxCdrSerializedSize()); -#else - Type11_max_cdr_typesize; -#endif + set_name("Type11"); + uint32_t type_size = Type11_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type11_max_key_cdr_typesize > 16 ? Type11_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type11_max_key_cdr_typesize > 16 ? Type11_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type11PubSubType::~Type11PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type11PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type11* p_type = static_cast(data); + const Type11* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1441,16 +1350,12 @@ bool Type11PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type11PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -1459,18 +1364,14 @@ bool Type11PubSubType::deserialize( Type11* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -1483,143 +1384,139 @@ bool Type11PubSubType::deserialize( return true; } -std::function Type11PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type11PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type11PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type11PubSubType::create_data() { return reinterpret_cast(new Type11()); } -void Type11PubSubType::deleteData( +void Type11PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type11PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type11PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type11 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type11PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type11* p_type = static_cast(data); + const Type11* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type11_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type11_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type11PubSubType::register_type_object_representation() const +void Type11PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type11_type_identifier(type_identifiers_); } Type12PubSubType::Type12PubSubType() { - setName("Type12"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type12::getMaxCdrSerializedSize()); -#else - Type12_max_cdr_typesize; -#endif + set_name("Type12"); + uint32_t type_size = Type12_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type12_max_key_cdr_typesize > 16 ? Type12_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type12_max_key_cdr_typesize > 16 ? Type12_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type12PubSubType::~Type12PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type12PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type12* p_type = static_cast(data); + const Type12* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1634,16 +1531,12 @@ bool Type12PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type12PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -1652,18 +1545,14 @@ bool Type12PubSubType::deserialize( Type12* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -1676,143 +1565,139 @@ bool Type12PubSubType::deserialize( return true; } -std::function Type12PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type12PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type12PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type12PubSubType::create_data() { return reinterpret_cast(new Type12()); } -void Type12PubSubType::deleteData( +void Type12PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type12PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type12PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type12 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type12PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type12* p_type = static_cast(data); + const Type12* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type12_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type12_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type12PubSubType::register_type_object_representation() const +void Type12PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type12_type_identifier(type_identifiers_); } Type13PubSubType::Type13PubSubType() { - setName("Type13"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type13::getMaxCdrSerializedSize()); -#else - Type13_max_cdr_typesize; -#endif + set_name("Type13"); + uint32_t type_size = Type13_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type13_max_key_cdr_typesize > 16 ? Type13_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type13_max_key_cdr_typesize > 16 ? Type13_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type13PubSubType::~Type13PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type13PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type13* p_type = static_cast(data); + const Type13* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1827,16 +1712,12 @@ bool Type13PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type13PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -1845,18 +1726,14 @@ bool Type13PubSubType::deserialize( Type13* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -1869,143 +1746,139 @@ bool Type13PubSubType::deserialize( return true; } -std::function Type13PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type13PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type13PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type13PubSubType::create_data() { return reinterpret_cast(new Type13()); } -void Type13PubSubType::deleteData( +void Type13PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type13PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type13PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type13 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type13PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type13* p_type = static_cast(data); + const Type13* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type13_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type13_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type13PubSubType::register_type_object_representation() const +void Type13PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type13_type_identifier(type_identifiers_); } Type14PubSubType::Type14PubSubType() { - setName("Type14"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type14::getMaxCdrSerializedSize()); -#else - Type14_max_cdr_typesize; -#endif + set_name("Type14"); + uint32_t type_size = Type14_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type14_max_key_cdr_typesize > 16 ? Type14_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type14_max_key_cdr_typesize > 16 ? Type14_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type14PubSubType::~Type14PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type14PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type14* p_type = static_cast(data); + const Type14* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -2020,16 +1893,12 @@ bool Type14PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type14PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -2038,18 +1907,14 @@ bool Type14PubSubType::deserialize( Type14* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -2062,143 +1927,139 @@ bool Type14PubSubType::deserialize( return true; } -std::function Type14PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type14PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type14PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type14PubSubType::create_data() { return reinterpret_cast(new Type14()); } -void Type14PubSubType::deleteData( +void Type14PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type14PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type14PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type14 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type14PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type14* p_type = static_cast(data); + const Type14* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type14_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type14_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type14PubSubType::register_type_object_representation() const +void Type14PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type14_type_identifier(type_identifiers_); } Type15PubSubType::Type15PubSubType() { - setName("Type15"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type15::getMaxCdrSerializedSize()); -#else - Type15_max_cdr_typesize; -#endif + set_name("Type15"); + uint32_t type_size = Type15_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type15_max_key_cdr_typesize > 16 ? Type15_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type15_max_key_cdr_typesize > 16 ? Type15_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type15PubSubType::~Type15PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type15PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type15* p_type = static_cast(data); + const Type15* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -2213,16 +2074,12 @@ bool Type15PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type15PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -2231,18 +2088,14 @@ bool Type15PubSubType::deserialize( Type15* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -2255,143 +2108,139 @@ bool Type15PubSubType::deserialize( return true; } -std::function Type15PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type15PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type15PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type15PubSubType::create_data() { return reinterpret_cast(new Type15()); } -void Type15PubSubType::deleteData( +void Type15PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type15PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type15PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type15 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type15PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type15* p_type = static_cast(data); + const Type15* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type15_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type15_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type15PubSubType::register_type_object_representation() const +void Type15PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type15_type_identifier(type_identifiers_); } Type16PubSubType::Type16PubSubType() { - setName("Type16"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type16::getMaxCdrSerializedSize()); -#else - Type16_max_cdr_typesize; -#endif + set_name("Type16"); + uint32_t type_size = Type16_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type16_max_key_cdr_typesize > 16 ? Type16_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type16_max_key_cdr_typesize > 16 ? Type16_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type16PubSubType::~Type16PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type16PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type16* p_type = static_cast(data); + const Type16* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -2406,16 +2255,12 @@ bool Type16PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type16PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -2424,18 +2269,14 @@ bool Type16PubSubType::deserialize( Type16* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -2448,143 +2289,139 @@ bool Type16PubSubType::deserialize( return true; } -std::function Type16PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type16PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type16PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type16PubSubType::create_data() { return reinterpret_cast(new Type16()); } -void Type16PubSubType::deleteData( +void Type16PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type16PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type16PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type16* p_type = static_cast(data); + Type16 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), - Type16_max_key_cdr_typesize); + return false; +} - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else - eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 +bool Type16PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type16* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), + Type16_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); if (force_md5 || Type16_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type16PubSubType::register_type_object_representation() const +void Type16PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type16_type_identifier(type_identifiers_); } Type17PubSubType::Type17PubSubType() { - setName("Type17"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type17::getMaxCdrSerializedSize()); -#else - Type17_max_cdr_typesize; -#endif + set_name("Type17"); + uint32_t type_size = Type17_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type17_max_key_cdr_typesize > 16 ? Type17_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type17_max_key_cdr_typesize > 16 ? Type17_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type17PubSubType::~Type17PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type17PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type17* p_type = static_cast(data); + const Type17* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -2599,16 +2436,12 @@ bool Type17PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type17PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -2617,18 +2450,14 @@ bool Type17PubSubType::deserialize( Type17* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -2641,143 +2470,139 @@ bool Type17PubSubType::deserialize( return true; } -std::function Type17PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type17PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type17PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type17PubSubType::create_data() { return reinterpret_cast(new Type17()); } -void Type17PubSubType::deleteData( +void Type17PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type17PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type17PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type17 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type17PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type17* p_type = static_cast(data); + const Type17* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type17_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type17_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type17PubSubType::register_type_object_representation() const +void Type17PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type17_type_identifier(type_identifiers_); } Type18PubSubType::Type18PubSubType() { - setName("Type18"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type18::getMaxCdrSerializedSize()); -#else - Type18_max_cdr_typesize; -#endif + set_name("Type18"); + uint32_t type_size = Type18_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type18_max_key_cdr_typesize > 16 ? Type18_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type18_max_key_cdr_typesize > 16 ? Type18_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type18PubSubType::~Type18PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type18PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type18* p_type = static_cast(data); + const Type18* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -2792,16 +2617,12 @@ bool Type18PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type18PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -2810,18 +2631,14 @@ bool Type18PubSubType::deserialize( Type18* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -2834,143 +2651,139 @@ bool Type18PubSubType::deserialize( return true; } -std::function Type18PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type18PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type18PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type18PubSubType::create_data() { return reinterpret_cast(new Type18()); } -void Type18PubSubType::deleteData( +void Type18PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type18PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type18PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type18 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type18PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type18* p_type = static_cast(data); + const Type18* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type18_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type18_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type18PubSubType::register_type_object_representation() const +void Type18PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type18_type_identifier(type_identifiers_); } Type19PubSubType::Type19PubSubType() { - setName("Type19"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type19::getMaxCdrSerializedSize()); -#else - Type19_max_cdr_typesize; -#endif + set_name("Type19"); + uint32_t type_size = Type19_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type19_max_key_cdr_typesize > 16 ? Type19_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type19_max_key_cdr_typesize > 16 ? Type19_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type19PubSubType::~Type19PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type19PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type19* p_type = static_cast(data); + const Type19* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -2985,16 +2798,12 @@ bool Type19PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type19PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -3003,18 +2812,14 @@ bool Type19PubSubType::deserialize( Type19* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -3027,143 +2832,139 @@ bool Type19PubSubType::deserialize( return true; } -std::function Type19PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type19PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type19PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type19PubSubType::create_data() { return reinterpret_cast(new Type19()); } -void Type19PubSubType::deleteData( +void Type19PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type19PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type19PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type19 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type19PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type19* p_type = static_cast(data); + const Type19* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type19_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type19_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type19PubSubType::register_type_object_representation() const +void Type19PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type19_type_identifier(type_identifiers_); } Type20PubSubType::Type20PubSubType() { - setName("Type20"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type20::getMaxCdrSerializedSize()); -#else - Type20_max_cdr_typesize; -#endif + set_name("Type20"); + uint32_t type_size = Type20_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type20_max_key_cdr_typesize > 16 ? Type20_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type20_max_key_cdr_typesize > 16 ? Type20_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type20PubSubType::~Type20PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type20PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type20* p_type = static_cast(data); + const Type20* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -3178,16 +2979,12 @@ bool Type20PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type20PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -3196,18 +2993,14 @@ bool Type20PubSubType::deserialize( Type20* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -3220,143 +3013,139 @@ bool Type20PubSubType::deserialize( return true; } -std::function Type20PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type20PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type20PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type20PubSubType::create_data() { return reinterpret_cast(new Type20()); } -void Type20PubSubType::deleteData( +void Type20PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type20PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type20PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type20 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type20PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type20* p_type = static_cast(data); + const Type20* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type20_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type20_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type20PubSubType::register_type_object_representation() const +void Type20PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type20_type_identifier(type_identifiers_); } Type21PubSubType::Type21PubSubType() { - setName("Type21"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type21::getMaxCdrSerializedSize()); -#else - Type21_max_cdr_typesize; -#endif + set_name("Type21"); + uint32_t type_size = Type21_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type21_max_key_cdr_typesize > 16 ? Type21_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type21_max_key_cdr_typesize > 16 ? Type21_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type21PubSubType::~Type21PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type21PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type21* p_type = static_cast(data); + const Type21* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -3371,16 +3160,12 @@ bool Type21PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type21PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -3389,18 +3174,14 @@ bool Type21PubSubType::deserialize( Type21* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -3413,143 +3194,139 @@ bool Type21PubSubType::deserialize( return true; } -std::function Type21PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type21PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type21PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type21PubSubType::create_data() { return reinterpret_cast(new Type21()); } -void Type21PubSubType::deleteData( +void Type21PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type21PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type21PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type21 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type21PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type21* p_type = static_cast(data); + const Type21* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type21_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type21_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type21PubSubType::register_type_object_representation() const +void Type21PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type21_type_identifier(type_identifiers_); } Type22PubSubType::Type22PubSubType() { - setName("Type22"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type22::getMaxCdrSerializedSize()); -#else - Type22_max_cdr_typesize; -#endif + set_name("Type22"); + uint32_t type_size = Type22_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type22_max_key_cdr_typesize > 16 ? Type22_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type22_max_key_cdr_typesize > 16 ? Type22_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type22PubSubType::~Type22PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type22PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type22* p_type = static_cast(data); + const Type22* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -3564,16 +3341,12 @@ bool Type22PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type22PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -3582,18 +3355,14 @@ bool Type22PubSubType::deserialize( Type22* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -3606,143 +3375,139 @@ bool Type22PubSubType::deserialize( return true; } -std::function Type22PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type22PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type22PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type22PubSubType::create_data() { return reinterpret_cast(new Type22()); } -void Type22PubSubType::deleteData( +void Type22PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type22PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type22PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type22 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type22PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type22* p_type = static_cast(data); + const Type22* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type22_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type22_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type22PubSubType::register_type_object_representation() const +void Type22PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type22_type_identifier(type_identifiers_); } Type23PubSubType::Type23PubSubType() { - setName("Type23"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type23::getMaxCdrSerializedSize()); -#else - Type23_max_cdr_typesize; -#endif + set_name("Type23"); + uint32_t type_size = Type23_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type23_max_key_cdr_typesize > 16 ? Type23_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type23_max_key_cdr_typesize > 16 ? Type23_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type23PubSubType::~Type23PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type23PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type23* p_type = static_cast(data); + const Type23* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -3757,16 +3522,12 @@ bool Type23PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type23PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -3775,18 +3536,14 @@ bool Type23PubSubType::deserialize( Type23* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -3799,143 +3556,139 @@ bool Type23PubSubType::deserialize( return true; } -std::function Type23PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type23PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type23PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type23PubSubType::create_data() { return reinterpret_cast(new Type23()); } -void Type23PubSubType::deleteData( +void Type23PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type23PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type23PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type23 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type23PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type23* p_type = static_cast(data); + const Type23* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type23_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type23_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type23PubSubType::register_type_object_representation() const +void Type23PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type23_type_identifier(type_identifiers_); } Type24PubSubType::Type24PubSubType() { - setName("Type24"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type24::getMaxCdrSerializedSize()); -#else - Type24_max_cdr_typesize; -#endif + set_name("Type24"); + uint32_t type_size = Type24_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type24_max_key_cdr_typesize > 16 ? Type24_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type24_max_key_cdr_typesize > 16 ? Type24_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type24PubSubType::~Type24PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type24PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type24* p_type = static_cast(data); + const Type24* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -3950,16 +3703,12 @@ bool Type24PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type24PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -3968,18 +3717,14 @@ bool Type24PubSubType::deserialize( Type24* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -3992,143 +3737,139 @@ bool Type24PubSubType::deserialize( return true; } -std::function Type24PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type24PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type24PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type24PubSubType::create_data() { return reinterpret_cast(new Type24()); } -void Type24PubSubType::deleteData( +void Type24PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type24PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type24PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type24 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type24PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type24* p_type = static_cast(data); + const Type24* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type24_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type24_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type24PubSubType::register_type_object_representation() const +void Type24PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type24_type_identifier(type_identifiers_); } Type25PubSubType::Type25PubSubType() { - setName("Type25"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type25::getMaxCdrSerializedSize()); -#else - Type25_max_cdr_typesize; -#endif + set_name("Type25"); + uint32_t type_size = Type25_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type25_max_key_cdr_typesize > 16 ? Type25_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type25_max_key_cdr_typesize > 16 ? Type25_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type25PubSubType::~Type25PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type25PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type25* p_type = static_cast(data); + const Type25* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -4143,16 +3884,12 @@ bool Type25PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type25PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -4161,18 +3898,14 @@ bool Type25PubSubType::deserialize( Type25* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -4185,143 +3918,139 @@ bool Type25PubSubType::deserialize( return true; } -std::function Type25PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type25PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type25PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type25PubSubType::create_data() { return reinterpret_cast(new Type25()); } -void Type25PubSubType::deleteData( +void Type25PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type25PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type25PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type25 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type25PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type25* p_type = static_cast(data); + const Type25* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type25_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type25_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type25PubSubType::register_type_object_representation() const +void Type25PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type25_type_identifier(type_identifiers_); } Type26PubSubType::Type26PubSubType() { - setName("Type26"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type26::getMaxCdrSerializedSize()); -#else - Type26_max_cdr_typesize; -#endif + set_name("Type26"); + uint32_t type_size = Type26_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type26_max_key_cdr_typesize > 16 ? Type26_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type26_max_key_cdr_typesize > 16 ? Type26_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type26PubSubType::~Type26PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type26PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type26* p_type = static_cast(data); + const Type26* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -4336,16 +4065,12 @@ bool Type26PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type26PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -4354,18 +4079,14 @@ bool Type26PubSubType::deserialize( Type26* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -4378,143 +4099,139 @@ bool Type26PubSubType::deserialize( return true; } -std::function Type26PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type26PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type26PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type26PubSubType::create_data() { return reinterpret_cast(new Type26()); } -void Type26PubSubType::deleteData( +void Type26PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type26PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type26PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type26 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type26PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type26* p_type = static_cast(data); + const Type26* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type26_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type26_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type26PubSubType::register_type_object_representation() const +void Type26PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type26_type_identifier(type_identifiers_); } Type27PubSubType::Type27PubSubType() { - setName("Type27"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type27::getMaxCdrSerializedSize()); -#else - Type27_max_cdr_typesize; -#endif + set_name("Type27"); + uint32_t type_size = Type27_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type27_max_key_cdr_typesize > 16 ? Type27_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type27_max_key_cdr_typesize > 16 ? Type27_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type27PubSubType::~Type27PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type27PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type27* p_type = static_cast(data); + const Type27* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -4529,16 +4246,12 @@ bool Type27PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type27PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -4547,18 +4260,14 @@ bool Type27PubSubType::deserialize( Type27* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -4571,143 +4280,139 @@ bool Type27PubSubType::deserialize( return true; } -std::function Type27PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type27PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type27PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type27PubSubType::create_data() { return reinterpret_cast(new Type27()); } -void Type27PubSubType::deleteData( +void Type27PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type27PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type27PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type27 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type27PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type27* p_type = static_cast(data); + const Type27* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type27_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type27_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type27PubSubType::register_type_object_representation() const +void Type27PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type27_type_identifier(type_identifiers_); } Type28PubSubType::Type28PubSubType() { - setName("Type28"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type28::getMaxCdrSerializedSize()); -#else - Type28_max_cdr_typesize; -#endif + set_name("Type28"); + uint32_t type_size = Type28_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type28_max_key_cdr_typesize > 16 ? Type28_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type28_max_key_cdr_typesize > 16 ? Type28_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type28PubSubType::~Type28PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type28PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type28* p_type = static_cast(data); + const Type28* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -4722,16 +4427,12 @@ bool Type28PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type28PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -4740,18 +4441,14 @@ bool Type28PubSubType::deserialize( Type28* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -4764,143 +4461,139 @@ bool Type28PubSubType::deserialize( return true; } -std::function Type28PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type28PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type28PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type28PubSubType::create_data() { return reinterpret_cast(new Type28()); } -void Type28PubSubType::deleteData( +void Type28PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type28PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type28PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type28 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type28PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type28* p_type = static_cast(data); + const Type28* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type28_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type28_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type28PubSubType::register_type_object_representation() const +void Type28PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type28_type_identifier(type_identifiers_); } Type29PubSubType::Type29PubSubType() { - setName("Type29"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type29::getMaxCdrSerializedSize()); -#else - Type29_max_cdr_typesize; -#endif + set_name("Type29"); + uint32_t type_size = Type29_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type29_max_key_cdr_typesize > 16 ? Type29_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type29_max_key_cdr_typesize > 16 ? Type29_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type29PubSubType::~Type29PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type29PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type29* p_type = static_cast(data); + const Type29* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -4915,16 +4608,12 @@ bool Type29PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type29PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -4933,18 +4622,14 @@ bool Type29PubSubType::deserialize( Type29* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -4957,143 +4642,139 @@ bool Type29PubSubType::deserialize( return true; } -std::function Type29PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type29PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type29PubSubType::createData() -{ - return reinterpret_cast(new Type29()); -} - -void Type29PubSubType::deleteData( + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type29PubSubType::create_data() +{ + return reinterpret_cast(new Type29()); +} + +void Type29PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type29PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type29PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type29 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type29PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type29* p_type = static_cast(data); + const Type29* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type29_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type29_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type29PubSubType::register_type_object_representation() const +void Type29PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type29_type_identifier(type_identifiers_); } Type30PubSubType::Type30PubSubType() { - setName("Type30"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type30::getMaxCdrSerializedSize()); -#else - Type30_max_cdr_typesize; -#endif + set_name("Type30"); + uint32_t type_size = Type30_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type30_max_key_cdr_typesize > 16 ? Type30_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type30_max_key_cdr_typesize > 16 ? Type30_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type30PubSubType::~Type30PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type30PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type30* p_type = static_cast(data); + const Type30* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -5108,16 +4789,12 @@ bool Type30PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type30PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -5126,18 +4803,14 @@ bool Type30PubSubType::deserialize( Type30* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -5150,143 +4823,139 @@ bool Type30PubSubType::deserialize( return true; } -std::function Type30PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type30PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type30PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type30PubSubType::create_data() { return reinterpret_cast(new Type30()); } -void Type30PubSubType::deleteData( +void Type30PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type30PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type30PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type30* p_type = static_cast(data); + Type30 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type30PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type30* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type30_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type30_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type30PubSubType::register_type_object_representation() const +void Type30PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type30_type_identifier(type_identifiers_); } Type31PubSubType::Type31PubSubType() { - setName("Type31"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type31::getMaxCdrSerializedSize()); -#else - Type31_max_cdr_typesize; -#endif + set_name("Type31"); + uint32_t type_size = Type31_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type31_max_key_cdr_typesize > 16 ? Type31_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type31_max_key_cdr_typesize > 16 ? Type31_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type31PubSubType::~Type31PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type31PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type31* p_type = static_cast(data); + const Type31* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -5301,16 +4970,12 @@ bool Type31PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type31PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -5319,18 +4984,14 @@ bool Type31PubSubType::deserialize( Type31* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -5343,143 +5004,139 @@ bool Type31PubSubType::deserialize( return true; } -std::function Type31PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type31PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type31PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type31PubSubType::create_data() { return reinterpret_cast(new Type31()); } -void Type31PubSubType::deleteData( +void Type31PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type31PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type31PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type31* p_type = static_cast(data); + Type31 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type31PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type31* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type31_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type31_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type31PubSubType::register_type_object_representation() const +void Type31PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type31_type_identifier(type_identifiers_); } Type32PubSubType::Type32PubSubType() { - setName("Type32"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type32::getMaxCdrSerializedSize()); -#else - Type32_max_cdr_typesize; -#endif + set_name("Type32"); + uint32_t type_size = Type32_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type32_max_key_cdr_typesize > 16 ? Type32_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type32_max_key_cdr_typesize > 16 ? Type32_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type32PubSubType::~Type32PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type32PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type32* p_type = static_cast(data); + const Type32* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -5494,16 +5151,12 @@ bool Type32PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type32PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -5512,18 +5165,14 @@ bool Type32PubSubType::deserialize( Type32* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -5536,143 +5185,139 @@ bool Type32PubSubType::deserialize( return true; } -std::function Type32PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type32PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type32PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type32PubSubType::create_data() { return reinterpret_cast(new Type32()); } -void Type32PubSubType::deleteData( +void Type32PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type32PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type32PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type32* p_type = static_cast(data); + Type32 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type32PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type32* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type32_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type32_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type32PubSubType::register_type_object_representation() const +void Type32PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type32_type_identifier(type_identifiers_); } Type33PubSubType::Type33PubSubType() { - setName("Type33"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type33::getMaxCdrSerializedSize()); -#else - Type33_max_cdr_typesize; -#endif + set_name("Type33"); + uint32_t type_size = Type33_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type33_max_key_cdr_typesize > 16 ? Type33_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type33_max_key_cdr_typesize > 16 ? Type33_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type33PubSubType::~Type33PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type33PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type33* p_type = static_cast(data); + const Type33* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -5687,16 +5332,12 @@ bool Type33PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type33PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -5705,18 +5346,14 @@ bool Type33PubSubType::deserialize( Type33* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -5729,143 +5366,139 @@ bool Type33PubSubType::deserialize( return true; } -std::function Type33PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type33PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type33PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type33PubSubType::create_data() { return reinterpret_cast(new Type33()); } -void Type33PubSubType::deleteData( +void Type33PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type33PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type33PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type33* p_type = static_cast(data); + Type33 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type33PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type33* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type33_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type33_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type33PubSubType::register_type_object_representation() const +void Type33PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type33_type_identifier(type_identifiers_); } Type34PubSubType::Type34PubSubType() { - setName("Type34"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type34::getMaxCdrSerializedSize()); -#else - Type34_max_cdr_typesize; -#endif + set_name("Type34"); + uint32_t type_size = Type34_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type34_max_key_cdr_typesize > 16 ? Type34_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type34_max_key_cdr_typesize > 16 ? Type34_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type34PubSubType::~Type34PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type34PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type34* p_type = static_cast(data); + const Type34* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -5880,16 +5513,12 @@ bool Type34PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type34PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -5898,18 +5527,14 @@ bool Type34PubSubType::deserialize( Type34* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -5922,143 +5547,139 @@ bool Type34PubSubType::deserialize( return true; } -std::function Type34PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type34PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type34PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type34PubSubType::create_data() { return reinterpret_cast(new Type34()); } -void Type34PubSubType::deleteData( +void Type34PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type34PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type34PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type34* p_type = static_cast(data); + Type34 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type34PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type34* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type34_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type34_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type34PubSubType::register_type_object_representation() const +void Type34PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type34_type_identifier(type_identifiers_); } Type35PubSubType::Type35PubSubType() { - setName("Type35"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type35::getMaxCdrSerializedSize()); -#else - Type35_max_cdr_typesize; -#endif + set_name("Type35"); + uint32_t type_size = Type35_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type35_max_key_cdr_typesize > 16 ? Type35_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type35_max_key_cdr_typesize > 16 ? Type35_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type35PubSubType::~Type35PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type35PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type35* p_type = static_cast(data); + const Type35* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -6073,16 +5694,12 @@ bool Type35PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type35PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -6091,18 +5708,14 @@ bool Type35PubSubType::deserialize( Type35* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -6115,143 +5728,139 @@ bool Type35PubSubType::deserialize( return true; } -std::function Type35PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type35PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type35PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type35PubSubType::create_data() { return reinterpret_cast(new Type35()); } -void Type35PubSubType::deleteData( +void Type35PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type35PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type35PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type35 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type35PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type35* p_type = static_cast(data); + const Type35* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type35_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type35_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type35PubSubType::register_type_object_representation() const +void Type35PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type35_type_identifier(type_identifiers_); } Type36PubSubType::Type36PubSubType() { - setName("Type36"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type36::getMaxCdrSerializedSize()); -#else - Type36_max_cdr_typesize; -#endif + set_name("Type36"); + uint32_t type_size = Type36_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type36_max_key_cdr_typesize > 16 ? Type36_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type36_max_key_cdr_typesize > 16 ? Type36_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type36PubSubType::~Type36PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type36PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type36* p_type = static_cast(data); + const Type36* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -6266,16 +5875,12 @@ bool Type36PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type36PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -6284,18 +5889,14 @@ bool Type36PubSubType::deserialize( Type36* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -6308,143 +5909,139 @@ bool Type36PubSubType::deserialize( return true; } -std::function Type36PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type36PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type36PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type36PubSubType::create_data() { return reinterpret_cast(new Type36()); } -void Type36PubSubType::deleteData( +void Type36PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type36PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type36PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type36* p_type = static_cast(data); + Type36 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type36PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type36* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type36_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type36_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type36PubSubType::register_type_object_representation() const +void Type36PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type36_type_identifier(type_identifiers_); } Type37PubSubType::Type37PubSubType() { - setName("Type37"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type37::getMaxCdrSerializedSize()); -#else - Type37_max_cdr_typesize; -#endif + set_name("Type37"); + uint32_t type_size = Type37_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type37_max_key_cdr_typesize > 16 ? Type37_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type37_max_key_cdr_typesize > 16 ? Type37_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type37PubSubType::~Type37PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type37PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type37* p_type = static_cast(data); + const Type37* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -6459,16 +6056,12 @@ bool Type37PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type37PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -6477,18 +6070,14 @@ bool Type37PubSubType::deserialize( Type37* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -6501,143 +6090,139 @@ bool Type37PubSubType::deserialize( return true; } -std::function Type37PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type37PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type37PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type37PubSubType::create_data() { return reinterpret_cast(new Type37()); } -void Type37PubSubType::deleteData( +void Type37PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type37PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type37PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type37 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type37PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type37* p_type = static_cast(data); + const Type37* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type37_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type37_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type37PubSubType::register_type_object_representation() const +void Type37PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type37_type_identifier(type_identifiers_); } Type38PubSubType::Type38PubSubType() { - setName("Type38"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type38::getMaxCdrSerializedSize()); -#else - Type38_max_cdr_typesize; -#endif + set_name("Type38"); + uint32_t type_size = Type38_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type38_max_key_cdr_typesize > 16 ? Type38_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type38_max_key_cdr_typesize > 16 ? Type38_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type38PubSubType::~Type38PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type38PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type38* p_type = static_cast(data); + const Type38* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -6652,16 +6237,12 @@ bool Type38PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type38PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -6670,18 +6251,14 @@ bool Type38PubSubType::deserialize( Type38* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -6694,143 +6271,139 @@ bool Type38PubSubType::deserialize( return true; } -std::function Type38PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type38PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type38PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type38PubSubType::create_data() { return reinterpret_cast(new Type38()); } -void Type38PubSubType::deleteData( +void Type38PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type38PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type38PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type38 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type38PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type38* p_type = static_cast(data); + const Type38* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type38_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type38_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type38PubSubType::register_type_object_representation() const +void Type38PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type38_type_identifier(type_identifiers_); } Type39PubSubType::Type39PubSubType() { - setName("Type39"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type39::getMaxCdrSerializedSize()); -#else - Type39_max_cdr_typesize; -#endif + set_name("Type39"); + uint32_t type_size = Type39_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type39_max_key_cdr_typesize > 16 ? Type39_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type39_max_key_cdr_typesize > 16 ? Type39_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type39PubSubType::~Type39PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type39PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type39* p_type = static_cast(data); + const Type39* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -6845,16 +6418,12 @@ bool Type39PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type39PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -6863,18 +6432,14 @@ bool Type39PubSubType::deserialize( Type39* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -6887,143 +6452,139 @@ bool Type39PubSubType::deserialize( return true; } -std::function Type39PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type39PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type39PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type39PubSubType::create_data() { return reinterpret_cast(new Type39()); } -void Type39PubSubType::deleteData( +void Type39PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type39PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type39PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type39* p_type = static_cast(data); + Type39 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type39PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type39* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type39_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type39_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type39PubSubType::register_type_object_representation() const +void Type39PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type39_type_identifier(type_identifiers_); } Type40PubSubType::Type40PubSubType() { - setName("Type40"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type40::getMaxCdrSerializedSize()); -#else - Type40_max_cdr_typesize; -#endif + set_name("Type40"); + uint32_t type_size = Type40_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type40_max_key_cdr_typesize > 16 ? Type40_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type40_max_key_cdr_typesize > 16 ? Type40_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type40PubSubType::~Type40PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type40PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type40* p_type = static_cast(data); + const Type40* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -7038,16 +6599,12 @@ bool Type40PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type40PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -7056,18 +6613,14 @@ bool Type40PubSubType::deserialize( Type40* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -7080,143 +6633,139 @@ bool Type40PubSubType::deserialize( return true; } -std::function Type40PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type40PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type40PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type40PubSubType::create_data() { return reinterpret_cast(new Type40()); } -void Type40PubSubType::deleteData( +void Type40PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type40PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type40PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type40* p_type = static_cast(data); + Type40 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type40PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type40* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type40_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type40_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type40PubSubType::register_type_object_representation() const +void Type40PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type40_type_identifier(type_identifiers_); } Type41PubSubType::Type41PubSubType() { - setName("Type41"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type41::getMaxCdrSerializedSize()); -#else - Type41_max_cdr_typesize; -#endif + set_name("Type41"); + uint32_t type_size = Type41_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type41_max_key_cdr_typesize > 16 ? Type41_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type41_max_key_cdr_typesize > 16 ? Type41_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type41PubSubType::~Type41PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type41PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type41* p_type = static_cast(data); + const Type41* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -7231,16 +6780,12 @@ bool Type41PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type41PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -7249,18 +6794,14 @@ bool Type41PubSubType::deserialize( Type41* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -7273,143 +6814,139 @@ bool Type41PubSubType::deserialize( return true; } -std::function Type41PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type41PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type41PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type41PubSubType::create_data() { return reinterpret_cast(new Type41()); } -void Type41PubSubType::deleteData( +void Type41PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type41PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type41PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type41* p_type = static_cast(data); + Type41 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type41PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type41* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type41_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type41_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type41PubSubType::register_type_object_representation() const +void Type41PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type41_type_identifier(type_identifiers_); } Type42PubSubType::Type42PubSubType() { - setName("Type42"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type42::getMaxCdrSerializedSize()); -#else - Type42_max_cdr_typesize; -#endif + set_name("Type42"); + uint32_t type_size = Type42_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type42_max_key_cdr_typesize > 16 ? Type42_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type42_max_key_cdr_typesize > 16 ? Type42_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type42PubSubType::~Type42PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type42PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type42* p_type = static_cast(data); + const Type42* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -7424,16 +6961,12 @@ bool Type42PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type42PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -7442,18 +6975,14 @@ bool Type42PubSubType::deserialize( Type42* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -7466,143 +6995,139 @@ bool Type42PubSubType::deserialize( return true; } -std::function Type42PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type42PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type42PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type42PubSubType::create_data() { return reinterpret_cast(new Type42()); } -void Type42PubSubType::deleteData( +void Type42PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type42PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type42PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type42* p_type = static_cast(data); + Type42 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type42PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type42* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type42_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type42_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type42PubSubType::register_type_object_representation() const +void Type42PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type42_type_identifier(type_identifiers_); } Type43PubSubType::Type43PubSubType() { - setName("Type43"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type43::getMaxCdrSerializedSize()); -#else - Type43_max_cdr_typesize; -#endif + set_name("Type43"); + uint32_t type_size = Type43_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type43_max_key_cdr_typesize > 16 ? Type43_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type43_max_key_cdr_typesize > 16 ? Type43_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type43PubSubType::~Type43PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type43PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type43* p_type = static_cast(data); + const Type43* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -7617,16 +7142,12 @@ bool Type43PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type43PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -7635,18 +7156,14 @@ bool Type43PubSubType::deserialize( Type43* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -7659,143 +7176,139 @@ bool Type43PubSubType::deserialize( return true; } -std::function Type43PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type43PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type43PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type43PubSubType::create_data() { return reinterpret_cast(new Type43()); } -void Type43PubSubType::deleteData( +void Type43PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type43PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type43PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type43* p_type = static_cast(data); + Type43 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type43PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type43* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type43_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type43_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type43PubSubType::register_type_object_representation() const +void Type43PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type43_type_identifier(type_identifiers_); } Type44PubSubType::Type44PubSubType() { - setName("Type44"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type44::getMaxCdrSerializedSize()); -#else - Type44_max_cdr_typesize; -#endif + set_name("Type44"); + uint32_t type_size = Type44_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type44_max_key_cdr_typesize > 16 ? Type44_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type44_max_key_cdr_typesize > 16 ? Type44_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type44PubSubType::~Type44PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type44PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type44* p_type = static_cast(data); + const Type44* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -7810,16 +7323,12 @@ bool Type44PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type44PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -7828,18 +7337,14 @@ bool Type44PubSubType::deserialize( Type44* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -7852,143 +7357,139 @@ bool Type44PubSubType::deserialize( return true; } -std::function Type44PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type44PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type44PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type44PubSubType::create_data() { return reinterpret_cast(new Type44()); } -void Type44PubSubType::deleteData( +void Type44PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type44PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type44PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type44 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type44PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type44* p_type = static_cast(data); + const Type44* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type44_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type44_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type44PubSubType::register_type_object_representation() const +void Type44PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type44_type_identifier(type_identifiers_); } Type45PubSubType::Type45PubSubType() { - setName("Type45"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type45::getMaxCdrSerializedSize()); -#else - Type45_max_cdr_typesize; -#endif + set_name("Type45"); + uint32_t type_size = Type45_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type45_max_key_cdr_typesize > 16 ? Type45_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type45_max_key_cdr_typesize > 16 ? Type45_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type45PubSubType::~Type45PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type45PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type45* p_type = static_cast(data); + const Type45* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -8003,16 +7504,12 @@ bool Type45PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type45PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -8021,18 +7518,14 @@ bool Type45PubSubType::deserialize( Type45* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -8045,143 +7538,139 @@ bool Type45PubSubType::deserialize( return true; } -std::function Type45PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type45PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type45PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type45PubSubType::create_data() { return reinterpret_cast(new Type45()); } -void Type45PubSubType::deleteData( +void Type45PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type45PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type45PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type45* p_type = static_cast(data); + Type45 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type45PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type45* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type45_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type45_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type45PubSubType::register_type_object_representation() const +void Type45PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type45_type_identifier(type_identifiers_); } Type46PubSubType::Type46PubSubType() { - setName("Type46"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type46::getMaxCdrSerializedSize()); -#else - Type46_max_cdr_typesize; -#endif + set_name("Type46"); + uint32_t type_size = Type46_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type46_max_key_cdr_typesize > 16 ? Type46_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type46_max_key_cdr_typesize > 16 ? Type46_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type46PubSubType::~Type46PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type46PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type46* p_type = static_cast(data); + const Type46* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -8196,16 +7685,12 @@ bool Type46PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type46PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -8214,18 +7699,14 @@ bool Type46PubSubType::deserialize( Type46* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -8238,143 +7719,139 @@ bool Type46PubSubType::deserialize( return true; } -std::function Type46PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type46PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type46PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type46PubSubType::create_data() { return reinterpret_cast(new Type46()); } -void Type46PubSubType::deleteData( +void Type46PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type46PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type46PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type46* p_type = static_cast(data); + Type46 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type46PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type46* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type46_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type46_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type46PubSubType::register_type_object_representation() const +void Type46PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type46_type_identifier(type_identifiers_); } Type47PubSubType::Type47PubSubType() { - setName("Type47"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type47::getMaxCdrSerializedSize()); -#else - Type47_max_cdr_typesize; -#endif + set_name("Type47"); + uint32_t type_size = Type47_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type47_max_key_cdr_typesize > 16 ? Type47_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type47_max_key_cdr_typesize > 16 ? Type47_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type47PubSubType::~Type47PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type47PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type47* p_type = static_cast(data); + const Type47* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -8389,16 +7866,12 @@ bool Type47PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type47PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -8407,18 +7880,14 @@ bool Type47PubSubType::deserialize( Type47* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -8431,143 +7900,139 @@ bool Type47PubSubType::deserialize( return true; } -std::function Type47PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type47PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type47PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type47PubSubType::create_data() { return reinterpret_cast(new Type47()); } -void Type47PubSubType::deleteData( +void Type47PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type47PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type47PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type47 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type47PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type47* p_type = static_cast(data); + const Type47* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type47_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type47_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type47PubSubType::register_type_object_representation() const +void Type47PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type47_type_identifier(type_identifiers_); } Type48PubSubType::Type48PubSubType() { - setName("Type48"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type48::getMaxCdrSerializedSize()); -#else - Type48_max_cdr_typesize; -#endif + set_name("Type48"); + uint32_t type_size = Type48_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type48_max_key_cdr_typesize > 16 ? Type48_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type48_max_key_cdr_typesize > 16 ? Type48_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type48PubSubType::~Type48PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type48PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type48* p_type = static_cast(data); + const Type48* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -8582,16 +8047,12 @@ bool Type48PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type48PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -8600,18 +8061,14 @@ bool Type48PubSubType::deserialize( Type48* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -8624,143 +8081,139 @@ bool Type48PubSubType::deserialize( return true; } -std::function Type48PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type48PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type48PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type48PubSubType::create_data() { return reinterpret_cast(new Type48()); } -void Type48PubSubType::deleteData( +void Type48PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type48PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type48PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type48* p_type = static_cast(data); + Type48 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type48PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type48* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type48_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type48_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type48PubSubType::register_type_object_representation() const +void Type48PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type48_type_identifier(type_identifiers_); } Type49PubSubType::Type49PubSubType() { - setName("Type49"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type49::getMaxCdrSerializedSize()); -#else - Type49_max_cdr_typesize; -#endif + set_name("Type49"); + uint32_t type_size = Type49_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type49_max_key_cdr_typesize > 16 ? Type49_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type49_max_key_cdr_typesize > 16 ? Type49_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type49PubSubType::~Type49PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type49PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type49* p_type = static_cast(data); + const Type49* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -8775,16 +8228,12 @@ bool Type49PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type49PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -8793,18 +8242,14 @@ bool Type49PubSubType::deserialize( Type49* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -8817,143 +8262,139 @@ bool Type49PubSubType::deserialize( return true; } -std::function Type49PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type49PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type49PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type49PubSubType::create_data() { return reinterpret_cast(new Type49()); } -void Type49PubSubType::deleteData( +void Type49PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type49PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type49PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type49* p_type = static_cast(data); + Type49 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type49PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type49* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type49_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type49_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type49PubSubType::register_type_object_representation() const +void Type49PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type49_type_identifier(type_identifiers_); } Type50PubSubType::Type50PubSubType() { - setName("Type50"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type50::getMaxCdrSerializedSize()); -#else - Type50_max_cdr_typesize; -#endif + set_name("Type50"); + uint32_t type_size = Type50_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type50_max_key_cdr_typesize > 16 ? Type50_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type50_max_key_cdr_typesize > 16 ? Type50_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type50PubSubType::~Type50PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type50PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type50* p_type = static_cast(data); + const Type50* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -8968,16 +8409,12 @@ bool Type50PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type50PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -8986,18 +8423,14 @@ bool Type50PubSubType::deserialize( Type50* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -9010,143 +8443,139 @@ bool Type50PubSubType::deserialize( return true; } -std::function Type50PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type50PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type50PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type50PubSubType::create_data() { return reinterpret_cast(new Type50()); } -void Type50PubSubType::deleteData( +void Type50PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type50PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type50PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type50 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type50PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type50* p_type = static_cast(data); + const Type50* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type50_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type50_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type50PubSubType::register_type_object_representation() const +void Type50PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type50_type_identifier(type_identifiers_); } Type51PubSubType::Type51PubSubType() { - setName("Type51"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type51::getMaxCdrSerializedSize()); -#else - Type51_max_cdr_typesize; -#endif + set_name("Type51"); + uint32_t type_size = Type51_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type51_max_key_cdr_typesize > 16 ? Type51_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type51_max_key_cdr_typesize > 16 ? Type51_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type51PubSubType::~Type51PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type51PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type51* p_type = static_cast(data); + const Type51* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -9161,16 +8590,12 @@ bool Type51PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type51PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -9179,18 +8604,14 @@ bool Type51PubSubType::deserialize( Type51* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -9203,143 +8624,139 @@ bool Type51PubSubType::deserialize( return true; } -std::function Type51PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type51PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type51PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type51PubSubType::create_data() { return reinterpret_cast(new Type51()); } -void Type51PubSubType::deleteData( - void* data) -{ - delete(reinterpret_cast(data)); +void Type51PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type51PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type51 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; } -bool Type51PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type51PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type51* p_type = static_cast(data); + const Type51* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type51_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type51_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type51PubSubType::register_type_object_representation() const +void Type51PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type51_type_identifier(type_identifiers_); } Type52PubSubType::Type52PubSubType() { - setName("Type52"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type52::getMaxCdrSerializedSize()); -#else - Type52_max_cdr_typesize; -#endif + set_name("Type52"); + uint32_t type_size = Type52_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type52_max_key_cdr_typesize > 16 ? Type52_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type52_max_key_cdr_typesize > 16 ? Type52_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type52PubSubType::~Type52PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type52PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type52* p_type = static_cast(data); + const Type52* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -9354,16 +8771,12 @@ bool Type52PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type52PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -9372,18 +8785,14 @@ bool Type52PubSubType::deserialize( Type52* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -9396,143 +8805,139 @@ bool Type52PubSubType::deserialize( return true; } -std::function Type52PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type52PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type52PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type52PubSubType::create_data() { return reinterpret_cast(new Type52()); } -void Type52PubSubType::deleteData( +void Type52PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type52PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type52PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type52 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type52PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type52* p_type = static_cast(data); + const Type52* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type52_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type52_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type52PubSubType::register_type_object_representation() const +void Type52PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type52_type_identifier(type_identifiers_); } Type53PubSubType::Type53PubSubType() { - setName("Type53"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type53::getMaxCdrSerializedSize()); -#else - Type53_max_cdr_typesize; -#endif + set_name("Type53"); + uint32_t type_size = Type53_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type53_max_key_cdr_typesize > 16 ? Type53_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type53_max_key_cdr_typesize > 16 ? Type53_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type53PubSubType::~Type53PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type53PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type53* p_type = static_cast(data); + const Type53* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -9547,16 +8952,12 @@ bool Type53PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type53PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -9565,18 +8966,14 @@ bool Type53PubSubType::deserialize( Type53* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -9589,143 +8986,139 @@ bool Type53PubSubType::deserialize( return true; } -std::function Type53PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type53PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type53PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type53PubSubType::create_data() { return reinterpret_cast(new Type53()); } -void Type53PubSubType::deleteData( +void Type53PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type53PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type53PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type53 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type53PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type53* p_type = static_cast(data); + const Type53* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type53_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type53_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type53PubSubType::register_type_object_representation() const +void Type53PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type53_type_identifier(type_identifiers_); } Type54PubSubType::Type54PubSubType() { - setName("Type54"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type54::getMaxCdrSerializedSize()); -#else - Type54_max_cdr_typesize; -#endif + set_name("Type54"); + uint32_t type_size = Type54_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type54_max_key_cdr_typesize > 16 ? Type54_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type54_max_key_cdr_typesize > 16 ? Type54_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type54PubSubType::~Type54PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type54PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type54* p_type = static_cast(data); + const Type54* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -9740,16 +9133,12 @@ bool Type54PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type54PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -9758,18 +9147,14 @@ bool Type54PubSubType::deserialize( Type54* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -9782,143 +9167,139 @@ bool Type54PubSubType::deserialize( return true; } -std::function Type54PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type54PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type54PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type54PubSubType::create_data() { return reinterpret_cast(new Type54()); } -void Type54PubSubType::deleteData( +void Type54PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type54PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type54PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type54 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type54PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type54* p_type = static_cast(data); + const Type54* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type54_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type54_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type54PubSubType::register_type_object_representation() const +void Type54PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type54_type_identifier(type_identifiers_); } Type55PubSubType::Type55PubSubType() { - setName("Type55"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type55::getMaxCdrSerializedSize()); -#else - Type55_max_cdr_typesize; -#endif + set_name("Type55"); + uint32_t type_size = Type55_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type55_max_key_cdr_typesize > 16 ? Type55_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type55_max_key_cdr_typesize > 16 ? Type55_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type55PubSubType::~Type55PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type55PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type55* p_type = static_cast(data); + const Type55* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -9933,16 +9314,12 @@ bool Type55PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type55PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -9951,18 +9328,14 @@ bool Type55PubSubType::deserialize( Type55* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -9975,143 +9348,139 @@ bool Type55PubSubType::deserialize( return true; } -std::function Type55PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type55PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type55PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type55PubSubType::create_data() { return reinterpret_cast(new Type55()); } -void Type55PubSubType::deleteData( +void Type55PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type55PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type55PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type55 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type55PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type55* p_type = static_cast(data); + const Type55* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type55_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type55_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type55PubSubType::register_type_object_representation() const +void Type55PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type55_type_identifier(type_identifiers_); } Type56PubSubType::Type56PubSubType() { - setName("Type56"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type56::getMaxCdrSerializedSize()); -#else - Type56_max_cdr_typesize; -#endif + set_name("Type56"); + uint32_t type_size = Type56_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type56_max_key_cdr_typesize > 16 ? Type56_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type56_max_key_cdr_typesize > 16 ? Type56_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type56PubSubType::~Type56PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type56PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type56* p_type = static_cast(data); + const Type56* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -10126,16 +9495,12 @@ bool Type56PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type56PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -10144,18 +9509,14 @@ bool Type56PubSubType::deserialize( Type56* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -10168,143 +9529,139 @@ bool Type56PubSubType::deserialize( return true; } -std::function Type56PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type56PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type56PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type56PubSubType::create_data() { return reinterpret_cast(new Type56()); } -void Type56PubSubType::deleteData( +void Type56PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type56PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type56PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type56 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type56PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type56* p_type = static_cast(data); + const Type56* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type56_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type56_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type56PubSubType::register_type_object_representation() const +void Type56PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type56_type_identifier(type_identifiers_); } Type57PubSubType::Type57PubSubType() { - setName("Type57"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type57::getMaxCdrSerializedSize()); -#else - Type57_max_cdr_typesize; -#endif + set_name("Type57"); + uint32_t type_size = Type57_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type57_max_key_cdr_typesize > 16 ? Type57_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type57_max_key_cdr_typesize > 16 ? Type57_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type57PubSubType::~Type57PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type57PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type57* p_type = static_cast(data); + const Type57* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -10319,16 +9676,12 @@ bool Type57PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type57PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -10337,18 +9690,14 @@ bool Type57PubSubType::deserialize( Type57* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -10361,143 +9710,139 @@ bool Type57PubSubType::deserialize( return true; } -std::function Type57PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type57PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type57PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type57PubSubType::create_data() { return reinterpret_cast(new Type57()); } -void Type57PubSubType::deleteData( +void Type57PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type57PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type57PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type57 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type57PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type57* p_type = static_cast(data); + const Type57* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type57_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type57_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type57PubSubType::register_type_object_representation() const +void Type57PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type57_type_identifier(type_identifiers_); } Type58PubSubType::Type58PubSubType() { - setName("Type58"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type58::getMaxCdrSerializedSize()); -#else - Type58_max_cdr_typesize; -#endif + set_name("Type58"); + uint32_t type_size = Type58_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type58_max_key_cdr_typesize > 16 ? Type58_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type58_max_key_cdr_typesize > 16 ? Type58_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type58PubSubType::~Type58PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type58PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type58* p_type = static_cast(data); + const Type58* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -10512,16 +9857,12 @@ bool Type58PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type58PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -10530,18 +9871,14 @@ bool Type58PubSubType::deserialize( Type58* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -10554,143 +9891,139 @@ bool Type58PubSubType::deserialize( return true; } -std::function Type58PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type58PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type58PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type58PubSubType::create_data() { return reinterpret_cast(new Type58()); } -void Type58PubSubType::deleteData( +void Type58PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type58PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type58PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type58 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type58PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type58* p_type = static_cast(data); + const Type58* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type58_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type58_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type58PubSubType::register_type_object_representation() const +void Type58PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type58_type_identifier(type_identifiers_); } Type59PubSubType::Type59PubSubType() { - setName("Type59"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type59::getMaxCdrSerializedSize()); -#else - Type59_max_cdr_typesize; -#endif + set_name("Type59"); + uint32_t type_size = Type59_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type59_max_key_cdr_typesize > 16 ? Type59_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type59_max_key_cdr_typesize > 16 ? Type59_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type59PubSubType::~Type59PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type59PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type59* p_type = static_cast(data); + const Type59* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -10705,16 +10038,12 @@ bool Type59PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type59PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -10723,18 +10052,14 @@ bool Type59PubSubType::deserialize( Type59* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -10747,143 +10072,139 @@ bool Type59PubSubType::deserialize( return true; } -std::function Type59PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type59PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type59PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type59PubSubType::create_data() { return reinterpret_cast(new Type59()); } -void Type59PubSubType::deleteData( +void Type59PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type59PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type59PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type59 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type59PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type59* p_type = static_cast(data); + const Type59* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type59_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type59_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type59PubSubType::register_type_object_representation() const +void Type59PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type59_type_identifier(type_identifiers_); } Type60PubSubType::Type60PubSubType() { - setName("Type60"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type60::getMaxCdrSerializedSize()); -#else - Type60_max_cdr_typesize; -#endif + set_name("Type60"); + uint32_t type_size = Type60_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type60_max_key_cdr_typesize > 16 ? Type60_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type60_max_key_cdr_typesize > 16 ? Type60_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type60PubSubType::~Type60PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type60PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type60* p_type = static_cast(data); + const Type60* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -10898,16 +10219,12 @@ bool Type60PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type60PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -10916,18 +10233,14 @@ bool Type60PubSubType::deserialize( Type60* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -10940,143 +10253,139 @@ bool Type60PubSubType::deserialize( return true; } -std::function Type60PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type60PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type60PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type60PubSubType::create_data() { return reinterpret_cast(new Type60()); } -void Type60PubSubType::deleteData( +void Type60PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type60PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type60PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type60 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type60PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type60* p_type = static_cast(data); + const Type60* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type60_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type60_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type60PubSubType::register_type_object_representation() const +void Type60PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type60_type_identifier(type_identifiers_); } Type61PubSubType::Type61PubSubType() { - setName("Type61"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type61::getMaxCdrSerializedSize()); -#else - Type61_max_cdr_typesize; -#endif + set_name("Type61"); + uint32_t type_size = Type61_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type61_max_key_cdr_typesize > 16 ? Type61_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type61_max_key_cdr_typesize > 16 ? Type61_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type61PubSubType::~Type61PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type61PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type61* p_type = static_cast(data); + const Type61* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -11091,16 +10400,12 @@ bool Type61PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type61PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -11109,18 +10414,14 @@ bool Type61PubSubType::deserialize( Type61* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -11133,143 +10434,139 @@ bool Type61PubSubType::deserialize( return true; } -std::function Type61PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type61PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type61PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type61PubSubType::create_data() { return reinterpret_cast(new Type61()); } -void Type61PubSubType::deleteData( +void Type61PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type61PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type61PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type61 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type61PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type61* p_type = static_cast(data); + const Type61* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type61_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type61_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type61PubSubType::register_type_object_representation() const +void Type61PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type61_type_identifier(type_identifiers_); } Type62PubSubType::Type62PubSubType() { - setName("Type62"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type62::getMaxCdrSerializedSize()); -#else - Type62_max_cdr_typesize; -#endif + set_name("Type62"); + uint32_t type_size = Type62_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type62_max_key_cdr_typesize > 16 ? Type62_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type62_max_key_cdr_typesize > 16 ? Type62_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type62PubSubType::~Type62PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type62PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type62* p_type = static_cast(data); + const Type62* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -11284,16 +10581,12 @@ bool Type62PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type62PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -11302,18 +10595,14 @@ bool Type62PubSubType::deserialize( Type62* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -11326,143 +10615,139 @@ bool Type62PubSubType::deserialize( return true; } -std::function Type62PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type62PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type62PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type62PubSubType::create_data() { return reinterpret_cast(new Type62()); } -void Type62PubSubType::deleteData( +void Type62PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type62PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type62PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type62 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type62PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type62* p_type = static_cast(data); + const Type62* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type62_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type62_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type62PubSubType::register_type_object_representation() const +void Type62PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type62_type_identifier(type_identifiers_); } Type63PubSubType::Type63PubSubType() { - setName("Type63"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type63::getMaxCdrSerializedSize()); -#else - Type63_max_cdr_typesize; -#endif + set_name("Type63"); + uint32_t type_size = Type63_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type63_max_key_cdr_typesize > 16 ? Type63_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type63_max_key_cdr_typesize > 16 ? Type63_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type63PubSubType::~Type63PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type63PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type63* p_type = static_cast(data); + const Type63* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -11477,16 +10762,12 @@ bool Type63PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type63PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -11495,18 +10776,14 @@ bool Type63PubSubType::deserialize( Type63* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -11519,143 +10796,139 @@ bool Type63PubSubType::deserialize( return true; } -std::function Type63PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type63PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type63PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type63PubSubType::create_data() { return reinterpret_cast(new Type63()); } -void Type63PubSubType::deleteData( +void Type63PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type63PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type63PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type63 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type63PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type63* p_type = static_cast(data); + const Type63* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type63_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type63_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type63PubSubType::register_type_object_representation() const +void Type63PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type63_type_identifier(type_identifiers_); } Type64PubSubType::Type64PubSubType() { - setName("Type64"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type64::getMaxCdrSerializedSize()); -#else - Type64_max_cdr_typesize; -#endif + set_name("Type64"); + uint32_t type_size = Type64_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type64_max_key_cdr_typesize > 16 ? Type64_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type64_max_key_cdr_typesize > 16 ? Type64_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type64PubSubType::~Type64PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type64PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type64* p_type = static_cast(data); + const Type64* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -11670,16 +10943,12 @@ bool Type64PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type64PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -11688,167 +10957,159 @@ bool Type64PubSubType::deserialize( Type64* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; } catch (eprosima::fastcdr::exception::Exception& /*exception*/) { - return false; + return false; + } + + return true; +} + +uint32_t Type64PubSubType::calculate_serialized_size( + const void* const data, + DataRepresentationId_t data_representation) +{ + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; } - - return true; } -std::function Type64PubSubType::getSerializedSizeProvider( - void* data, - DataRepresentationId_t data_representation) -{ - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type64PubSubType::createData() +void* Type64PubSubType::create_data() { return reinterpret_cast(new Type64()); } -void Type64PubSubType::deleteData( +void Type64PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type64PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type64PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type64 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type64PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type64* p_type = static_cast(data); + const Type64* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type64_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type64_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type64PubSubType::register_type_object_representation() const +void Type64PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type64_type_identifier(type_identifiers_); } Type65PubSubType::Type65PubSubType() { - setName("Type65"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type65::getMaxCdrSerializedSize()); -#else - Type65_max_cdr_typesize; -#endif + set_name("Type65"); + uint32_t type_size = Type65_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type65_max_key_cdr_typesize > 16 ? Type65_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type65_max_key_cdr_typesize > 16 ? Type65_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type65PubSubType::~Type65PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type65PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type65* p_type = static_cast(data); + const Type65* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -11863,16 +11124,12 @@ bool Type65PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type65PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -11881,18 +11138,14 @@ bool Type65PubSubType::deserialize( Type65* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -11905,143 +11158,139 @@ bool Type65PubSubType::deserialize( return true; } -std::function Type65PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type65PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type65PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type65PubSubType::create_data() { return reinterpret_cast(new Type65()); } -void Type65PubSubType::deleteData( +void Type65PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type65PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type65PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type65 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type65PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type65* p_type = static_cast(data); + const Type65* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type65_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type65_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type65PubSubType::register_type_object_representation() const +void Type65PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type65_type_identifier(type_identifiers_); } Type66PubSubType::Type66PubSubType() { - setName("Type66"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type66::getMaxCdrSerializedSize()); -#else - Type66_max_cdr_typesize; -#endif + set_name("Type66"); + uint32_t type_size = Type66_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type66_max_key_cdr_typesize > 16 ? Type66_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type66_max_key_cdr_typesize > 16 ? Type66_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type66PubSubType::~Type66PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type66PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type66* p_type = static_cast(data); + const Type66* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -12056,16 +11305,12 @@ bool Type66PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type66PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -12074,18 +11319,14 @@ bool Type66PubSubType::deserialize( Type66* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -12098,143 +11339,139 @@ bool Type66PubSubType::deserialize( return true; } -std::function Type66PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type66PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type66PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type66PubSubType::create_data() { return reinterpret_cast(new Type66()); } -void Type66PubSubType::deleteData( +void Type66PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type66PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type66PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type66 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type66PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type66* p_type = static_cast(data); + const Type66* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type66_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type66_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type66PubSubType::register_type_object_representation() const +void Type66PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type66_type_identifier(type_identifiers_); } Type67PubSubType::Type67PubSubType() { - setName("Type67"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type67::getMaxCdrSerializedSize()); -#else - Type67_max_cdr_typesize; -#endif + set_name("Type67"); + uint32_t type_size = Type67_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type67_max_key_cdr_typesize > 16 ? Type67_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type67_max_key_cdr_typesize > 16 ? Type67_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type67PubSubType::~Type67PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type67PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type67* p_type = static_cast(data); + const Type67* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -12249,16 +11486,12 @@ bool Type67PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type67PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -12267,18 +11500,14 @@ bool Type67PubSubType::deserialize( Type67* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -12291,143 +11520,139 @@ bool Type67PubSubType::deserialize( return true; } -std::function Type67PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type67PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type67PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type67PubSubType::create_data() { return reinterpret_cast(new Type67()); } -void Type67PubSubType::deleteData( +void Type67PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type67PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type67PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type67 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type67PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type67* p_type = static_cast(data); + const Type67* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type67_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type67_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type67PubSubType::register_type_object_representation() const +void Type67PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type67_type_identifier(type_identifiers_); } Type68PubSubType::Type68PubSubType() { - setName("Type68"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type68::getMaxCdrSerializedSize()); -#else - Type68_max_cdr_typesize; -#endif + set_name("Type68"); + uint32_t type_size = Type68_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type68_max_key_cdr_typesize > 16 ? Type68_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type68_max_key_cdr_typesize > 16 ? Type68_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type68PubSubType::~Type68PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type68PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type68* p_type = static_cast(data); + const Type68* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -12442,16 +11667,12 @@ bool Type68PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type68PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -12460,18 +11681,14 @@ bool Type68PubSubType::deserialize( Type68* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -12484,143 +11701,139 @@ bool Type68PubSubType::deserialize( return true; } -std::function Type68PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type68PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type68PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type68PubSubType::create_data() { return reinterpret_cast(new Type68()); } -void Type68PubSubType::deleteData( +void Type68PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type68PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type68PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type68 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type68PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type68* p_type = static_cast(data); + const Type68* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type68_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type68_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type68PubSubType::register_type_object_representation() const +void Type68PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type68_type_identifier(type_identifiers_); } Type69PubSubType::Type69PubSubType() { - setName("Type69"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type69::getMaxCdrSerializedSize()); -#else - Type69_max_cdr_typesize; -#endif + set_name("Type69"); + uint32_t type_size = Type69_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type69_max_key_cdr_typesize > 16 ? Type69_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type69_max_key_cdr_typesize > 16 ? Type69_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type69PubSubType::~Type69PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type69PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type69* p_type = static_cast(data); + const Type69* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -12635,16 +11848,12 @@ bool Type69PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type69PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -12653,18 +11862,14 @@ bool Type69PubSubType::deserialize( Type69* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -12677,143 +11882,139 @@ bool Type69PubSubType::deserialize( return true; } -std::function Type69PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type69PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type69PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type69PubSubType::create_data() { return reinterpret_cast(new Type69()); } -void Type69PubSubType::deleteData( +void Type69PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type69PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type69PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type69 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type69PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type69* p_type = static_cast(data); + const Type69* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type69_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type69_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type69PubSubType::register_type_object_representation() const +void Type69PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type69_type_identifier(type_identifiers_); } Type70PubSubType::Type70PubSubType() { - setName("Type70"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type70::getMaxCdrSerializedSize()); -#else - Type70_max_cdr_typesize; -#endif + set_name("Type70"); + uint32_t type_size = Type70_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type70_max_key_cdr_typesize > 16 ? Type70_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type70_max_key_cdr_typesize > 16 ? Type70_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type70PubSubType::~Type70PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type70PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type70* p_type = static_cast(data); + const Type70* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -12828,16 +12029,12 @@ bool Type70PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type70PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -12846,18 +12043,14 @@ bool Type70PubSubType::deserialize( Type70* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -12870,143 +12063,139 @@ bool Type70PubSubType::deserialize( return true; } -std::function Type70PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type70PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type70PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type70PubSubType::create_data() { return reinterpret_cast(new Type70()); } -void Type70PubSubType::deleteData( +void Type70PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type70PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type70PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type70 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type70PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type70* p_type = static_cast(data); + const Type70* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type70_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type70_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type70PubSubType::register_type_object_representation() const +void Type70PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type70_type_identifier(type_identifiers_); } Type71PubSubType::Type71PubSubType() { - setName("Type71"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type71::getMaxCdrSerializedSize()); -#else - Type71_max_cdr_typesize; -#endif + set_name("Type71"); + uint32_t type_size = Type71_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type71_max_key_cdr_typesize > 16 ? Type71_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type71_max_key_cdr_typesize > 16 ? Type71_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type71PubSubType::~Type71PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type71PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type71* p_type = static_cast(data); + const Type71* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -13021,16 +12210,12 @@ bool Type71PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type71PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -13039,18 +12224,14 @@ bool Type71PubSubType::deserialize( Type71* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -13063,143 +12244,139 @@ bool Type71PubSubType::deserialize( return true; } -std::function Type71PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type71PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type71PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type71PubSubType::create_data() { return reinterpret_cast(new Type71()); } -void Type71PubSubType::deleteData( +void Type71PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type71PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type71PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type71 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type71PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type71* p_type = static_cast(data); + const Type71* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type71_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type71_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type71PubSubType::register_type_object_representation() const +void Type71PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type71_type_identifier(type_identifiers_); } Type72PubSubType::Type72PubSubType() { - setName("Type72"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type72::getMaxCdrSerializedSize()); -#else - Type72_max_cdr_typesize; -#endif + set_name("Type72"); + uint32_t type_size = Type72_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type72_max_key_cdr_typesize > 16 ? Type72_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type72_max_key_cdr_typesize > 16 ? Type72_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type72PubSubType::~Type72PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type72PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type72* p_type = static_cast(data); + const Type72* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -13214,16 +12391,12 @@ bool Type72PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type72PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -13232,18 +12405,14 @@ bool Type72PubSubType::deserialize( Type72* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -13256,143 +12425,139 @@ bool Type72PubSubType::deserialize( return true; } -std::function Type72PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type72PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type72PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type72PubSubType::create_data() { return reinterpret_cast(new Type72()); } -void Type72PubSubType::deleteData( +void Type72PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type72PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type72PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type72 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type72PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type72* p_type = static_cast(data); + const Type72* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type72_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type72_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type72PubSubType::register_type_object_representation() const +void Type72PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type72_type_identifier(type_identifiers_); } Type73PubSubType::Type73PubSubType() { - setName("Type73"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type73::getMaxCdrSerializedSize()); -#else - Type73_max_cdr_typesize; -#endif + set_name("Type73"); + uint32_t type_size = Type73_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type73_max_key_cdr_typesize > 16 ? Type73_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type73_max_key_cdr_typesize > 16 ? Type73_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type73PubSubType::~Type73PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type73PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type73* p_type = static_cast(data); + const Type73* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -13407,16 +12572,12 @@ bool Type73PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type73PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -13425,18 +12586,14 @@ bool Type73PubSubType::deserialize( Type73* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -13449,143 +12606,139 @@ bool Type73PubSubType::deserialize( return true; } -std::function Type73PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type73PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type73PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type73PubSubType::create_data() { return reinterpret_cast(new Type73()); } -void Type73PubSubType::deleteData( +void Type73PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type73PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type73PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type73 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type73PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type73* p_type = static_cast(data); + const Type73* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type73_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type73_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type73PubSubType::register_type_object_representation() const +void Type73PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type73_type_identifier(type_identifiers_); } Type74PubSubType::Type74PubSubType() { - setName("Type74"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type74::getMaxCdrSerializedSize()); -#else - Type74_max_cdr_typesize; -#endif + set_name("Type74"); + uint32_t type_size = Type74_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type74_max_key_cdr_typesize > 16 ? Type74_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type74_max_key_cdr_typesize > 16 ? Type74_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type74PubSubType::~Type74PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type74PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type74* p_type = static_cast(data); + const Type74* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -13600,16 +12753,12 @@ bool Type74PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type74PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -13618,18 +12767,14 @@ bool Type74PubSubType::deserialize( Type74* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -13642,143 +12787,139 @@ bool Type74PubSubType::deserialize( return true; } -std::function Type74PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type74PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type74PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type74PubSubType::create_data() { return reinterpret_cast(new Type74()); } -void Type74PubSubType::deleteData( +void Type74PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type74PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type74PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type74 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type74PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type74* p_type = static_cast(data); + const Type74* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type74_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type74_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type74PubSubType::register_type_object_representation() const +void Type74PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type74_type_identifier(type_identifiers_); } Type75PubSubType::Type75PubSubType() { - setName("Type75"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type75::getMaxCdrSerializedSize()); -#else - Type75_max_cdr_typesize; -#endif + set_name("Type75"); + uint32_t type_size = Type75_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type75_max_key_cdr_typesize > 16 ? Type75_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type75_max_key_cdr_typesize > 16 ? Type75_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type75PubSubType::~Type75PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type75PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type75* p_type = static_cast(data); + const Type75* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -13793,16 +12934,12 @@ bool Type75PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type75PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -13811,18 +12948,14 @@ bool Type75PubSubType::deserialize( Type75* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -13835,143 +12968,139 @@ bool Type75PubSubType::deserialize( return true; } -std::function Type75PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type75PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type75PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type75PubSubType::create_data() { return reinterpret_cast(new Type75()); } -void Type75PubSubType::deleteData( +void Type75PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type75PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type75PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type75 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type75PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type75* p_type = static_cast(data); + const Type75* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type75_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type75_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type75PubSubType::register_type_object_representation() const +void Type75PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type75_type_identifier(type_identifiers_); } Type76PubSubType::Type76PubSubType() { - setName("Type76"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type76::getMaxCdrSerializedSize()); -#else - Type76_max_cdr_typesize; -#endif + set_name("Type76"); + uint32_t type_size = Type76_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type76_max_key_cdr_typesize > 16 ? Type76_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type76_max_key_cdr_typesize > 16 ? Type76_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type76PubSubType::~Type76PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type76PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type76* p_type = static_cast(data); + const Type76* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -13986,16 +13115,12 @@ bool Type76PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type76PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -14004,18 +13129,14 @@ bool Type76PubSubType::deserialize( Type76* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -14028,143 +13149,139 @@ bool Type76PubSubType::deserialize( return true; } -std::function Type76PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type76PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type76PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type76PubSubType::create_data() { return reinterpret_cast(new Type76()); } -void Type76PubSubType::deleteData( +void Type76PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type76PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type76PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type76 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type76PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type76* p_type = static_cast(data); + const Type76* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type76_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type76_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type76PubSubType::register_type_object_representation() const +void Type76PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type76_type_identifier(type_identifiers_); } Type77PubSubType::Type77PubSubType() { - setName("Type77"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type77::getMaxCdrSerializedSize()); -#else - Type77_max_cdr_typesize; -#endif + set_name("Type77"); + uint32_t type_size = Type77_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type77_max_key_cdr_typesize > 16 ? Type77_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type77_max_key_cdr_typesize > 16 ? Type77_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type77PubSubType::~Type77PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type77PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type77* p_type = static_cast(data); + const Type77* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -14179,16 +13296,12 @@ bool Type77PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type77PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -14197,18 +13310,14 @@ bool Type77PubSubType::deserialize( Type77* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -14221,143 +13330,139 @@ bool Type77PubSubType::deserialize( return true; } -std::function Type77PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type77PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type77PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type77PubSubType::create_data() { return reinterpret_cast(new Type77()); } -void Type77PubSubType::deleteData( +void Type77PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type77PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type77PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type77 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type77PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type77* p_type = static_cast(data); + const Type77* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type77_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type77_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type77PubSubType::register_type_object_representation() const +void Type77PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type77_type_identifier(type_identifiers_); } Type78PubSubType::Type78PubSubType() { - setName("Type78"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type78::getMaxCdrSerializedSize()); -#else - Type78_max_cdr_typesize; -#endif + set_name("Type78"); + uint32_t type_size = Type78_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type78_max_key_cdr_typesize > 16 ? Type78_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type78_max_key_cdr_typesize > 16 ? Type78_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type78PubSubType::~Type78PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type78PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type78* p_type = static_cast(data); + const Type78* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -14372,16 +13477,12 @@ bool Type78PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type78PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -14390,18 +13491,14 @@ bool Type78PubSubType::deserialize( Type78* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -14414,143 +13511,139 @@ bool Type78PubSubType::deserialize( return true; } -std::function Type78PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type78PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type78PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type78PubSubType::create_data() { return reinterpret_cast(new Type78()); } -void Type78PubSubType::deleteData( +void Type78PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type78PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type78PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type78 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type78PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type78* p_type = static_cast(data); + const Type78* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type78_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type78_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type78PubSubType::register_type_object_representation() const +void Type78PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type78_type_identifier(type_identifiers_); } Type79PubSubType::Type79PubSubType() { - setName("Type79"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type79::getMaxCdrSerializedSize()); -#else - Type79_max_cdr_typesize; -#endif + set_name("Type79"); + uint32_t type_size = Type79_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type79_max_key_cdr_typesize > 16 ? Type79_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type79_max_key_cdr_typesize > 16 ? Type79_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type79PubSubType::~Type79PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type79PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type79* p_type = static_cast(data); + const Type79* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -14565,16 +13658,12 @@ bool Type79PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type79PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -14583,18 +13672,14 @@ bool Type79PubSubType::deserialize( Type79* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -14607,143 +13692,139 @@ bool Type79PubSubType::deserialize( return true; } -std::function Type79PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type79PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type79PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type79PubSubType::create_data() { return reinterpret_cast(new Type79()); } -void Type79PubSubType::deleteData( +void Type79PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type79PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type79PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type79 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type79PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type79* p_type = static_cast(data); + const Type79* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type79_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type79_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type79PubSubType::register_type_object_representation() const +void Type79PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type79_type_identifier(type_identifiers_); } Type80PubSubType::Type80PubSubType() { - setName("Type80"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type80::getMaxCdrSerializedSize()); -#else - Type80_max_cdr_typesize; -#endif + set_name("Type80"); + uint32_t type_size = Type80_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type80_max_key_cdr_typesize > 16 ? Type80_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type80_max_key_cdr_typesize > 16 ? Type80_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type80PubSubType::~Type80PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type80PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type80* p_type = static_cast(data); + const Type80* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -14758,16 +13839,12 @@ bool Type80PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type80PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -14776,18 +13853,14 @@ bool Type80PubSubType::deserialize( Type80* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -14800,143 +13873,139 @@ bool Type80PubSubType::deserialize( return true; } -std::function Type80PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type80PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type80PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type80PubSubType::create_data() { return reinterpret_cast(new Type80()); } -void Type80PubSubType::deleteData( +void Type80PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type80PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type80PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type80 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type80PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type80* p_type = static_cast(data); + const Type80* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type80_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type80_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type80PubSubType::register_type_object_representation() const +void Type80PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type80_type_identifier(type_identifiers_); } Type81PubSubType::Type81PubSubType() { - setName("Type81"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type81::getMaxCdrSerializedSize()); -#else - Type81_max_cdr_typesize; -#endif + set_name("Type81"); + uint32_t type_size = Type81_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type81_max_key_cdr_typesize > 16 ? Type81_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type81_max_key_cdr_typesize > 16 ? Type81_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type81PubSubType::~Type81PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type81PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type81* p_type = static_cast(data); + const Type81* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -14951,16 +14020,12 @@ bool Type81PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type81PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -14969,18 +14034,14 @@ bool Type81PubSubType::deserialize( Type81* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -14993,143 +14054,139 @@ bool Type81PubSubType::deserialize( return true; } -std::function Type81PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type81PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type81PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type81PubSubType::create_data() { return reinterpret_cast(new Type81()); } -void Type81PubSubType::deleteData( +void Type81PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type81PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type81PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type81 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type81PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type81* p_type = static_cast(data); + const Type81* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type81_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type81_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type81PubSubType::register_type_object_representation() const +void Type81PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type81_type_identifier(type_identifiers_); } Type82PubSubType::Type82PubSubType() { - setName("Type82"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type82::getMaxCdrSerializedSize()); -#else - Type82_max_cdr_typesize; -#endif + set_name("Type82"); + uint32_t type_size = Type82_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type82_max_key_cdr_typesize > 16 ? Type82_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type82_max_key_cdr_typesize > 16 ? Type82_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type82PubSubType::~Type82PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type82PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type82* p_type = static_cast(data); + const Type82* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -15144,16 +14201,12 @@ bool Type82PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type82PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -15162,18 +14215,14 @@ bool Type82PubSubType::deserialize( Type82* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -15186,143 +14235,139 @@ bool Type82PubSubType::deserialize( return true; } -std::function Type82PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type82PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type82PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type82PubSubType::create_data() { return reinterpret_cast(new Type82()); } -void Type82PubSubType::deleteData( +void Type82PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type82PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type82PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type82 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type82PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type82* p_type = static_cast(data); + const Type82* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type82_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type82_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type82PubSubType::register_type_object_representation() const +void Type82PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type82_type_identifier(type_identifiers_); } Type83PubSubType::Type83PubSubType() { - setName("Type83"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type83::getMaxCdrSerializedSize()); -#else - Type83_max_cdr_typesize; -#endif + set_name("Type83"); + uint32_t type_size = Type83_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type83_max_key_cdr_typesize > 16 ? Type83_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type83_max_key_cdr_typesize > 16 ? Type83_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type83PubSubType::~Type83PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type83PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type83* p_type = static_cast(data); + const Type83* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -15337,16 +14382,12 @@ bool Type83PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type83PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -15355,18 +14396,14 @@ bool Type83PubSubType::deserialize( Type83* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -15379,143 +14416,139 @@ bool Type83PubSubType::deserialize( return true; } -std::function Type83PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type83PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type83PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type83PubSubType::create_data() { return reinterpret_cast(new Type83()); } -void Type83PubSubType::deleteData( +void Type83PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type83PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type83PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type83 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type83PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type83* p_type = static_cast(data); + const Type83* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type83_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type83_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type83PubSubType::register_type_object_representation() const +void Type83PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type83_type_identifier(type_identifiers_); } Type84PubSubType::Type84PubSubType() { - setName("Type84"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type84::getMaxCdrSerializedSize()); -#else - Type84_max_cdr_typesize; -#endif + set_name("Type84"); + uint32_t type_size = Type84_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type84_max_key_cdr_typesize > 16 ? Type84_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type84_max_key_cdr_typesize > 16 ? Type84_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type84PubSubType::~Type84PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type84PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type84* p_type = static_cast(data); + const Type84* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -15530,16 +14563,12 @@ bool Type84PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type84PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -15548,18 +14577,14 @@ bool Type84PubSubType::deserialize( Type84* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -15572,143 +14597,139 @@ bool Type84PubSubType::deserialize( return true; } -std::function Type84PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type84PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type84PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type84PubSubType::create_data() { return reinterpret_cast(new Type84()); } -void Type84PubSubType::deleteData( +void Type84PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type84PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type84PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type84 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type84PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type84* p_type = static_cast(data); + const Type84* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type84_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type84_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type84PubSubType::register_type_object_representation() const +void Type84PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type84_type_identifier(type_identifiers_); } Type85PubSubType::Type85PubSubType() { - setName("Type85"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type85::getMaxCdrSerializedSize()); -#else - Type85_max_cdr_typesize; -#endif + set_name("Type85"); + uint32_t type_size = Type85_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type85_max_key_cdr_typesize > 16 ? Type85_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type85_max_key_cdr_typesize > 16 ? Type85_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type85PubSubType::~Type85PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type85PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type85* p_type = static_cast(data); + const Type85* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -15723,16 +14744,12 @@ bool Type85PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type85PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -15741,18 +14758,14 @@ bool Type85PubSubType::deserialize( Type85* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -15765,143 +14778,139 @@ bool Type85PubSubType::deserialize( return true; } -std::function Type85PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type85PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type85PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type85PubSubType::create_data() { return reinterpret_cast(new Type85()); } -void Type85PubSubType::deleteData( +void Type85PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type85PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type85PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type85 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type85PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type85* p_type = static_cast(data); + const Type85* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type85_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type85_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type85PubSubType::register_type_object_representation() const +void Type85PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type85_type_identifier(type_identifiers_); } Type86PubSubType::Type86PubSubType() { - setName("Type86"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type86::getMaxCdrSerializedSize()); -#else - Type86_max_cdr_typesize; -#endif + set_name("Type86"); + uint32_t type_size = Type86_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type86_max_key_cdr_typesize > 16 ? Type86_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type86_max_key_cdr_typesize > 16 ? Type86_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type86PubSubType::~Type86PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type86PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type86* p_type = static_cast(data); + const Type86* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -15916,16 +14925,12 @@ bool Type86PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type86PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -15934,18 +14939,14 @@ bool Type86PubSubType::deserialize( Type86* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -15958,143 +14959,139 @@ bool Type86PubSubType::deserialize( return true; } -std::function Type86PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type86PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type86PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type86PubSubType::create_data() { return reinterpret_cast(new Type86()); } -void Type86PubSubType::deleteData( +void Type86PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type86PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type86PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type86 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type86PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type86* p_type = static_cast(data); + const Type86* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type86_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type86_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type86PubSubType::register_type_object_representation() const +void Type86PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type86_type_identifier(type_identifiers_); } Type87PubSubType::Type87PubSubType() { - setName("Type87"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type87::getMaxCdrSerializedSize()); -#else - Type87_max_cdr_typesize; -#endif + set_name("Type87"); + uint32_t type_size = Type87_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type87_max_key_cdr_typesize > 16 ? Type87_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type87_max_key_cdr_typesize > 16 ? Type87_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type87PubSubType::~Type87PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type87PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type87* p_type = static_cast(data); + const Type87* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -16109,16 +15106,12 @@ bool Type87PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type87PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -16127,18 +15120,14 @@ bool Type87PubSubType::deserialize( Type87* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -16151,143 +15140,139 @@ bool Type87PubSubType::deserialize( return true; } -std::function Type87PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type87PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type87PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type87PubSubType::create_data() { return reinterpret_cast(new Type87()); } -void Type87PubSubType::deleteData( +void Type87PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type87PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type87PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type87 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type87PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type87* p_type = static_cast(data); + const Type87* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type87_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type87_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type87PubSubType::register_type_object_representation() const +void Type87PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type87_type_identifier(type_identifiers_); } Type88PubSubType::Type88PubSubType() { - setName("Type88"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type88::getMaxCdrSerializedSize()); -#else - Type88_max_cdr_typesize; -#endif + set_name("Type88"); + uint32_t type_size = Type88_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type88_max_key_cdr_typesize > 16 ? Type88_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type88_max_key_cdr_typesize > 16 ? Type88_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type88PubSubType::~Type88PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type88PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type88* p_type = static_cast(data); + const Type88* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -16302,16 +15287,12 @@ bool Type88PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type88PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -16320,18 +15301,14 @@ bool Type88PubSubType::deserialize( Type88* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -16344,143 +15321,139 @@ bool Type88PubSubType::deserialize( return true; } -std::function Type88PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type88PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type88PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type88PubSubType::create_data() { return reinterpret_cast(new Type88()); } -void Type88PubSubType::deleteData( +void Type88PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type88PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type88PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type88 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type88PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type88* p_type = static_cast(data); + const Type88* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type88_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type88_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type88PubSubType::register_type_object_representation() const +void Type88PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type88_type_identifier(type_identifiers_); } Type89PubSubType::Type89PubSubType() { - setName("Type89"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type89::getMaxCdrSerializedSize()); -#else - Type89_max_cdr_typesize; -#endif + set_name("Type89"); + uint32_t type_size = Type89_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type89_max_key_cdr_typesize > 16 ? Type89_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type89_max_key_cdr_typesize > 16 ? Type89_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type89PubSubType::~Type89PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type89PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type89* p_type = static_cast(data); + const Type89* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -16495,16 +15468,12 @@ bool Type89PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type89PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -16513,167 +15482,159 @@ bool Type89PubSubType::deserialize( Type89* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; } catch (eprosima::fastcdr::exception::Exception& /*exception*/) { - return false; + return false; + } + + return true; +} + +uint32_t Type89PubSubType::calculate_serialized_size( + const void* const data, + DataRepresentationId_t data_representation) +{ + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; } - - return true; } -std::function Type89PubSubType::getSerializedSizeProvider( - void* data, - DataRepresentationId_t data_representation) -{ - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type89PubSubType::createData() +void* Type89PubSubType::create_data() { return reinterpret_cast(new Type89()); } -void Type89PubSubType::deleteData( +void Type89PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type89PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type89PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type89 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type89PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type89* p_type = static_cast(data); + const Type89* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type89_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type89_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type89PubSubType::register_type_object_representation() const +void Type89PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type89_type_identifier(type_identifiers_); } Type90PubSubType::Type90PubSubType() { - setName("Type90"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type90::getMaxCdrSerializedSize()); -#else - Type90_max_cdr_typesize; -#endif + set_name("Type90"); + uint32_t type_size = Type90_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type90_max_key_cdr_typesize > 16 ? Type90_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type90_max_key_cdr_typesize > 16 ? Type90_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type90PubSubType::~Type90PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type90PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type90* p_type = static_cast(data); + const Type90* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -16688,16 +15649,12 @@ bool Type90PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type90PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -16706,18 +15663,14 @@ bool Type90PubSubType::deserialize( Type90* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -16730,143 +15683,139 @@ bool Type90PubSubType::deserialize( return true; } -std::function Type90PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type90PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type90PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type90PubSubType::create_data() { return reinterpret_cast(new Type90()); } -void Type90PubSubType::deleteData( +void Type90PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type90PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type90PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type90 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type90PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type90* p_type = static_cast(data); + const Type90* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type90_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type90_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type90PubSubType::register_type_object_representation() const +void Type90PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type90_type_identifier(type_identifiers_); } Type91PubSubType::Type91PubSubType() { - setName("Type91"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type91::getMaxCdrSerializedSize()); -#else - Type91_max_cdr_typesize; -#endif + set_name("Type91"); + uint32_t type_size = Type91_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type91_max_key_cdr_typesize > 16 ? Type91_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type91_max_key_cdr_typesize > 16 ? Type91_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type91PubSubType::~Type91PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type91PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type91* p_type = static_cast(data); + const Type91* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -16881,16 +15830,12 @@ bool Type91PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type91PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -16899,18 +15844,14 @@ bool Type91PubSubType::deserialize( Type91* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -16923,143 +15864,139 @@ bool Type91PubSubType::deserialize( return true; } -std::function Type91PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type91PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type91PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type91PubSubType::create_data() { return reinterpret_cast(new Type91()); } -void Type91PubSubType::deleteData( +void Type91PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type91PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type91PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type91 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type91PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type91* p_type = static_cast(data); + const Type91* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type91_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type91_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type91PubSubType::register_type_object_representation() const +void Type91PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type91_type_identifier(type_identifiers_); } Type92PubSubType::Type92PubSubType() { - setName("Type92"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type92::getMaxCdrSerializedSize()); -#else - Type92_max_cdr_typesize; -#endif + set_name("Type92"); + uint32_t type_size = Type92_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type92_max_key_cdr_typesize > 16 ? Type92_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type92_max_key_cdr_typesize > 16 ? Type92_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type92PubSubType::~Type92PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type92PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type92* p_type = static_cast(data); + const Type92* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -17074,16 +16011,12 @@ bool Type92PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type92PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -17092,18 +16025,14 @@ bool Type92PubSubType::deserialize( Type92* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -17116,143 +16045,139 @@ bool Type92PubSubType::deserialize( return true; } -std::function Type92PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type92PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type92PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type92PubSubType::create_data() { return reinterpret_cast(new Type92()); } -void Type92PubSubType::deleteData( +void Type92PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type92PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type92PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type92 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type92PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type92* p_type = static_cast(data); + const Type92* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type92_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type92_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type92PubSubType::register_type_object_representation() const +void Type92PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type92_type_identifier(type_identifiers_); } Type93PubSubType::Type93PubSubType() { - setName("Type93"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type93::getMaxCdrSerializedSize()); -#else - Type93_max_cdr_typesize; -#endif + set_name("Type93"); + uint32_t type_size = Type93_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type93_max_key_cdr_typesize > 16 ? Type93_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type93_max_key_cdr_typesize > 16 ? Type93_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type93PubSubType::~Type93PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type93PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type93* p_type = static_cast(data); + const Type93* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -17267,16 +16192,12 @@ bool Type93PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type93PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -17285,18 +16206,14 @@ bool Type93PubSubType::deserialize( Type93* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -17309,143 +16226,139 @@ bool Type93PubSubType::deserialize( return true; } -std::function Type93PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type93PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type93PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type93PubSubType::create_data() { return reinterpret_cast(new Type93()); } -void Type93PubSubType::deleteData( +void Type93PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type93PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type93PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type93 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type93PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type93* p_type = static_cast(data); + const Type93* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type93_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type93_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type93PubSubType::register_type_object_representation() const +void Type93PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type93_type_identifier(type_identifiers_); } Type94PubSubType::Type94PubSubType() { - setName("Type94"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type94::getMaxCdrSerializedSize()); -#else - Type94_max_cdr_typesize; -#endif + set_name("Type94"); + uint32_t type_size = Type94_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type94_max_key_cdr_typesize > 16 ? Type94_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type94_max_key_cdr_typesize > 16 ? Type94_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type94PubSubType::~Type94PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type94PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type94* p_type = static_cast(data); + const Type94* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -17460,16 +16373,12 @@ bool Type94PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type94PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -17478,18 +16387,14 @@ bool Type94PubSubType::deserialize( Type94* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -17502,143 +16407,139 @@ bool Type94PubSubType::deserialize( return true; } -std::function Type94PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type94PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type94PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type94PubSubType::create_data() { return reinterpret_cast(new Type94()); } -void Type94PubSubType::deleteData( +void Type94PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type94PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type94PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type94 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type94PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type94* p_type = static_cast(data); + const Type94* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type94_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type94_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type94PubSubType::register_type_object_representation() const +void Type94PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type94_type_identifier(type_identifiers_); } Type95PubSubType::Type95PubSubType() { - setName("Type95"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type95::getMaxCdrSerializedSize()); -#else - Type95_max_cdr_typesize; -#endif + set_name("Type95"); + uint32_t type_size = Type95_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type95_max_key_cdr_typesize > 16 ? Type95_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type95_max_key_cdr_typesize > 16 ? Type95_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type95PubSubType::~Type95PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type95PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type95* p_type = static_cast(data); + const Type95* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -17653,16 +16554,12 @@ bool Type95PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type95PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -17671,18 +16568,14 @@ bool Type95PubSubType::deserialize( Type95* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -17695,143 +16588,139 @@ bool Type95PubSubType::deserialize( return true; } -std::function Type95PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type95PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type95PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type95PubSubType::create_data() { return reinterpret_cast(new Type95()); } -void Type95PubSubType::deleteData( +void Type95PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type95PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type95PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type95 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type95PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type95* p_type = static_cast(data); + const Type95* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type95_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type95_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type95PubSubType::register_type_object_representation() const +void Type95PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type95_type_identifier(type_identifiers_); } Type96PubSubType::Type96PubSubType() { - setName("Type96"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type96::getMaxCdrSerializedSize()); -#else - Type96_max_cdr_typesize; -#endif + set_name("Type96"); + uint32_t type_size = Type96_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type96_max_key_cdr_typesize > 16 ? Type96_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type96_max_key_cdr_typesize > 16 ? Type96_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type96PubSubType::~Type96PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type96PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type96* p_type = static_cast(data); + const Type96* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -17846,16 +16735,12 @@ bool Type96PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type96PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -17864,18 +16749,14 @@ bool Type96PubSubType::deserialize( Type96* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -17888,143 +16769,139 @@ bool Type96PubSubType::deserialize( return true; } -std::function Type96PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type96PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type96PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type96PubSubType::create_data() { return reinterpret_cast(new Type96()); } -void Type96PubSubType::deleteData( +void Type96PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type96PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type96PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type96 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type96PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type96* p_type = static_cast(data); + const Type96* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type96_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type96_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type96PubSubType::register_type_object_representation() const +void Type96PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type96_type_identifier(type_identifiers_); } Type97PubSubType::Type97PubSubType() { - setName("Type97"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type97::getMaxCdrSerializedSize()); -#else - Type97_max_cdr_typesize; -#endif + set_name("Type97"); + uint32_t type_size = Type97_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type97_max_key_cdr_typesize > 16 ? Type97_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type97_max_key_cdr_typesize > 16 ? Type97_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type97PubSubType::~Type97PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type97PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type97* p_type = static_cast(data); + const Type97* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -18039,16 +16916,12 @@ bool Type97PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type97PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -18057,18 +16930,14 @@ bool Type97PubSubType::deserialize( Type97* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -18081,143 +16950,139 @@ bool Type97PubSubType::deserialize( return true; } -std::function Type97PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type97PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type97PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type97PubSubType::create_data() { return reinterpret_cast(new Type97()); } -void Type97PubSubType::deleteData( +void Type97PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type97PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type97PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type97 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type97PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type97* p_type = static_cast(data); + const Type97* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type97_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type97_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type97PubSubType::register_type_object_representation() const +void Type97PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type97_type_identifier(type_identifiers_); } Type98PubSubType::Type98PubSubType() { - setName("Type98"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type98::getMaxCdrSerializedSize()); -#else - Type98_max_cdr_typesize; -#endif + set_name("Type98"); + uint32_t type_size = Type98_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type98_max_key_cdr_typesize > 16 ? Type98_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type98_max_key_cdr_typesize > 16 ? Type98_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type98PubSubType::~Type98PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type98PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type98* p_type = static_cast(data); + const Type98* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -18232,16 +17097,12 @@ bool Type98PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type98PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -18250,18 +17111,14 @@ bool Type98PubSubType::deserialize( Type98* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -18274,143 +17131,139 @@ bool Type98PubSubType::deserialize( return true; } -std::function Type98PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type98PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type98PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type98PubSubType::create_data() { return reinterpret_cast(new Type98()); } -void Type98PubSubType::deleteData( +void Type98PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type98PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type98PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type98 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type98PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type98* p_type = static_cast(data); + const Type98* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type98_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type98_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type98PubSubType::register_type_object_representation() const +void Type98PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type98_type_identifier(type_identifiers_); } Type99PubSubType::Type99PubSubType() { - setName("Type99"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type99::getMaxCdrSerializedSize()); -#else - Type99_max_cdr_typesize; -#endif + set_name("Type99"); + uint32_t type_size = Type99_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type99_max_key_cdr_typesize > 16 ? Type99_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type99_max_key_cdr_typesize > 16 ? Type99_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type99PubSubType::~Type99PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type99PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type99* p_type = static_cast(data); + const Type99* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -18425,16 +17278,12 @@ bool Type99PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type99PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -18443,18 +17292,14 @@ bool Type99PubSubType::deserialize( Type99* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -18467,143 +17312,139 @@ bool Type99PubSubType::deserialize( return true; } -std::function Type99PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type99PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type99PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type99PubSubType::create_data() { return reinterpret_cast(new Type99()); } -void Type99PubSubType::deleteData( +void Type99PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type99PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type99PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type99 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type99PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type99* p_type = static_cast(data); + const Type99* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type99_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type99_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type99PubSubType::register_type_object_representation() const +void Type99PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type99_type_identifier(type_identifiers_); } Type100PubSubType::Type100PubSubType() { - setName("Type100"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(Type100::getMaxCdrSerializedSize()); -#else - Type100_max_cdr_typesize; -#endif + set_name("Type100"); + uint32_t type_size = Type100_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = Type100_max_key_cdr_typesize > 16 ? Type100_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = Type100_max_key_cdr_typesize > 16 ? Type100_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } Type100PubSubType::~Type100PubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool Type100PubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - Type100* p_type = static_cast(data); + const Type100* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -18618,16 +17459,12 @@ bool Type100PubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool Type100PubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -18636,18 +17473,14 @@ bool Type100PubSubType::deserialize( Type100* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -18660,143 +17493,139 @@ bool Type100PubSubType::deserialize( return true; } -std::function Type100PubSubType::getSerializedSizeProvider( - void* data, +uint32_t Type100PubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* Type100PubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* Type100PubSubType::create_data() { return reinterpret_cast(new Type100()); } -void Type100PubSubType::deleteData( +void Type100PubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool Type100PubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool Type100PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type100 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool Type100PubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - Type100* p_type = static_cast(data); + const Type100* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), Type100_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || Type100_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void Type100PubSubType::register_type_object_representation() const +void Type100PubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_Type100_type_identifier(type_identifiers_); } TypeBigPubSubType::TypeBigPubSubType() { - setName("TypeBig"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(TypeBig::getMaxCdrSerializedSize()); -#else - TypeBig_max_cdr_typesize; -#endif + set_name("TypeBig"); + uint32_t type_size = TypeBig_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = TypeBig_max_key_cdr_typesize > 16 ? TypeBig_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = TypeBig_max_key_cdr_typesize > 16 ? TypeBig_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } TypeBigPubSubType::~TypeBigPubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool TypeBigPubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - TypeBig* p_type = static_cast(data); + const TypeBig* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -18811,16 +17640,12 @@ bool TypeBigPubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool TypeBigPubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -18829,18 +17654,14 @@ bool TypeBigPubSubType::deserialize( TypeBig* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -18853,96 +17674,99 @@ bool TypeBigPubSubType::deserialize( return true; } -std::function TypeBigPubSubType::getSerializedSizeProvider( - void* data, +uint32_t TypeBigPubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; -} - -void* TypeBigPubSubType::createData() + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* TypeBigPubSubType::create_data() { return reinterpret_cast(new TypeBig()); } -void TypeBigPubSubType::deleteData( +void TypeBigPubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool TypeBigPubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool TypeBigPubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + TypeBig data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool TypeBigPubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - TypeBig* p_type = static_cast(data); + const TypeBig* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), TypeBig_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || TypeBig_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void TypeBigPubSubType::register_type_object_representation() const +void TypeBigPubSubType::register_type_object_representation() { - register_XtypesTestsTypeBig_type_objects(); + register_TypeBig_type_identifier(type_identifiers_); } diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp similarity index 56% rename from test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h rename to test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp index ce4774c179e..536852d28b0 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.h +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp @@ -13,32 +13,32 @@ // limitations under the License. /*! - * @file XtypesTestsTypeBigPubSubTypes.h + * @file XtypesTestsTypeBigPubSubTypes.hpp * This header file contains the declaration of the serialization functions. * * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_PUBSUBTYPES_H_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_PUBSUBTYPES_H_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_PUBSUBTYPES_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_PUBSUBTYPES_HPP #include #include -#include -#include -#include +#include +#include +#include #include "XtypesTestsTypeBig.hpp" -#include "XtypesTestsType1PubSubTypes.h" -#include "XtypesTestsType2PubSubTypes.h" -#include "XtypesTestsType3PubSubTypes.h" +#include "XtypesTestsType1PubSubTypes.hpp" +#include "XtypesTestsType2PubSubTypes.hpp" +#include "XtypesTestsType3PubSubTypes.hpp" -#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#if !defined(FASTDDS_GEN_API_VER) || (FASTDDS_GEN_API_VER != 3) #error \ Generated XtypesTestsTypeBig is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. -#endif // GEN_API_VER +#endif // FASTDDS_GEN_API_VER /*! @@ -56,43 +56,35 @@ class Type4PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type4PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -103,13 +95,9 @@ class Type4PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -127,8 +115,10 @@ class Type4PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -147,43 +137,35 @@ class Type5PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type5PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -194,13 +176,9 @@ class Type5PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -218,8 +196,10 @@ class Type5PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -238,43 +218,35 @@ class Type6PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type6PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -285,13 +257,9 @@ class Type6PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -309,8 +277,10 @@ class Type6PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -329,43 +299,35 @@ class Type7PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type7PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -376,13 +338,9 @@ class Type7PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -400,8 +358,10 @@ class Type7PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -420,43 +380,35 @@ class Type8PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type8PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -467,13 +419,9 @@ class Type8PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -491,8 +439,10 @@ class Type8PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -511,43 +461,35 @@ class Type9PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type9PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -558,13 +500,9 @@ class Type9PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -582,8 +520,10 @@ class Type9PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -602,43 +542,35 @@ class Type10PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type10PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -649,13 +581,9 @@ class Type10PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -673,8 +601,10 @@ class Type10PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -693,43 +623,35 @@ class Type11PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type11PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -740,13 +662,9 @@ class Type11PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -764,8 +682,10 @@ class Type11PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -784,43 +704,35 @@ class Type12PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type12PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void* create_data() override; + + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -831,13 +743,9 @@ class Type12PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -855,8 +763,10 @@ class Type12PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -875,43 +785,35 @@ class Type13PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type13PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -922,13 +824,9 @@ class Type13PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -946,8 +844,10 @@ class Type13PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -966,43 +866,35 @@ class Type14PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type14PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1013,13 +905,9 @@ class Type14PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1037,8 +925,10 @@ class Type14PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1057,43 +947,35 @@ class Type15PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type15PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1104,13 +986,9 @@ class Type15PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1128,8 +1006,10 @@ class Type15PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1148,43 +1028,35 @@ class Type16PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type16PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1195,13 +1067,9 @@ class Type16PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1219,8 +1087,10 @@ class Type16PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1239,43 +1109,35 @@ class Type17PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type17PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1286,13 +1148,9 @@ class Type17PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1310,8 +1168,10 @@ class Type17PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1330,43 +1190,35 @@ class Type18PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type18PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1377,13 +1229,9 @@ class Type18PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1401,8 +1249,10 @@ class Type18PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1421,43 +1271,35 @@ class Type19PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type19PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1468,13 +1310,9 @@ class Type19PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1492,8 +1330,10 @@ class Type19PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1512,43 +1352,35 @@ class Type20PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type20PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1559,13 +1391,9 @@ class Type20PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1583,8 +1411,10 @@ class Type20PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1603,43 +1433,35 @@ class Type21PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type21PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1650,13 +1472,9 @@ class Type21PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1674,8 +1492,10 @@ class Type21PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1694,43 +1514,35 @@ class Type22PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type22PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1741,13 +1553,9 @@ class Type22PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1765,8 +1573,10 @@ class Type22PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1785,43 +1595,35 @@ class Type23PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type23PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1832,13 +1634,9 @@ class Type23PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1856,8 +1654,10 @@ class Type23PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1876,43 +1676,35 @@ class Type24PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type24PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1923,13 +1715,9 @@ class Type24PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -1947,8 +1735,10 @@ class Type24PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -1967,43 +1757,35 @@ class Type25PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type25PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2014,13 +1796,9 @@ class Type25PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2038,8 +1816,10 @@ class Type25PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2058,43 +1838,35 @@ class Type26PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type26PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2105,13 +1877,9 @@ class Type26PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2129,8 +1897,10 @@ class Type26PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2149,43 +1919,35 @@ class Type27PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type27PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2196,13 +1958,9 @@ class Type27PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2220,8 +1978,10 @@ class Type27PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2240,43 +2000,35 @@ class Type28PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type28PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2287,13 +2039,9 @@ class Type28PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2311,8 +2059,10 @@ class Type28PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2331,43 +2081,35 @@ class Type29PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type29PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2378,13 +2120,9 @@ class Type29PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2402,8 +2140,10 @@ class Type29PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2422,43 +2162,35 @@ class Type30PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type30PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2469,13 +2201,9 @@ class Type30PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2493,8 +2221,10 @@ class Type30PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2513,43 +2243,35 @@ class Type31PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type31PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2560,13 +2282,9 @@ class Type31PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2584,8 +2302,10 @@ class Type31PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2604,43 +2324,35 @@ class Type32PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type32PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2651,13 +2363,9 @@ class Type32PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2675,8 +2383,10 @@ class Type32PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2695,43 +2405,35 @@ class Type33PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type33PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2742,13 +2444,9 @@ class Type33PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2766,8 +2464,10 @@ class Type33PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2786,43 +2486,35 @@ class Type34PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type34PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2833,13 +2525,9 @@ class Type34PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2857,8 +2545,10 @@ class Type34PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2877,43 +2567,35 @@ class Type35PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type35PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2924,13 +2606,9 @@ class Type35PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -2948,8 +2626,10 @@ class Type35PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -2968,43 +2648,35 @@ class Type36PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type36PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3015,13 +2687,9 @@ class Type36PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3039,8 +2707,10 @@ class Type36PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3059,43 +2729,35 @@ class Type37PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type37PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3106,13 +2768,9 @@ class Type37PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3130,8 +2788,10 @@ class Type37PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3150,43 +2810,35 @@ class Type38PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type38PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3197,13 +2849,9 @@ class Type38PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3221,8 +2869,10 @@ class Type38PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3241,43 +2891,35 @@ class Type39PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type39PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3288,13 +2930,9 @@ class Type39PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3312,8 +2950,10 @@ class Type39PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3332,43 +2972,35 @@ class Type40PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type40PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3379,13 +3011,9 @@ class Type40PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3403,8 +3031,10 @@ class Type40PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3423,43 +3053,35 @@ class Type41PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type41PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3470,13 +3092,9 @@ class Type41PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3494,8 +3112,10 @@ class Type41PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3514,43 +3134,35 @@ class Type42PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type42PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3561,13 +3173,9 @@ class Type42PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3585,8 +3193,10 @@ class Type42PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3605,43 +3215,35 @@ class Type43PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type43PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3652,13 +3254,9 @@ class Type43PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3676,8 +3274,10 @@ class Type43PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3696,43 +3296,35 @@ class Type44PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type44PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3743,13 +3335,9 @@ class Type44PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3767,8 +3355,10 @@ class Type44PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3787,43 +3377,35 @@ class Type45PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type45PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3834,13 +3416,9 @@ class Type45PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3858,8 +3436,10 @@ class Type45PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3878,43 +3458,35 @@ class Type46PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type46PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3925,13 +3497,9 @@ class Type46PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -3949,8 +3517,10 @@ class Type46PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -3969,43 +3539,35 @@ class Type47PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type47PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4016,13 +3578,9 @@ class Type47PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4040,8 +3598,10 @@ class Type47PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4060,43 +3620,35 @@ class Type48PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type48PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4107,13 +3659,9 @@ class Type48PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4131,8 +3679,10 @@ class Type48PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4151,43 +3701,35 @@ class Type49PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type49PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4198,13 +3740,9 @@ class Type49PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4222,8 +3760,10 @@ class Type49PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4242,43 +3782,35 @@ class Type50PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type50PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4289,13 +3821,9 @@ class Type50PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4313,8 +3841,10 @@ class Type50PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4333,43 +3863,35 @@ class Type51PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type51PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4380,13 +3902,9 @@ class Type51PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4404,8 +3922,10 @@ class Type51PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4424,43 +3944,35 @@ class Type52PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type52PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4471,13 +3983,9 @@ class Type52PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4495,8 +4003,10 @@ class Type52PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4515,43 +4025,35 @@ class Type53PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type53PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4562,13 +4064,9 @@ class Type53PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4586,8 +4084,10 @@ class Type53PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4606,43 +4106,35 @@ class Type54PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type54PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4653,13 +4145,9 @@ class Type54PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4677,8 +4165,10 @@ class Type54PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4697,43 +4187,35 @@ class Type55PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type55PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4744,13 +4226,9 @@ class Type55PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4768,8 +4246,10 @@ class Type55PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4788,43 +4268,35 @@ class Type56PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type56PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4835,13 +4307,9 @@ class Type56PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4859,8 +4327,10 @@ class Type56PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4879,43 +4349,35 @@ class Type57PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type57PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4926,13 +4388,9 @@ class Type57PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -4950,8 +4408,10 @@ class Type57PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -4970,43 +4430,35 @@ class Type58PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type58PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5017,13 +4469,9 @@ class Type58PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5041,8 +4489,10 @@ class Type58PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5061,43 +4511,35 @@ class Type59PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type59PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5108,13 +4550,9 @@ class Type59PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5132,8 +4570,10 @@ class Type59PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5152,43 +4592,35 @@ class Type60PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type60PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5199,13 +4631,9 @@ class Type60PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5223,8 +4651,10 @@ class Type60PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5243,43 +4673,35 @@ class Type61PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type61PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5290,13 +4712,9 @@ class Type61PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5314,8 +4732,10 @@ class Type61PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5334,43 +4754,35 @@ class Type62PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type62PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5381,13 +4793,9 @@ class Type62PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5405,8 +4813,10 @@ class Type62PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5425,43 +4835,35 @@ class Type63PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type63PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5472,13 +4874,9 @@ class Type63PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5496,8 +4894,10 @@ class Type63PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5516,43 +4916,35 @@ class Type64PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type64PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5563,13 +4955,9 @@ class Type64PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5587,8 +4975,10 @@ class Type64PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5607,43 +4997,35 @@ class Type65PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type65PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5654,13 +5036,9 @@ class Type65PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5678,8 +5056,10 @@ class Type65PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5698,43 +5078,35 @@ class Type66PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type66PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5745,13 +5117,9 @@ class Type66PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5769,8 +5137,10 @@ class Type66PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5789,43 +5159,35 @@ class Type67PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type67PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5836,13 +5198,9 @@ class Type67PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5860,8 +5218,10 @@ class Type67PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5880,43 +5240,35 @@ class Type68PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type68PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5927,13 +5279,9 @@ class Type68PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -5951,8 +5299,10 @@ class Type68PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -5971,43 +5321,35 @@ class Type69PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type69PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6018,13 +5360,9 @@ class Type69PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6042,8 +5380,10 @@ class Type69PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6062,43 +5402,35 @@ class Type70PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type70PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6109,13 +5441,9 @@ class Type70PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6133,8 +5461,10 @@ class Type70PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6153,43 +5483,35 @@ class Type71PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type71PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6200,13 +5522,9 @@ class Type71PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6224,8 +5542,10 @@ class Type71PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6244,43 +5564,35 @@ class Type72PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type72PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6291,13 +5603,9 @@ class Type72PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6315,8 +5623,10 @@ class Type72PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6335,43 +5645,35 @@ class Type73PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type73PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6382,13 +5684,9 @@ class Type73PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6406,8 +5704,10 @@ class Type73PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6426,43 +5726,35 @@ class Type74PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type74PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6473,13 +5765,9 @@ class Type74PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6497,8 +5785,10 @@ class Type74PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6517,43 +5807,35 @@ class Type75PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type75PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6564,13 +5846,9 @@ class Type75PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6588,8 +5866,10 @@ class Type75PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6608,43 +5888,35 @@ class Type76PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type76PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6655,13 +5927,9 @@ class Type76PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6679,8 +5947,10 @@ class Type76PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6699,43 +5969,35 @@ class Type77PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type77PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6746,13 +6008,9 @@ class Type77PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6770,8 +6028,10 @@ class Type77PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6790,43 +6050,35 @@ class Type78PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type78PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6837,13 +6089,9 @@ class Type78PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6861,8 +6109,10 @@ class Type78PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6881,43 +6131,35 @@ class Type79PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type79PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6928,13 +6170,9 @@ class Type79PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -6952,8 +6190,10 @@ class Type79PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -6972,43 +6212,35 @@ class Type80PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type80PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7019,13 +6251,9 @@ class Type80PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7043,8 +6271,10 @@ class Type80PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7063,43 +6293,35 @@ class Type81PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type81PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7110,13 +6332,9 @@ class Type81PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7134,8 +6352,10 @@ class Type81PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7154,43 +6374,35 @@ class Type82PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type82PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7201,13 +6413,9 @@ class Type82PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7225,8 +6433,10 @@ class Type82PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7245,43 +6455,35 @@ class Type83PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type83PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7292,13 +6494,9 @@ class Type83PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7316,8 +6514,10 @@ class Type83PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7336,43 +6536,35 @@ class Type84PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type84PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7383,13 +6575,9 @@ class Type84PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7407,8 +6595,10 @@ class Type84PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7427,43 +6617,35 @@ class Type85PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type85PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7474,13 +6656,9 @@ class Type85PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7498,8 +6676,10 @@ class Type85PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7518,43 +6698,35 @@ class Type86PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type86PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7565,13 +6737,9 @@ class Type86PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7589,8 +6757,10 @@ class Type86PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7609,43 +6779,35 @@ class Type87PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type87PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7656,13 +6818,9 @@ class Type87PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7680,8 +6838,10 @@ class Type87PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7700,43 +6860,35 @@ class Type88PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type88PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7747,13 +6899,9 @@ class Type88PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7771,8 +6919,10 @@ class Type88PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7791,43 +6941,35 @@ class Type89PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type89PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7838,13 +6980,9 @@ class Type89PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7862,8 +7000,10 @@ class Type89PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7882,43 +7022,35 @@ class Type90PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type90PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7929,13 +7061,9 @@ class Type90PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -7953,8 +7081,10 @@ class Type90PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -7973,43 +7103,35 @@ class Type91PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type91PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8020,13 +7142,9 @@ class Type91PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8044,8 +7162,10 @@ class Type91PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8064,43 +7184,35 @@ class Type92PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type92PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8111,13 +7223,9 @@ class Type92PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8135,8 +7243,10 @@ class Type92PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8155,43 +7265,35 @@ class Type93PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type93PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8202,13 +7304,9 @@ class Type93PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8226,8 +7324,10 @@ class Type93PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8246,43 +7346,35 @@ class Type94PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type94PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8293,13 +7385,9 @@ class Type94PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8317,8 +7405,10 @@ class Type94PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8337,43 +7427,35 @@ class Type95PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type95PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8384,13 +7466,9 @@ class Type95PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8408,8 +7486,10 @@ class Type95PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8428,43 +7508,35 @@ class Type96PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type96PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8475,13 +7547,9 @@ class Type96PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8499,8 +7567,10 @@ class Type96PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8519,43 +7589,35 @@ class Type97PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type97PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8566,13 +7628,9 @@ class Type97PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8590,8 +7648,10 @@ class Type97PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8610,43 +7670,35 @@ class Type98PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type98PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8657,13 +7709,9 @@ class Type98PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8681,8 +7729,10 @@ class Type98PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8701,43 +7751,35 @@ class Type99PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type99PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8748,13 +7790,9 @@ class Type99PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8772,8 +7810,10 @@ class Type99PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8792,43 +7832,35 @@ class Type100PubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~Type100PubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8839,13 +7871,9 @@ class Type100PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8863,8 +7891,10 @@ class Type100PubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; @@ -8883,43 +7913,35 @@ class TypeBigPubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~TypeBigPubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8930,13 +7952,9 @@ class TypeBigPubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -8954,10 +7972,12 @@ class TypeBigPubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_PUBSUBTYPES_H_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_PUBSUBTYPES_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx index 7db43c643ed..5a7f516a68e 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx @@ -41,223 +41,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_XtypesTestsTypeBig_type_objects() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type4_type_identifier( + TypeIdentifierPair& type_ids_Type4) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - register_Type1_type_identifier(); - - register_Type2_type_identifier(); - - register_Type3_type_identifier(); - - register_Type4_type_identifier(); - - register_Type5_type_identifier(); - - register_Type6_type_identifier(); - - register_Type7_type_identifier(); - - register_Type8_type_identifier(); - - register_Type9_type_identifier(); - - register_Type10_type_identifier(); - - register_Type11_type_identifier(); - - register_Type12_type_identifier(); - - register_Type13_type_identifier(); - - register_Type14_type_identifier(); - - register_Type15_type_identifier(); - - register_Type16_type_identifier(); - - register_Type17_type_identifier(); - - register_Type18_type_identifier(); - - register_Type19_type_identifier(); - - register_Type20_type_identifier(); - - register_Type21_type_identifier(); - - register_Type22_type_identifier(); - - register_Type23_type_identifier(); - - register_Type24_type_identifier(); - - register_Type25_type_identifier(); - - register_Type26_type_identifier(); - - register_Type27_type_identifier(); - - register_Type28_type_identifier(); - - register_Type29_type_identifier(); - - register_Type30_type_identifier(); - - register_Type31_type_identifier(); - - register_Type32_type_identifier(); - - register_Type33_type_identifier(); - - register_Type34_type_identifier(); - - register_Type35_type_identifier(); - - register_Type36_type_identifier(); - - register_Type37_type_identifier(); - - register_Type38_type_identifier(); - - register_Type39_type_identifier(); - - register_Type40_type_identifier(); - - register_Type41_type_identifier(); - - register_Type42_type_identifier(); - - register_Type43_type_identifier(); - - register_Type44_type_identifier(); - - register_Type45_type_identifier(); - - register_Type46_type_identifier(); - - register_Type47_type_identifier(); - - register_Type48_type_identifier(); - - register_Type49_type_identifier(); - - register_Type50_type_identifier(); - - register_Type51_type_identifier(); - - register_Type52_type_identifier(); - - register_Type53_type_identifier(); - - register_Type54_type_identifier(); - - register_Type55_type_identifier(); - - register_Type56_type_identifier(); - - register_Type57_type_identifier(); - - register_Type58_type_identifier(); - - register_Type59_type_identifier(); - - register_Type60_type_identifier(); - - register_Type61_type_identifier(); - - register_Type62_type_identifier(); - - register_Type63_type_identifier(); - - register_Type64_type_identifier(); - register_Type65_type_identifier(); - - register_Type66_type_identifier(); - - register_Type67_type_identifier(); - - register_Type68_type_identifier(); - - register_Type69_type_identifier(); - - register_Type70_type_identifier(); - - register_Type71_type_identifier(); - - register_Type72_type_identifier(); - - register_Type73_type_identifier(); - - register_Type74_type_identifier(); - - register_Type75_type_identifier(); - - register_Type76_type_identifier(); - - register_Type77_type_identifier(); - - register_Type78_type_identifier(); - - register_Type79_type_identifier(); - - register_Type80_type_identifier(); - - register_Type81_type_identifier(); - - register_Type82_type_identifier(); - - register_Type83_type_identifier(); - - register_Type84_type_identifier(); - - register_Type85_type_identifier(); - - register_Type86_type_identifier(); - - register_Type87_type_identifier(); - - register_Type88_type_identifier(); - - register_Type89_type_identifier(); - - register_Type90_type_identifier(); - - register_Type91_type_identifier(); - - register_Type92_type_identifier(); - - register_Type93_type_identifier(); - - register_Type94_type_identifier(); - - register_Type95_type_identifier(); - - register_Type96_type_identifier(); - - register_Type97_type_identifier(); - - register_Type98_type_identifier(); - - register_Type99_type_identifier(); - - register_Type100_type_identifier(); - - register_TypeBig_type_identifier(); - - }); -} - -void register_Type4_type_identifier() -{ + ReturnCode_t return_code_Type4 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type4 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type4", type_ids_Type4); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type4) { - StructTypeFlag struct_flags_Type4 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type4 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type4; - TypeIdentifierPair type_ids_Type4; QualifiedTypeName type_name_Type4 = "Type4"; eprosima::fastcdr::optional type_ann_builtin_Type4; eprosima::fastcdr::optional ann_custom_Type4; @@ -266,60 +62,26 @@ void register_Type4_type_identifier() header_Type4 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type4); CompleteStructMemberSeq member_seq_Type4; { - return_code_Type4 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type4); + "_uint16_t", type_ids_index); - if (return_code_Type4 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type4.type_identifier1()._d() || TK_NONE == type_ids_Type4.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type4.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type4.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type4.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type4.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type4.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type4.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type4.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type4.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type4.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type4.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type4.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type4.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type4.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type4.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type4.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type4.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type4.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type4.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type4.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type4.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type4.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type4.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type4.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -331,29 +93,26 @@ void register_Type4_type_identifier() } CompleteStructType struct_type_Type4 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type4, header_Type4, member_seq_Type4); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type4, type_name_Type4.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type4, type_name_Type4.to_string(), type_ids_Type4)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type4 already registered in TypeObjectRegistry for a different type."); } - return_code_Type4 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type4", type_ids_Type4); - if (return_code_Type4 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type4: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type5_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type5_type_identifier( + TypeIdentifierPair& type_ids_Type5) { + + ReturnCode_t return_code_Type5 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type5 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type5", type_ids_Type5); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type5) { - StructTypeFlag struct_flags_Type5 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type5 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type5; - TypeIdentifierPair type_ids_Type5; QualifiedTypeName type_name_Type5 = "Type5"; eprosima::fastcdr::optional type_ann_builtin_Type5; eprosima::fastcdr::optional ann_custom_Type5; @@ -362,60 +121,26 @@ void register_Type5_type_identifier() header_Type5 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type5); CompleteStructMemberSeq member_seq_Type5; { - return_code_Type5 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type5); + "_uint16_t", type_ids_index); - if (return_code_Type5 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type5.type_identifier1()._d() || TK_NONE == type_ids_Type5.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type5.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type5.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type5.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type5.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type5.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type5.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type5.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type5.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type5.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type5.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type5.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type5.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type5.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type5.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type5.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type5.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type5.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type5.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type5.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type5.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type5.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type5.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type5.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -427,29 +152,26 @@ void register_Type5_type_identifier() } CompleteStructType struct_type_Type5 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type5, header_Type5, member_seq_Type5); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type5, type_name_Type5.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type5, type_name_Type5.to_string(), type_ids_Type5)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type5 already registered in TypeObjectRegistry for a different type."); } - return_code_Type5 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type5", type_ids_Type5); - if (return_code_Type5 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type5: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type6_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type6_type_identifier( + TypeIdentifierPair& type_ids_Type6) { + + ReturnCode_t return_code_Type6 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type6 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type6", type_ids_Type6); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type6) { - StructTypeFlag struct_flags_Type6 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type6 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type6; - TypeIdentifierPair type_ids_Type6; QualifiedTypeName type_name_Type6 = "Type6"; eprosima::fastcdr::optional type_ann_builtin_Type6; eprosima::fastcdr::optional ann_custom_Type6; @@ -458,60 +180,26 @@ void register_Type6_type_identifier() header_Type6 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type6); CompleteStructMemberSeq member_seq_Type6; { - return_code_Type6 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type6); + "_uint16_t", type_ids_index); - if (return_code_Type6 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type6.type_identifier1()._d() || TK_NONE == type_ids_Type6.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type6.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type6.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type6.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type6.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type6.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type6.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type6.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type6.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type6.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type6.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type6.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type6.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type6.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type6.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type6.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type6.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type6.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type6.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type6.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type6.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type6.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type6.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type6.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -523,29 +211,26 @@ void register_Type6_type_identifier() } CompleteStructType struct_type_Type6 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type6, header_Type6, member_seq_Type6); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type6, type_name_Type6.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type6, type_name_Type6.to_string(), type_ids_Type6)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type6 already registered in TypeObjectRegistry for a different type."); } - return_code_Type6 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type6", type_ids_Type6); - if (return_code_Type6 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type6: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type7_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type7_type_identifier( + TypeIdentifierPair& type_ids_Type7) { + + ReturnCode_t return_code_Type7 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type7 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type7", type_ids_Type7); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type7) { - StructTypeFlag struct_flags_Type7 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type7 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type7; - TypeIdentifierPair type_ids_Type7; QualifiedTypeName type_name_Type7 = "Type7"; eprosima::fastcdr::optional type_ann_builtin_Type7; eprosima::fastcdr::optional ann_custom_Type7; @@ -554,60 +239,26 @@ void register_Type7_type_identifier() header_Type7 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type7); CompleteStructMemberSeq member_seq_Type7; { - return_code_Type7 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type7); + "_uint16_t", type_ids_index); - if (return_code_Type7 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type7.type_identifier1()._d() || TK_NONE == type_ids_Type7.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type7.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type7.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type7.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type7.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type7.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type7.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type7.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type7.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type7.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type7.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type7.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type7.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type7.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type7.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type7.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type7.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type7.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type7.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type7.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type7.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type7.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type7.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type7.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -619,29 +270,26 @@ void register_Type7_type_identifier() } CompleteStructType struct_type_Type7 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type7, header_Type7, member_seq_Type7); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type7, type_name_Type7.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type7, type_name_Type7.to_string(), type_ids_Type7)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type7 already registered in TypeObjectRegistry for a different type."); } - return_code_Type7 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type7", type_ids_Type7); - if (return_code_Type7 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type7: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type8_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type8_type_identifier( + TypeIdentifierPair& type_ids_Type8) { + + ReturnCode_t return_code_Type8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type8", type_ids_Type8); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type8) { - StructTypeFlag struct_flags_Type8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type8; - TypeIdentifierPair type_ids_Type8; QualifiedTypeName type_name_Type8 = "Type8"; eprosima::fastcdr::optional type_ann_builtin_Type8; eprosima::fastcdr::optional ann_custom_Type8; @@ -650,60 +298,26 @@ void register_Type8_type_identifier() header_Type8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type8); CompleteStructMemberSeq member_seq_Type8; { - return_code_Type8 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type8); + "_uint16_t", type_ids_index); - if (return_code_Type8 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type8.type_identifier1()._d() || TK_NONE == type_ids_Type8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type8.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type8.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type8.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type8.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type8.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type8.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type8.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type8.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type8.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type8.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type8.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type8.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type8.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type8.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type8.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type8.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type8.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -715,29 +329,26 @@ void register_Type8_type_identifier() } CompleteStructType struct_type_Type8 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type8, header_Type8, member_seq_Type8); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type8, type_name_Type8.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type8, type_name_Type8.to_string(), type_ids_Type8)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type8 already registered in TypeObjectRegistry for a different type."); } - return_code_Type8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type8", type_ids_Type8); - if (return_code_Type8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type8: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type9_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type9_type_identifier( + TypeIdentifierPair& type_ids_Type9) { + + ReturnCode_t return_code_Type9 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type9 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type9", type_ids_Type9); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type9) { - StructTypeFlag struct_flags_Type9 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type9 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type9; - TypeIdentifierPair type_ids_Type9; QualifiedTypeName type_name_Type9 = "Type9"; eprosima::fastcdr::optional type_ann_builtin_Type9; eprosima::fastcdr::optional ann_custom_Type9; @@ -746,60 +357,26 @@ void register_Type9_type_identifier() header_Type9 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type9); CompleteStructMemberSeq member_seq_Type9; { - return_code_Type9 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type9); + "_uint16_t", type_ids_index); - if (return_code_Type9 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type9.type_identifier1()._d() || TK_NONE == type_ids_Type9.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type9.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type9.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type9.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type9.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type9.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type9.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type9.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type9.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type9.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type9.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type9.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type9.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type9.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type9.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type9.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type9.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type9.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type9.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type9.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type9.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type9.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type9.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type9.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -811,29 +388,26 @@ void register_Type9_type_identifier() } CompleteStructType struct_type_Type9 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type9, header_Type9, member_seq_Type9); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type9, type_name_Type9.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type9, type_name_Type9.to_string(), type_ids_Type9)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type9 already registered in TypeObjectRegistry for a different type."); } - return_code_Type9 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type9", type_ids_Type9); - if (return_code_Type9 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type9: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type10_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type10_type_identifier( + TypeIdentifierPair& type_ids_Type10) { + + ReturnCode_t return_code_Type10 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type10 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type10", type_ids_Type10); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type10) { - StructTypeFlag struct_flags_Type10 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type10 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type10; - TypeIdentifierPair type_ids_Type10; QualifiedTypeName type_name_Type10 = "Type10"; eprosima::fastcdr::optional type_ann_builtin_Type10; eprosima::fastcdr::optional ann_custom_Type10; @@ -842,60 +416,26 @@ void register_Type10_type_identifier() header_Type10 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type10); CompleteStructMemberSeq member_seq_Type10; { - return_code_Type10 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type10); + "_uint16_t", type_ids_index); - if (return_code_Type10 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type10.type_identifier1()._d() || TK_NONE == type_ids_Type10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type10.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type10.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type10.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type10.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type10.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type10.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type10.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type10.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type10.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type10.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type10.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type10.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type10.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type10.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type10.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type10.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type10.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -907,29 +447,26 @@ void register_Type10_type_identifier() } CompleteStructType struct_type_Type10 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type10, header_Type10, member_seq_Type10); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type10, type_name_Type10.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type10, type_name_Type10.to_string(), type_ids_Type10)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type10 already registered in TypeObjectRegistry for a different type."); } - return_code_Type10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type10", type_ids_Type10); - if (return_code_Type10 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type10: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type11_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type11_type_identifier( + TypeIdentifierPair& type_ids_Type11) { + + ReturnCode_t return_code_Type11 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type11 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type11", type_ids_Type11); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type11) { - StructTypeFlag struct_flags_Type11 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type11 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type11; - TypeIdentifierPair type_ids_Type11; QualifiedTypeName type_name_Type11 = "Type11"; eprosima::fastcdr::optional type_ann_builtin_Type11; eprosima::fastcdr::optional ann_custom_Type11; @@ -938,60 +475,26 @@ void register_Type11_type_identifier() header_Type11 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type11); CompleteStructMemberSeq member_seq_Type11; { - return_code_Type11 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type11); + "_uint16_t", type_ids_index); - if (return_code_Type11 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type11.type_identifier1()._d() || TK_NONE == type_ids_Type11.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type11.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type11.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type11.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type11.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type11.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type11.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type11.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type11.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type11.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type11.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type11.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type11.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type11.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type11.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type11.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type11.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type11.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type11.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type11.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type11.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type11.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type11.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type11.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1003,29 +506,26 @@ void register_Type11_type_identifier() } CompleteStructType struct_type_Type11 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type11, header_Type11, member_seq_Type11); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type11, type_name_Type11.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type11, type_name_Type11.to_string(), type_ids_Type11)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type11 already registered in TypeObjectRegistry for a different type."); } - return_code_Type11 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type11", type_ids_Type11); - if (return_code_Type11 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type11: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type12_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type12_type_identifier( + TypeIdentifierPair& type_ids_Type12) { + + ReturnCode_t return_code_Type12 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type12 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type12", type_ids_Type12); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type12) { - StructTypeFlag struct_flags_Type12 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type12 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type12; - TypeIdentifierPair type_ids_Type12; QualifiedTypeName type_name_Type12 = "Type12"; eprosima::fastcdr::optional type_ann_builtin_Type12; eprosima::fastcdr::optional ann_custom_Type12; @@ -1034,60 +534,26 @@ void register_Type12_type_identifier() header_Type12 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type12); CompleteStructMemberSeq member_seq_Type12; { - return_code_Type12 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type12); + "_uint16_t", type_ids_index); - if (return_code_Type12 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type12.type_identifier1()._d() || TK_NONE == type_ids_Type12.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type12.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type12.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type12.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type12.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type12.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type12.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type12.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type12.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type12.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type12.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type12.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type12.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type12.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type12.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type12.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type12.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type12.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type12.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type12.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type12.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type12.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type12.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type12.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1099,29 +565,26 @@ void register_Type12_type_identifier() } CompleteStructType struct_type_Type12 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type12, header_Type12, member_seq_Type12); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type12, type_name_Type12.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type12, type_name_Type12.to_string(), type_ids_Type12)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type12 already registered in TypeObjectRegistry for a different type."); } - return_code_Type12 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type12", type_ids_Type12); - if (return_code_Type12 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type12: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type13_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type13_type_identifier( + TypeIdentifierPair& type_ids_Type13) { + + ReturnCode_t return_code_Type13 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type13 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type13", type_ids_Type13); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type13) { - StructTypeFlag struct_flags_Type13 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type13 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type13; - TypeIdentifierPair type_ids_Type13; QualifiedTypeName type_name_Type13 = "Type13"; eprosima::fastcdr::optional type_ann_builtin_Type13; eprosima::fastcdr::optional ann_custom_Type13; @@ -1130,60 +593,26 @@ void register_Type13_type_identifier() header_Type13 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type13); CompleteStructMemberSeq member_seq_Type13; { - return_code_Type13 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type13); + "_uint16_t", type_ids_index); - if (return_code_Type13 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type13.type_identifier1()._d() || TK_NONE == type_ids_Type13.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type13.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type13.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type13.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type13.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type13.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type13.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type13.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type13.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type13.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type13.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type13.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type13.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type13.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type13.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type13.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type13.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type13.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type13.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type13.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type13.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type13.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type13.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type13.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1195,29 +624,26 @@ void register_Type13_type_identifier() } CompleteStructType struct_type_Type13 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type13, header_Type13, member_seq_Type13); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type13, type_name_Type13.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type13, type_name_Type13.to_string(), type_ids_Type13)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type13 already registered in TypeObjectRegistry for a different type."); } - return_code_Type13 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type13", type_ids_Type13); - if (return_code_Type13 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type13: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type14_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type14_type_identifier( + TypeIdentifierPair& type_ids_Type14) { + + ReturnCode_t return_code_Type14 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type14 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type14", type_ids_Type14); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type14) { - StructTypeFlag struct_flags_Type14 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type14 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type14; - TypeIdentifierPair type_ids_Type14; QualifiedTypeName type_name_Type14 = "Type14"; eprosima::fastcdr::optional type_ann_builtin_Type14; eprosima::fastcdr::optional ann_custom_Type14; @@ -1226,60 +652,26 @@ void register_Type14_type_identifier() header_Type14 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type14); CompleteStructMemberSeq member_seq_Type14; { - return_code_Type14 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type14); + "_uint16_t", type_ids_index); - if (return_code_Type14 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type14.type_identifier1()._d() || TK_NONE == type_ids_Type14.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type14.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type14.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type14.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type14.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type14.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type14.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type14.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type14.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type14.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type14.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type14.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type14.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type14.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type14.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type14.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type14.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type14.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type14.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type14.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type14.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type14.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type14.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type14.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1291,29 +683,26 @@ void register_Type14_type_identifier() } CompleteStructType struct_type_Type14 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type14, header_Type14, member_seq_Type14); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type14, type_name_Type14.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type14, type_name_Type14.to_string(), type_ids_Type14)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type14 already registered in TypeObjectRegistry for a different type."); } - return_code_Type14 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type14", type_ids_Type14); - if (return_code_Type14 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type14: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type15_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type15_type_identifier( + TypeIdentifierPair& type_ids_Type15) { + + ReturnCode_t return_code_Type15 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type15 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type15", type_ids_Type15); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type15) { - StructTypeFlag struct_flags_Type15 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type15 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type15; - TypeIdentifierPair type_ids_Type15; QualifiedTypeName type_name_Type15 = "Type15"; eprosima::fastcdr::optional type_ann_builtin_Type15; eprosima::fastcdr::optional ann_custom_Type15; @@ -1322,60 +711,26 @@ void register_Type15_type_identifier() header_Type15 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type15); CompleteStructMemberSeq member_seq_Type15; { - return_code_Type15 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type15); + "_uint16_t", type_ids_index); - if (return_code_Type15 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type15.type_identifier1()._d() || TK_NONE == type_ids_Type15.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type15.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type15.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type15.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type15.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type15.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type15.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type15.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type15.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type15.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type15.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type15.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type15.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type15.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type15.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type15.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type15.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type15.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type15.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type15.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type15.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type15.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type15.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type15.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1387,29 +742,26 @@ void register_Type15_type_identifier() } CompleteStructType struct_type_Type15 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type15, header_Type15, member_seq_Type15); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type15, type_name_Type15.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type15, type_name_Type15.to_string(), type_ids_Type15)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type15 already registered in TypeObjectRegistry for a different type."); } - return_code_Type15 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type15", type_ids_Type15); - if (return_code_Type15 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type15: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type16_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type16_type_identifier( + TypeIdentifierPair& type_ids_Type16) { + + ReturnCode_t return_code_Type16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type16", type_ids_Type16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type16) { - StructTypeFlag struct_flags_Type16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type16; - TypeIdentifierPair type_ids_Type16; QualifiedTypeName type_name_Type16 = "Type16"; eprosima::fastcdr::optional type_ann_builtin_Type16; eprosima::fastcdr::optional ann_custom_Type16; @@ -1418,60 +770,26 @@ void register_Type16_type_identifier() header_Type16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type16); CompleteStructMemberSeq member_seq_Type16; { - return_code_Type16 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type16); + "_uint16_t", type_ids_index); - if (return_code_Type16 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type16.type_identifier1()._d() || TK_NONE == type_ids_Type16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type16.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type16.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type16.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type16.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type16.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type16.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type16.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type16.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type16.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1483,29 +801,26 @@ void register_Type16_type_identifier() } CompleteStructType struct_type_Type16 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type16, header_Type16, member_seq_Type16); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type16, type_name_Type16.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type16, type_name_Type16.to_string(), type_ids_Type16)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type16 already registered in TypeObjectRegistry for a different type."); } - return_code_Type16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type16", type_ids_Type16); - if (return_code_Type16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type17_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type17_type_identifier( + TypeIdentifierPair& type_ids_Type17) { + + ReturnCode_t return_code_Type17 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type17 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type17", type_ids_Type17); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type17) { - StructTypeFlag struct_flags_Type17 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type17 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type17; - TypeIdentifierPair type_ids_Type17; QualifiedTypeName type_name_Type17 = "Type17"; eprosima::fastcdr::optional type_ann_builtin_Type17; eprosima::fastcdr::optional ann_custom_Type17; @@ -1514,60 +829,26 @@ void register_Type17_type_identifier() header_Type17 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type17); CompleteStructMemberSeq member_seq_Type17; { - return_code_Type17 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type17); + "_uint16_t", type_ids_index); - if (return_code_Type17 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type17.type_identifier1()._d() || TK_NONE == type_ids_Type17.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type17.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type17.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type17.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type17.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type17.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type17.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type17.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type17.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type17.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type17.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type17.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type17.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type17.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type17.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type17.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type17.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type17.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type17.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type17.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type17.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type17.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type17.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type17.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1579,29 +860,26 @@ void register_Type17_type_identifier() } CompleteStructType struct_type_Type17 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type17, header_Type17, member_seq_Type17); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type17, type_name_Type17.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type17, type_name_Type17.to_string(), type_ids_Type17)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type17 already registered in TypeObjectRegistry for a different type."); } - return_code_Type17 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type17", type_ids_Type17); - if (return_code_Type17 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type17: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type18_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type18_type_identifier( + TypeIdentifierPair& type_ids_Type18) { + + ReturnCode_t return_code_Type18 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type18 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type18", type_ids_Type18); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type18) { - StructTypeFlag struct_flags_Type18 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type18 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type18; - TypeIdentifierPair type_ids_Type18; QualifiedTypeName type_name_Type18 = "Type18"; eprosima::fastcdr::optional type_ann_builtin_Type18; eprosima::fastcdr::optional ann_custom_Type18; @@ -1610,60 +888,26 @@ void register_Type18_type_identifier() header_Type18 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type18); CompleteStructMemberSeq member_seq_Type18; { - return_code_Type18 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type18); + "_uint16_t", type_ids_index); - if (return_code_Type18 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type18.type_identifier1()._d() || TK_NONE == type_ids_Type18.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type18.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type18.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type18.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type18.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type18.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type18.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type18.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type18.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type18.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type18.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type18.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type18.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type18.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type18.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type18.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type18.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type18.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type18.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type18.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type18.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type18.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type18.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type18.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1675,29 +919,26 @@ void register_Type18_type_identifier() } CompleteStructType struct_type_Type18 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type18, header_Type18, member_seq_Type18); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type18, type_name_Type18.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type18, type_name_Type18.to_string(), type_ids_Type18)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type18 already registered in TypeObjectRegistry for a different type."); } - return_code_Type18 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type18", type_ids_Type18); - if (return_code_Type18 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type18: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type19_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type19_type_identifier( + TypeIdentifierPair& type_ids_Type19) { + + ReturnCode_t return_code_Type19 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type19 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type19", type_ids_Type19); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type19) { - StructTypeFlag struct_flags_Type19 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type19 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type19; - TypeIdentifierPair type_ids_Type19; QualifiedTypeName type_name_Type19 = "Type19"; eprosima::fastcdr::optional type_ann_builtin_Type19; eprosima::fastcdr::optional ann_custom_Type19; @@ -1706,60 +947,26 @@ void register_Type19_type_identifier() header_Type19 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type19); CompleteStructMemberSeq member_seq_Type19; { - return_code_Type19 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type19); + "_uint16_t", type_ids_index); - if (return_code_Type19 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type19.type_identifier1()._d() || TK_NONE == type_ids_Type19.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type19.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type19.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type19.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type19.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type19.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type19.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type19.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type19.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type19.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type19.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type19.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type19.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type19.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type19.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type19.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type19.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type19.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type19.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type19.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type19.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type19.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type19.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type19.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1771,29 +978,26 @@ void register_Type19_type_identifier() } CompleteStructType struct_type_Type19 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type19, header_Type19, member_seq_Type19); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type19, type_name_Type19.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type19, type_name_Type19.to_string(), type_ids_Type19)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type19 already registered in TypeObjectRegistry for a different type."); } - return_code_Type19 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type19", type_ids_Type19); - if (return_code_Type19 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type19: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type20_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type20_type_identifier( + TypeIdentifierPair& type_ids_Type20) { + + ReturnCode_t return_code_Type20 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type20 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type20", type_ids_Type20); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type20) { - StructTypeFlag struct_flags_Type20 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type20 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type20; - TypeIdentifierPair type_ids_Type20; QualifiedTypeName type_name_Type20 = "Type20"; eprosima::fastcdr::optional type_ann_builtin_Type20; eprosima::fastcdr::optional ann_custom_Type20; @@ -1802,60 +1006,26 @@ void register_Type20_type_identifier() header_Type20 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type20); CompleteStructMemberSeq member_seq_Type20; { - return_code_Type20 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type20); + "_uint16_t", type_ids_index); - if (return_code_Type20 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type20.type_identifier1()._d() || TK_NONE == type_ids_Type20.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type20.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type20.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type20.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type20.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type20.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type20.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type20.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type20.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type20.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type20.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type20.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type20.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type20.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type20.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type20.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type20.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type20.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type20.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type20.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type20.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type20.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type20.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type20.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1867,29 +1037,26 @@ void register_Type20_type_identifier() } CompleteStructType struct_type_Type20 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type20, header_Type20, member_seq_Type20); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type20, type_name_Type20.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type20, type_name_Type20.to_string(), type_ids_Type20)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type20 already registered in TypeObjectRegistry for a different type."); } - return_code_Type20 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type20", type_ids_Type20); - if (return_code_Type20 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type20: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type21_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type21_type_identifier( + TypeIdentifierPair& type_ids_Type21) { + + ReturnCode_t return_code_Type21 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type21 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type21", type_ids_Type21); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type21) { - StructTypeFlag struct_flags_Type21 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type21 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type21; - TypeIdentifierPair type_ids_Type21; QualifiedTypeName type_name_Type21 = "Type21"; eprosima::fastcdr::optional type_ann_builtin_Type21; eprosima::fastcdr::optional ann_custom_Type21; @@ -1898,60 +1065,26 @@ void register_Type21_type_identifier() header_Type21 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type21); CompleteStructMemberSeq member_seq_Type21; { - return_code_Type21 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type21); + "_uint16_t", type_ids_index); - if (return_code_Type21 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type21.type_identifier1()._d() || TK_NONE == type_ids_Type21.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type21.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type21.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type21.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type21.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type21.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type21.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type21.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type21.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type21.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type21.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type21.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type21.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type21.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type21.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type21.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type21.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type21.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type21.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type21.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type21.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type21.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type21.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type21.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -1963,29 +1096,26 @@ void register_Type21_type_identifier() } CompleteStructType struct_type_Type21 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type21, header_Type21, member_seq_Type21); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type21, type_name_Type21.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type21, type_name_Type21.to_string(), type_ids_Type21)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type21 already registered in TypeObjectRegistry for a different type."); } - return_code_Type21 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type21", type_ids_Type21); - if (return_code_Type21 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type21: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type22_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type22_type_identifier( + TypeIdentifierPair& type_ids_Type22) { + + ReturnCode_t return_code_Type22 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type22 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type22", type_ids_Type22); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type22) { - StructTypeFlag struct_flags_Type22 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type22 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type22; - TypeIdentifierPair type_ids_Type22; QualifiedTypeName type_name_Type22 = "Type22"; eprosima::fastcdr::optional type_ann_builtin_Type22; eprosima::fastcdr::optional ann_custom_Type22; @@ -1994,60 +1124,26 @@ void register_Type22_type_identifier() header_Type22 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type22); CompleteStructMemberSeq member_seq_Type22; { - return_code_Type22 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type22); + "_uint16_t", type_ids_index); - if (return_code_Type22 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type22.type_identifier1()._d() || TK_NONE == type_ids_Type22.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type22.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type22.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type22.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type22.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type22.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type22.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type22.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type22.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type22.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type22.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type22.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type22.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type22.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type22.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type22.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type22.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type22.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type22.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type22.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type22.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type22.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type22.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type22.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2059,29 +1155,26 @@ void register_Type22_type_identifier() } CompleteStructType struct_type_Type22 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type22, header_Type22, member_seq_Type22); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type22, type_name_Type22.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type22, type_name_Type22.to_string(), type_ids_Type22)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type22 already registered in TypeObjectRegistry for a different type."); } - return_code_Type22 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type22", type_ids_Type22); - if (return_code_Type22 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type22: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type23_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type23_type_identifier( + TypeIdentifierPair& type_ids_Type23) { + + ReturnCode_t return_code_Type23 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type23 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type23", type_ids_Type23); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type23) { - StructTypeFlag struct_flags_Type23 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type23 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type23; - TypeIdentifierPair type_ids_Type23; QualifiedTypeName type_name_Type23 = "Type23"; eprosima::fastcdr::optional type_ann_builtin_Type23; eprosima::fastcdr::optional ann_custom_Type23; @@ -2090,60 +1183,26 @@ void register_Type23_type_identifier() header_Type23 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type23); CompleteStructMemberSeq member_seq_Type23; { - return_code_Type23 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type23); + "_uint16_t", type_ids_index); - if (return_code_Type23 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type23.type_identifier1()._d() || TK_NONE == type_ids_Type23.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type23.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type23.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type23.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type23.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type23.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type23.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type23.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type23.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type23.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type23.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type23.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type23.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type23.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type23.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type23.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type23.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type23.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type23.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type23.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type23.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type23.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type23.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type23.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2155,29 +1214,26 @@ void register_Type23_type_identifier() } CompleteStructType struct_type_Type23 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type23, header_Type23, member_seq_Type23); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type23, type_name_Type23.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type23, type_name_Type23.to_string(), type_ids_Type23)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type23 already registered in TypeObjectRegistry for a different type."); } - return_code_Type23 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type23", type_ids_Type23); - if (return_code_Type23 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type23: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type24_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type24_type_identifier( + TypeIdentifierPair& type_ids_Type24) { + + ReturnCode_t return_code_Type24 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type24 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type24", type_ids_Type24); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type24) { - StructTypeFlag struct_flags_Type24 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type24 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type24; - TypeIdentifierPair type_ids_Type24; QualifiedTypeName type_name_Type24 = "Type24"; eprosima::fastcdr::optional type_ann_builtin_Type24; eprosima::fastcdr::optional ann_custom_Type24; @@ -2186,60 +1242,26 @@ void register_Type24_type_identifier() header_Type24 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type24); CompleteStructMemberSeq member_seq_Type24; { - return_code_Type24 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type24); + "_uint16_t", type_ids_index); - if (return_code_Type24 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type24.type_identifier1()._d() || TK_NONE == type_ids_Type24.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type24.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type24.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type24.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type24.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type24.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type24.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type24.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type24.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type24.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type24.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type24.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type24.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type24.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type24.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type24.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type24.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type24.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type24.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type24.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type24.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type24.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type24.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type24.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2251,29 +1273,26 @@ void register_Type24_type_identifier() } CompleteStructType struct_type_Type24 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type24, header_Type24, member_seq_Type24); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type24, type_name_Type24.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type24, type_name_Type24.to_string(), type_ids_Type24)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type24 already registered in TypeObjectRegistry for a different type."); } - return_code_Type24 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type24", type_ids_Type24); - if (return_code_Type24 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type24: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type25_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type25_type_identifier( + TypeIdentifierPair& type_ids_Type25) { + + ReturnCode_t return_code_Type25 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type25 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type25", type_ids_Type25); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type25) { - StructTypeFlag struct_flags_Type25 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type25 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type25; - TypeIdentifierPair type_ids_Type25; QualifiedTypeName type_name_Type25 = "Type25"; eprosima::fastcdr::optional type_ann_builtin_Type25; eprosima::fastcdr::optional ann_custom_Type25; @@ -2282,60 +1301,26 @@ void register_Type25_type_identifier() header_Type25 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type25); CompleteStructMemberSeq member_seq_Type25; { - return_code_Type25 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type25); + "_uint16_t", type_ids_index); - if (return_code_Type25 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type25.type_identifier1()._d() || TK_NONE == type_ids_Type25.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type25.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type25.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type25.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type25.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type25.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type25.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type25.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type25.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type25.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type25.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type25.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type25.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type25.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type25.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type25.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type25.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type25.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type25.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type25.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type25.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type25.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type25.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type25.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2347,29 +1332,26 @@ void register_Type25_type_identifier() } CompleteStructType struct_type_Type25 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type25, header_Type25, member_seq_Type25); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type25, type_name_Type25.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type25, type_name_Type25.to_string(), type_ids_Type25)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type25 already registered in TypeObjectRegistry for a different type."); } - return_code_Type25 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type25", type_ids_Type25); - if (return_code_Type25 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type25: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type26_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type26_type_identifier( + TypeIdentifierPair& type_ids_Type26) { + + ReturnCode_t return_code_Type26 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type26 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type26", type_ids_Type26); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type26) { - StructTypeFlag struct_flags_Type26 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type26 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type26; - TypeIdentifierPair type_ids_Type26; QualifiedTypeName type_name_Type26 = "Type26"; eprosima::fastcdr::optional type_ann_builtin_Type26; eprosima::fastcdr::optional ann_custom_Type26; @@ -2378,60 +1360,26 @@ void register_Type26_type_identifier() header_Type26 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type26); CompleteStructMemberSeq member_seq_Type26; { - return_code_Type26 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type26); + "_uint16_t", type_ids_index); - if (return_code_Type26 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type26.type_identifier1()._d() || TK_NONE == type_ids_Type26.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type26.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type26.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type26.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type26.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type26.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type26.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type26.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type26.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type26.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type26.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type26.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type26.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type26.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type26.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type26.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type26.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type26.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type26.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type26.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type26.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type26.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type26.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type26.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2443,29 +1391,26 @@ void register_Type26_type_identifier() } CompleteStructType struct_type_Type26 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type26, header_Type26, member_seq_Type26); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type26, type_name_Type26.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type26, type_name_Type26.to_string(), type_ids_Type26)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type26 already registered in TypeObjectRegistry for a different type."); } - return_code_Type26 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type26", type_ids_Type26); - if (return_code_Type26 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type26: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type27_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type27_type_identifier( + TypeIdentifierPair& type_ids_Type27) { + + ReturnCode_t return_code_Type27 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type27 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type27", type_ids_Type27); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type27) { - StructTypeFlag struct_flags_Type27 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type27 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type27; - TypeIdentifierPair type_ids_Type27; QualifiedTypeName type_name_Type27 = "Type27"; eprosima::fastcdr::optional type_ann_builtin_Type27; eprosima::fastcdr::optional ann_custom_Type27; @@ -2474,60 +1419,26 @@ void register_Type27_type_identifier() header_Type27 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type27); CompleteStructMemberSeq member_seq_Type27; { - return_code_Type27 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type27); + "_uint16_t", type_ids_index); - if (return_code_Type27 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type27.type_identifier1()._d() || TK_NONE == type_ids_Type27.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type27.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type27.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type27.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type27.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type27.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type27.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type27.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type27.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type27.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type27.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type27.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type27.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type27.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type27.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type27.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type27.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type27.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type27.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type27.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type27.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type27.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type27.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type27.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2539,29 +1450,26 @@ void register_Type27_type_identifier() } CompleteStructType struct_type_Type27 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type27, header_Type27, member_seq_Type27); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type27, type_name_Type27.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type27, type_name_Type27.to_string(), type_ids_Type27)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type27 already registered in TypeObjectRegistry for a different type."); } - return_code_Type27 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type27", type_ids_Type27); - if (return_code_Type27 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type27: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type28_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type28_type_identifier( + TypeIdentifierPair& type_ids_Type28) { + + ReturnCode_t return_code_Type28 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type28 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type28", type_ids_Type28); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type28) { - StructTypeFlag struct_flags_Type28 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type28 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type28; - TypeIdentifierPair type_ids_Type28; QualifiedTypeName type_name_Type28 = "Type28"; eprosima::fastcdr::optional type_ann_builtin_Type28; eprosima::fastcdr::optional ann_custom_Type28; @@ -2570,60 +1478,26 @@ void register_Type28_type_identifier() header_Type28 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type28); CompleteStructMemberSeq member_seq_Type28; { - return_code_Type28 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type28); + "_uint16_t", type_ids_index); - if (return_code_Type28 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type28.type_identifier1()._d() || TK_NONE == type_ids_Type28.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type28.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type28.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type28.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type28.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type28.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type28.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type28.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type28.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type28.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type28.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type28.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type28.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type28.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type28.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type28.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type28.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type28.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type28.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type28.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type28.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type28.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type28.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type28.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2635,29 +1509,26 @@ void register_Type28_type_identifier() } CompleteStructType struct_type_Type28 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type28, header_Type28, member_seq_Type28); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type28, type_name_Type28.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type28, type_name_Type28.to_string(), type_ids_Type28)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type28 already registered in TypeObjectRegistry for a different type."); } - return_code_Type28 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type28", type_ids_Type28); - if (return_code_Type28 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type28: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type29_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type29_type_identifier( + TypeIdentifierPair& type_ids_Type29) { + + ReturnCode_t return_code_Type29 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type29 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type29", type_ids_Type29); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type29) { - StructTypeFlag struct_flags_Type29 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type29 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type29; - TypeIdentifierPair type_ids_Type29; QualifiedTypeName type_name_Type29 = "Type29"; eprosima::fastcdr::optional type_ann_builtin_Type29; eprosima::fastcdr::optional ann_custom_Type29; @@ -2666,60 +1537,26 @@ void register_Type29_type_identifier() header_Type29 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type29); CompleteStructMemberSeq member_seq_Type29; { - return_code_Type29 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type29); + "_uint16_t", type_ids_index); - if (return_code_Type29 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type29.type_identifier1()._d() || TK_NONE == type_ids_Type29.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type29.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type29.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type29.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type29.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type29.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type29.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type29.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type29.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type29.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type29.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type29.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type29.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type29.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type29.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type29.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type29.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type29.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type29.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type29.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type29.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type29.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type29.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type29.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2731,29 +1568,26 @@ void register_Type29_type_identifier() } CompleteStructType struct_type_Type29 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type29, header_Type29, member_seq_Type29); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type29, type_name_Type29.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type29, type_name_Type29.to_string(), type_ids_Type29)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type29 already registered in TypeObjectRegistry for a different type."); } - return_code_Type29 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type29", type_ids_Type29); - if (return_code_Type29 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type29: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type30_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type30_type_identifier( + TypeIdentifierPair& type_ids_Type30) { + + ReturnCode_t return_code_Type30 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type30 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type30", type_ids_Type30); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type30) { - StructTypeFlag struct_flags_Type30 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type30 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type30; - TypeIdentifierPair type_ids_Type30; QualifiedTypeName type_name_Type30 = "Type30"; eprosima::fastcdr::optional type_ann_builtin_Type30; eprosima::fastcdr::optional ann_custom_Type30; @@ -2762,60 +1596,26 @@ void register_Type30_type_identifier() header_Type30 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type30); CompleteStructMemberSeq member_seq_Type30; { - return_code_Type30 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type30); + "_uint16_t", type_ids_index); - if (return_code_Type30 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type30.type_identifier1()._d() || TK_NONE == type_ids_Type30.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type30.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type30.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type30.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type30.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type30.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type30.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type30.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type30.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type30.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type30.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type30.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type30.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type30.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type30.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type30.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type30.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type30.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type30.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type30.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type30.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type30.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type30.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type30.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2827,29 +1627,26 @@ void register_Type30_type_identifier() } CompleteStructType struct_type_Type30 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type30, header_Type30, member_seq_Type30); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type30, type_name_Type30.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type30, type_name_Type30.to_string(), type_ids_Type30)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type30 already registered in TypeObjectRegistry for a different type."); } - return_code_Type30 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type30", type_ids_Type30); - if (return_code_Type30 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type30: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type31_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type31_type_identifier( + TypeIdentifierPair& type_ids_Type31) { + + ReturnCode_t return_code_Type31 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type31 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type31", type_ids_Type31); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type31) { - StructTypeFlag struct_flags_Type31 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type31 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type31; - TypeIdentifierPair type_ids_Type31; QualifiedTypeName type_name_Type31 = "Type31"; eprosima::fastcdr::optional type_ann_builtin_Type31; eprosima::fastcdr::optional ann_custom_Type31; @@ -2858,60 +1655,26 @@ void register_Type31_type_identifier() header_Type31 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type31); CompleteStructMemberSeq member_seq_Type31; { - return_code_Type31 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type31); + "_uint16_t", type_ids_index); - if (return_code_Type31 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type31.type_identifier1()._d() || TK_NONE == type_ids_Type31.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type31.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type31.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type31.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type31.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type31.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type31.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type31.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type31.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type31.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type31.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type31.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type31.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type31.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type31.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type31.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type31.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type31.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type31.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type31.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type31.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type31.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type31.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type31.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -2923,29 +1686,26 @@ void register_Type31_type_identifier() } CompleteStructType struct_type_Type31 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type31, header_Type31, member_seq_Type31); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type31, type_name_Type31.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type31, type_name_Type31.to_string(), type_ids_Type31)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type31 already registered in TypeObjectRegistry for a different type."); } - return_code_Type31 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type31", type_ids_Type31); - if (return_code_Type31 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type31: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type32_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type32_type_identifier( + TypeIdentifierPair& type_ids_Type32) { + + ReturnCode_t return_code_Type32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type32", type_ids_Type32); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type32) { - StructTypeFlag struct_flags_Type32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type32; - TypeIdentifierPair type_ids_Type32; QualifiedTypeName type_name_Type32 = "Type32"; eprosima::fastcdr::optional type_ann_builtin_Type32; eprosima::fastcdr::optional ann_custom_Type32; @@ -2954,60 +1714,26 @@ void register_Type32_type_identifier() header_Type32 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type32); CompleteStructMemberSeq member_seq_Type32; { - return_code_Type32 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type32); + "_uint16_t", type_ids_index); - if (return_code_Type32 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type32.type_identifier1()._d() || TK_NONE == type_ids_Type32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type32.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type32.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type32.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type32.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type32.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type32.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type32.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type32.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type32.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type32.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type32.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type32.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type32.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type32.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type32.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type32.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type32.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type32.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3019,29 +1745,26 @@ void register_Type32_type_identifier() } CompleteStructType struct_type_Type32 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type32, header_Type32, member_seq_Type32); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type32, type_name_Type32.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type32, type_name_Type32.to_string(), type_ids_Type32)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type32 already registered in TypeObjectRegistry for a different type."); } - return_code_Type32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type32", type_ids_Type32); - if (return_code_Type32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type32: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type33_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type33_type_identifier( + TypeIdentifierPair& type_ids_Type33) { + + ReturnCode_t return_code_Type33 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type33 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type33", type_ids_Type33); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type33) { - StructTypeFlag struct_flags_Type33 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type33 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type33; - TypeIdentifierPair type_ids_Type33; QualifiedTypeName type_name_Type33 = "Type33"; eprosima::fastcdr::optional type_ann_builtin_Type33; eprosima::fastcdr::optional ann_custom_Type33; @@ -3050,60 +1773,26 @@ void register_Type33_type_identifier() header_Type33 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type33); CompleteStructMemberSeq member_seq_Type33; { - return_code_Type33 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type33); + "_uint16_t", type_ids_index); - if (return_code_Type33 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type33.type_identifier1()._d() || TK_NONE == type_ids_Type33.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type33.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type33.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type33.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type33.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type33.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type33.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type33.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type33.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type33.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type33.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type33.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type33.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type33.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type33.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type33.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type33.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type33.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type33.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type33.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type33.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type33.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type33.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type33.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3115,29 +1804,26 @@ void register_Type33_type_identifier() } CompleteStructType struct_type_Type33 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type33, header_Type33, member_seq_Type33); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type33, type_name_Type33.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type33, type_name_Type33.to_string(), type_ids_Type33)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type33 already registered in TypeObjectRegistry for a different type."); } - return_code_Type33 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type33", type_ids_Type33); - if (return_code_Type33 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type33: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type34_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type34_type_identifier( + TypeIdentifierPair& type_ids_Type34) { + + ReturnCode_t return_code_Type34 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type34 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type34", type_ids_Type34); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type34) { - StructTypeFlag struct_flags_Type34 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type34 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type34; - TypeIdentifierPair type_ids_Type34; QualifiedTypeName type_name_Type34 = "Type34"; eprosima::fastcdr::optional type_ann_builtin_Type34; eprosima::fastcdr::optional ann_custom_Type34; @@ -3146,60 +1832,26 @@ void register_Type34_type_identifier() header_Type34 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type34); CompleteStructMemberSeq member_seq_Type34; { - return_code_Type34 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type34); + "_uint16_t", type_ids_index); - if (return_code_Type34 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type34.type_identifier1()._d() || TK_NONE == type_ids_Type34.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type34.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type34.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type34.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type34.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type34.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type34.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type34.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type34.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type34.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type34.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type34.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type34.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type34.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type34.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type34.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type34.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type34.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type34.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type34.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type34.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type34.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type34.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type34.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3211,29 +1863,26 @@ void register_Type34_type_identifier() } CompleteStructType struct_type_Type34 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type34, header_Type34, member_seq_Type34); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type34, type_name_Type34.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type34, type_name_Type34.to_string(), type_ids_Type34)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type34 already registered in TypeObjectRegistry for a different type."); } - return_code_Type34 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type34", type_ids_Type34); - if (return_code_Type34 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type34: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type35_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type35_type_identifier( + TypeIdentifierPair& type_ids_Type35) { + + ReturnCode_t return_code_Type35 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type35 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type35", type_ids_Type35); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type35) { - StructTypeFlag struct_flags_Type35 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type35 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type35; - TypeIdentifierPair type_ids_Type35; QualifiedTypeName type_name_Type35 = "Type35"; eprosima::fastcdr::optional type_ann_builtin_Type35; eprosima::fastcdr::optional ann_custom_Type35; @@ -3242,60 +1891,26 @@ void register_Type35_type_identifier() header_Type35 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type35); CompleteStructMemberSeq member_seq_Type35; { - return_code_Type35 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type35); + "_uint16_t", type_ids_index); - if (return_code_Type35 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type35.type_identifier1()._d() || TK_NONE == type_ids_Type35.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type35.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type35.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type35.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type35.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type35.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type35.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type35.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type35.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type35.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type35.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type35.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type35.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type35.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type35.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type35.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type35.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type35.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type35.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type35.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type35.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type35.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type35.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type35.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3307,29 +1922,26 @@ void register_Type35_type_identifier() } CompleteStructType struct_type_Type35 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type35, header_Type35, member_seq_Type35); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type35, type_name_Type35.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type35, type_name_Type35.to_string(), type_ids_Type35)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type35 already registered in TypeObjectRegistry for a different type."); } - return_code_Type35 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type35", type_ids_Type35); - if (return_code_Type35 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type35: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type36_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type36_type_identifier( + TypeIdentifierPair& type_ids_Type36) { + + ReturnCode_t return_code_Type36 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type36 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type36", type_ids_Type36); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type36) { - StructTypeFlag struct_flags_Type36 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type36 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type36; - TypeIdentifierPair type_ids_Type36; QualifiedTypeName type_name_Type36 = "Type36"; eprosima::fastcdr::optional type_ann_builtin_Type36; eprosima::fastcdr::optional ann_custom_Type36; @@ -3338,60 +1950,26 @@ void register_Type36_type_identifier() header_Type36 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type36); CompleteStructMemberSeq member_seq_Type36; { - return_code_Type36 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type36); + "_uint16_t", type_ids_index); - if (return_code_Type36 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type36.type_identifier1()._d() || TK_NONE == type_ids_Type36.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type36.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type36.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type36.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type36.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type36.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type36.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type36.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type36.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type36.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type36.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type36.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type36.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type36.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type36.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type36.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type36.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type36.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type36.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type36.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type36.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type36.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type36.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type36.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3403,29 +1981,26 @@ void register_Type36_type_identifier() } CompleteStructType struct_type_Type36 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type36, header_Type36, member_seq_Type36); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type36, type_name_Type36.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type36, type_name_Type36.to_string(), type_ids_Type36)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type36 already registered in TypeObjectRegistry for a different type."); } - return_code_Type36 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type36", type_ids_Type36); - if (return_code_Type36 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type36: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type37_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type37_type_identifier( + TypeIdentifierPair& type_ids_Type37) { + + ReturnCode_t return_code_Type37 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type37 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type37", type_ids_Type37); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type37) { - StructTypeFlag struct_flags_Type37 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type37 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type37; - TypeIdentifierPair type_ids_Type37; QualifiedTypeName type_name_Type37 = "Type37"; eprosima::fastcdr::optional type_ann_builtin_Type37; eprosima::fastcdr::optional ann_custom_Type37; @@ -3434,60 +2009,26 @@ void register_Type37_type_identifier() header_Type37 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type37); CompleteStructMemberSeq member_seq_Type37; { - return_code_Type37 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type37); + "_uint16_t", type_ids_index); - if (return_code_Type37 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type37.type_identifier1()._d() || TK_NONE == type_ids_Type37.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type37.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type37.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type37.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type37.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type37.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type37.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type37.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type37.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type37.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type37.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type37.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type37.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type37.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type37.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type37.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type37.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type37.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type37.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type37.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type37.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type37.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type37.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type37.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3499,29 +2040,26 @@ void register_Type37_type_identifier() } CompleteStructType struct_type_Type37 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type37, header_Type37, member_seq_Type37); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type37, type_name_Type37.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type37, type_name_Type37.to_string(), type_ids_Type37)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type37 already registered in TypeObjectRegistry for a different type."); } - return_code_Type37 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type37", type_ids_Type37); - if (return_code_Type37 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type37: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type38_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type38_type_identifier( + TypeIdentifierPair& type_ids_Type38) { + + ReturnCode_t return_code_Type38 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type38 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type38", type_ids_Type38); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type38) { - StructTypeFlag struct_flags_Type38 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type38 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type38; - TypeIdentifierPair type_ids_Type38; QualifiedTypeName type_name_Type38 = "Type38"; eprosima::fastcdr::optional type_ann_builtin_Type38; eprosima::fastcdr::optional ann_custom_Type38; @@ -3530,60 +2068,26 @@ void register_Type38_type_identifier() header_Type38 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type38); CompleteStructMemberSeq member_seq_Type38; { - return_code_Type38 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type38); + "_uint16_t", type_ids_index); - if (return_code_Type38 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type38.type_identifier1()._d() || TK_NONE == type_ids_Type38.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type38.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type38.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type38.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type38.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type38.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type38.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type38.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type38.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type38.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type38.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type38.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type38.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type38.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type38.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type38.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type38.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type38.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type38.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type38.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type38.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type38.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type38.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type38.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3595,29 +2099,26 @@ void register_Type38_type_identifier() } CompleteStructType struct_type_Type38 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type38, header_Type38, member_seq_Type38); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type38, type_name_Type38.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type38, type_name_Type38.to_string(), type_ids_Type38)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type38 already registered in TypeObjectRegistry for a different type."); } - return_code_Type38 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type38", type_ids_Type38); - if (return_code_Type38 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type38: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type39_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type39_type_identifier( + TypeIdentifierPair& type_ids_Type39) { + + ReturnCode_t return_code_Type39 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type39 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type39", type_ids_Type39); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type39) { - StructTypeFlag struct_flags_Type39 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type39 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type39; - TypeIdentifierPair type_ids_Type39; QualifiedTypeName type_name_Type39 = "Type39"; eprosima::fastcdr::optional type_ann_builtin_Type39; eprosima::fastcdr::optional ann_custom_Type39; @@ -3626,60 +2127,26 @@ void register_Type39_type_identifier() header_Type39 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type39); CompleteStructMemberSeq member_seq_Type39; { - return_code_Type39 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type39); + "_uint16_t", type_ids_index); - if (return_code_Type39 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type39.type_identifier1()._d() || TK_NONE == type_ids_Type39.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type39.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type39.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type39.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type39.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type39.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type39.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type39.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type39.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type39.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type39.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type39.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type39.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type39.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type39.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type39.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type39.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type39.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type39.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type39.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type39.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type39.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type39.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type39.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3691,29 +2158,26 @@ void register_Type39_type_identifier() } CompleteStructType struct_type_Type39 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type39, header_Type39, member_seq_Type39); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type39, type_name_Type39.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type39, type_name_Type39.to_string(), type_ids_Type39)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type39 already registered in TypeObjectRegistry for a different type."); } - return_code_Type39 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type39", type_ids_Type39); - if (return_code_Type39 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type39: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type40_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type40_type_identifier( + TypeIdentifierPair& type_ids_Type40) { + + ReturnCode_t return_code_Type40 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type40 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type40", type_ids_Type40); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type40) { - StructTypeFlag struct_flags_Type40 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type40 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type40; - TypeIdentifierPair type_ids_Type40; QualifiedTypeName type_name_Type40 = "Type40"; eprosima::fastcdr::optional type_ann_builtin_Type40; eprosima::fastcdr::optional ann_custom_Type40; @@ -3722,60 +2186,26 @@ void register_Type40_type_identifier() header_Type40 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type40); CompleteStructMemberSeq member_seq_Type40; { - return_code_Type40 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type40); + "_uint16_t", type_ids_index); - if (return_code_Type40 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type40.type_identifier1()._d() || TK_NONE == type_ids_Type40.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type40.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type40.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type40.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type40.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type40.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type40.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type40.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type40.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type40.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type40.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type40.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type40.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type40.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type40.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type40.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type40.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type40.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type40.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type40.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type40.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type40.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type40.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type40.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3787,29 +2217,26 @@ void register_Type40_type_identifier() } CompleteStructType struct_type_Type40 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type40, header_Type40, member_seq_Type40); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type40, type_name_Type40.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type40, type_name_Type40.to_string(), type_ids_Type40)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type40 already registered in TypeObjectRegistry for a different type."); } - return_code_Type40 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type40", type_ids_Type40); - if (return_code_Type40 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type40: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type41_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type41_type_identifier( + TypeIdentifierPair& type_ids_Type41) { + + ReturnCode_t return_code_Type41 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type41 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type41", type_ids_Type41); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type41) { - StructTypeFlag struct_flags_Type41 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type41 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type41; - TypeIdentifierPair type_ids_Type41; QualifiedTypeName type_name_Type41 = "Type41"; eprosima::fastcdr::optional type_ann_builtin_Type41; eprosima::fastcdr::optional ann_custom_Type41; @@ -3818,60 +2245,26 @@ void register_Type41_type_identifier() header_Type41 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type41); CompleteStructMemberSeq member_seq_Type41; { - return_code_Type41 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type41); + "_uint16_t", type_ids_index); - if (return_code_Type41 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type41.type_identifier1()._d() || TK_NONE == type_ids_Type41.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type41.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type41.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type41.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type41.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type41.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type41.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type41.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type41.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type41.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type41.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type41.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type41.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type41.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type41.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type41.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type41.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type41.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type41.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type41.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type41.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type41.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type41.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type41.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3883,29 +2276,26 @@ void register_Type41_type_identifier() } CompleteStructType struct_type_Type41 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type41, header_Type41, member_seq_Type41); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type41, type_name_Type41.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type41, type_name_Type41.to_string(), type_ids_Type41)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type41 already registered in TypeObjectRegistry for a different type."); } - return_code_Type41 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type41", type_ids_Type41); - if (return_code_Type41 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type41: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type42_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type42_type_identifier( + TypeIdentifierPair& type_ids_Type42) { + + ReturnCode_t return_code_Type42 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type42 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type42", type_ids_Type42); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type42) { - StructTypeFlag struct_flags_Type42 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type42 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type42; - TypeIdentifierPair type_ids_Type42; QualifiedTypeName type_name_Type42 = "Type42"; eprosima::fastcdr::optional type_ann_builtin_Type42; eprosima::fastcdr::optional ann_custom_Type42; @@ -3914,60 +2304,26 @@ void register_Type42_type_identifier() header_Type42 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type42); CompleteStructMemberSeq member_seq_Type42; { - return_code_Type42 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type42); + "_uint16_t", type_ids_index); - if (return_code_Type42 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type42.type_identifier1()._d() || TK_NONE == type_ids_Type42.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type42.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type42.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type42.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type42.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type42.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type42.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type42.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type42.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type42.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type42.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type42.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type42.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type42.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type42.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type42.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type42.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type42.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type42.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type42.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type42.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type42.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type42.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type42.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -3979,29 +2335,26 @@ void register_Type42_type_identifier() } CompleteStructType struct_type_Type42 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type42, header_Type42, member_seq_Type42); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type42, type_name_Type42.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type42, type_name_Type42.to_string(), type_ids_Type42)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type42 already registered in TypeObjectRegistry for a different type."); } - return_code_Type42 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type42", type_ids_Type42); - if (return_code_Type42 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type42: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type43_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type43_type_identifier( + TypeIdentifierPair& type_ids_Type43) { + + ReturnCode_t return_code_Type43 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type43 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type43", type_ids_Type43); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type43) { - StructTypeFlag struct_flags_Type43 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type43 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type43; - TypeIdentifierPair type_ids_Type43; QualifiedTypeName type_name_Type43 = "Type43"; eprosima::fastcdr::optional type_ann_builtin_Type43; eprosima::fastcdr::optional ann_custom_Type43; @@ -4010,60 +2363,26 @@ void register_Type43_type_identifier() header_Type43 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type43); CompleteStructMemberSeq member_seq_Type43; { - return_code_Type43 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type43); + "_uint16_t", type_ids_index); - if (return_code_Type43 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type43.type_identifier1()._d() || TK_NONE == type_ids_Type43.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type43.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type43.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type43.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type43.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type43.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type43.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type43.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type43.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type43.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type43.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type43.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type43.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type43.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type43.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type43.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type43.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type43.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type43.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type43.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type43.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type43.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type43.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type43.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4075,29 +2394,26 @@ void register_Type43_type_identifier() } CompleteStructType struct_type_Type43 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type43, header_Type43, member_seq_Type43); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type43, type_name_Type43.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type43, type_name_Type43.to_string(), type_ids_Type43)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type43 already registered in TypeObjectRegistry for a different type."); } - return_code_Type43 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type43", type_ids_Type43); - if (return_code_Type43 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type43: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type44_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type44_type_identifier( + TypeIdentifierPair& type_ids_Type44) { + + ReturnCode_t return_code_Type44 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type44 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type44", type_ids_Type44); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type44) { - StructTypeFlag struct_flags_Type44 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type44 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type44; - TypeIdentifierPair type_ids_Type44; QualifiedTypeName type_name_Type44 = "Type44"; eprosima::fastcdr::optional type_ann_builtin_Type44; eprosima::fastcdr::optional ann_custom_Type44; @@ -4106,60 +2422,26 @@ void register_Type44_type_identifier() header_Type44 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type44); CompleteStructMemberSeq member_seq_Type44; { - return_code_Type44 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type44); + "_uint16_t", type_ids_index); - if (return_code_Type44 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type44.type_identifier1()._d() || TK_NONE == type_ids_Type44.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type44.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type44.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type44.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type44.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type44.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type44.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type44.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type44.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type44.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type44.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type44.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type44.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type44.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type44.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type44.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type44.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type44.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type44.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type44.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type44.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type44.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type44.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type44.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4171,29 +2453,26 @@ void register_Type44_type_identifier() } CompleteStructType struct_type_Type44 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type44, header_Type44, member_seq_Type44); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type44, type_name_Type44.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type44, type_name_Type44.to_string(), type_ids_Type44)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type44 already registered in TypeObjectRegistry for a different type."); } - return_code_Type44 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type44", type_ids_Type44); - if (return_code_Type44 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type44: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type45_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type45_type_identifier( + TypeIdentifierPair& type_ids_Type45) { + + ReturnCode_t return_code_Type45 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type45 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type45", type_ids_Type45); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type45) { - StructTypeFlag struct_flags_Type45 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type45 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type45; - TypeIdentifierPair type_ids_Type45; QualifiedTypeName type_name_Type45 = "Type45"; eprosima::fastcdr::optional type_ann_builtin_Type45; eprosima::fastcdr::optional ann_custom_Type45; @@ -4202,60 +2481,26 @@ void register_Type45_type_identifier() header_Type45 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type45); CompleteStructMemberSeq member_seq_Type45; { - return_code_Type45 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type45); + "_uint16_t", type_ids_index); - if (return_code_Type45 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type45.type_identifier1()._d() || TK_NONE == type_ids_Type45.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type45.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type45.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type45.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type45.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type45.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type45.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type45.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type45.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type45.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type45.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type45.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type45.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type45.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type45.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type45.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type45.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type45.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type45.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type45.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type45.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type45.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type45.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type45.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4267,29 +2512,26 @@ void register_Type45_type_identifier() } CompleteStructType struct_type_Type45 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type45, header_Type45, member_seq_Type45); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type45, type_name_Type45.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type45, type_name_Type45.to_string(), type_ids_Type45)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type45 already registered in TypeObjectRegistry for a different type."); } - return_code_Type45 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type45", type_ids_Type45); - if (return_code_Type45 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type45: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type46_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type46_type_identifier( + TypeIdentifierPair& type_ids_Type46) { + + ReturnCode_t return_code_Type46 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type46 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type46", type_ids_Type46); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type46) { - StructTypeFlag struct_flags_Type46 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type46 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type46; - TypeIdentifierPair type_ids_Type46; QualifiedTypeName type_name_Type46 = "Type46"; eprosima::fastcdr::optional type_ann_builtin_Type46; eprosima::fastcdr::optional ann_custom_Type46; @@ -4298,60 +2540,26 @@ void register_Type46_type_identifier() header_Type46 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type46); CompleteStructMemberSeq member_seq_Type46; { - return_code_Type46 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type46); + "_uint16_t", type_ids_index); - if (return_code_Type46 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type46.type_identifier1()._d() || TK_NONE == type_ids_Type46.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type46.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type46.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type46.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type46.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type46.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type46.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type46.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type46.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type46.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type46.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type46.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type46.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type46.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type46.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type46.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type46.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type46.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type46.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type46.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type46.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type46.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type46.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type46.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4363,29 +2571,26 @@ void register_Type46_type_identifier() } CompleteStructType struct_type_Type46 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type46, header_Type46, member_seq_Type46); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type46, type_name_Type46.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type46, type_name_Type46.to_string(), type_ids_Type46)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type46 already registered in TypeObjectRegistry for a different type."); } - return_code_Type46 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type46", type_ids_Type46); - if (return_code_Type46 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type46: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type47_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type47_type_identifier( + TypeIdentifierPair& type_ids_Type47) { + + ReturnCode_t return_code_Type47 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type47 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type47", type_ids_Type47); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type47) { - StructTypeFlag struct_flags_Type47 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type47 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type47; - TypeIdentifierPair type_ids_Type47; QualifiedTypeName type_name_Type47 = "Type47"; eprosima::fastcdr::optional type_ann_builtin_Type47; eprosima::fastcdr::optional ann_custom_Type47; @@ -4394,60 +2599,26 @@ void register_Type47_type_identifier() header_Type47 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type47); CompleteStructMemberSeq member_seq_Type47; { - return_code_Type47 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type47); + "_uint16_t", type_ids_index); - if (return_code_Type47 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type47.type_identifier1()._d() || TK_NONE == type_ids_Type47.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type47.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type47.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type47.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type47.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type47.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type47.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type47.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type47.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type47.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type47.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type47.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type47.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type47.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type47.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type47.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type47.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type47.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type47.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type47.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type47.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type47.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type47.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type47.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4459,29 +2630,26 @@ void register_Type47_type_identifier() } CompleteStructType struct_type_Type47 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type47, header_Type47, member_seq_Type47); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type47, type_name_Type47.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type47, type_name_Type47.to_string(), type_ids_Type47)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type47 already registered in TypeObjectRegistry for a different type."); } - return_code_Type47 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type47", type_ids_Type47); - if (return_code_Type47 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type47: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type48_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type48_type_identifier( + TypeIdentifierPair& type_ids_Type48) { + + ReturnCode_t return_code_Type48 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type48 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type48", type_ids_Type48); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type48) { - StructTypeFlag struct_flags_Type48 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type48 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type48; - TypeIdentifierPair type_ids_Type48; QualifiedTypeName type_name_Type48 = "Type48"; eprosima::fastcdr::optional type_ann_builtin_Type48; eprosima::fastcdr::optional ann_custom_Type48; @@ -4490,60 +2658,26 @@ void register_Type48_type_identifier() header_Type48 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type48); CompleteStructMemberSeq member_seq_Type48; { - return_code_Type48 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type48); + "_uint16_t", type_ids_index); - if (return_code_Type48 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type48.type_identifier1()._d() || TK_NONE == type_ids_Type48.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type48.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type48.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type48.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type48.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type48.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type48.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type48.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type48.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type48.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type48.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type48.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type48.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type48.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type48.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type48.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type48.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type48.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type48.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type48.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type48.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type48.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type48.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type48.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4555,29 +2689,26 @@ void register_Type48_type_identifier() } CompleteStructType struct_type_Type48 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type48, header_Type48, member_seq_Type48); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type48, type_name_Type48.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type48, type_name_Type48.to_string(), type_ids_Type48)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type48 already registered in TypeObjectRegistry for a different type."); } - return_code_Type48 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type48", type_ids_Type48); - if (return_code_Type48 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type48: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type49_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type49_type_identifier( + TypeIdentifierPair& type_ids_Type49) { + + ReturnCode_t return_code_Type49 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type49 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type49", type_ids_Type49); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type49) { - StructTypeFlag struct_flags_Type49 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type49 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type49; - TypeIdentifierPair type_ids_Type49; QualifiedTypeName type_name_Type49 = "Type49"; eprosima::fastcdr::optional type_ann_builtin_Type49; eprosima::fastcdr::optional ann_custom_Type49; @@ -4586,60 +2717,26 @@ void register_Type49_type_identifier() header_Type49 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type49); CompleteStructMemberSeq member_seq_Type49; { - return_code_Type49 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type49); + "_uint16_t", type_ids_index); - if (return_code_Type49 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type49.type_identifier1()._d() || TK_NONE == type_ids_Type49.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type49.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type49.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type49.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type49.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type49.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type49.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type49.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type49.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type49.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type49.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type49.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type49.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type49.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type49.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type49.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type49.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type49.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type49.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type49.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type49.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type49.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type49.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type49.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4651,29 +2748,26 @@ void register_Type49_type_identifier() } CompleteStructType struct_type_Type49 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type49, header_Type49, member_seq_Type49); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type49, type_name_Type49.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type49, type_name_Type49.to_string(), type_ids_Type49)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type49 already registered in TypeObjectRegistry for a different type."); } - return_code_Type49 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type49", type_ids_Type49); - if (return_code_Type49 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type49: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type50_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type50_type_identifier( + TypeIdentifierPair& type_ids_Type50) { + + ReturnCode_t return_code_Type50 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type50 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type50", type_ids_Type50); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type50) { - StructTypeFlag struct_flags_Type50 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type50 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type50; - TypeIdentifierPair type_ids_Type50; QualifiedTypeName type_name_Type50 = "Type50"; eprosima::fastcdr::optional type_ann_builtin_Type50; eprosima::fastcdr::optional ann_custom_Type50; @@ -4682,60 +2776,26 @@ void register_Type50_type_identifier() header_Type50 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type50); CompleteStructMemberSeq member_seq_Type50; { - return_code_Type50 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type50); + "_uint16_t", type_ids_index); - if (return_code_Type50 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type50.type_identifier1()._d() || TK_NONE == type_ids_Type50.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type50.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type50.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type50.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type50.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type50.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type50.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type50.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type50.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type50.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type50.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type50.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type50.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type50.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type50.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type50.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type50.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type50.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type50.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type50.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type50.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type50.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type50.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type50.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4747,29 +2807,26 @@ void register_Type50_type_identifier() } CompleteStructType struct_type_Type50 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type50, header_Type50, member_seq_Type50); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type50, type_name_Type50.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type50, type_name_Type50.to_string(), type_ids_Type50)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type50 already registered in TypeObjectRegistry for a different type."); } - return_code_Type50 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type50", type_ids_Type50); - if (return_code_Type50 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type50: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type51_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type51_type_identifier( + TypeIdentifierPair& type_ids_Type51) { + + ReturnCode_t return_code_Type51 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type51 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type51", type_ids_Type51); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type51) { - StructTypeFlag struct_flags_Type51 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type51 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type51; - TypeIdentifierPair type_ids_Type51; QualifiedTypeName type_name_Type51 = "Type51"; eprosima::fastcdr::optional type_ann_builtin_Type51; eprosima::fastcdr::optional ann_custom_Type51; @@ -4778,60 +2835,26 @@ void register_Type51_type_identifier() header_Type51 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type51); CompleteStructMemberSeq member_seq_Type51; { - return_code_Type51 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type51); + "_uint16_t", type_ids_index); - if (return_code_Type51 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type51.type_identifier1()._d() || TK_NONE == type_ids_Type51.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type51.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type51.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type51.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type51.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type51.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type51.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type51.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type51.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type51.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type51.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type51.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type51.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type51.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type51.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type51.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type51.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type51.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type51.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type51.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type51.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type51.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type51.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type51.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4843,29 +2866,26 @@ void register_Type51_type_identifier() } CompleteStructType struct_type_Type51 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type51, header_Type51, member_seq_Type51); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type51, type_name_Type51.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type51, type_name_Type51.to_string(), type_ids_Type51)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type51 already registered in TypeObjectRegistry for a different type."); } - return_code_Type51 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type51", type_ids_Type51); - if (return_code_Type51 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type51: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type52_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type52_type_identifier( + TypeIdentifierPair& type_ids_Type52) { + + ReturnCode_t return_code_Type52 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type52 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type52", type_ids_Type52); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type52) { - StructTypeFlag struct_flags_Type52 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type52 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type52; - TypeIdentifierPair type_ids_Type52; QualifiedTypeName type_name_Type52 = "Type52"; eprosima::fastcdr::optional type_ann_builtin_Type52; eprosima::fastcdr::optional ann_custom_Type52; @@ -4874,60 +2894,26 @@ void register_Type52_type_identifier() header_Type52 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type52); CompleteStructMemberSeq member_seq_Type52; { - return_code_Type52 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type52); + "_uint16_t", type_ids_index); - if (return_code_Type52 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type52.type_identifier1()._d() || TK_NONE == type_ids_Type52.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type52.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type52.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type52.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type52.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type52.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type52.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type52.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type52.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type52.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type52.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type52.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type52.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type52.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type52.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type52.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type52.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type52.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type52.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type52.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type52.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type52.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type52.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type52.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -4939,29 +2925,26 @@ void register_Type52_type_identifier() } CompleteStructType struct_type_Type52 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type52, header_Type52, member_seq_Type52); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type52, type_name_Type52.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type52, type_name_Type52.to_string(), type_ids_Type52)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type52 already registered in TypeObjectRegistry for a different type."); } - return_code_Type52 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type52", type_ids_Type52); - if (return_code_Type52 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type52: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type53_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type53_type_identifier( + TypeIdentifierPair& type_ids_Type53) { + + ReturnCode_t return_code_Type53 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type53 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type53", type_ids_Type53); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type53) { - StructTypeFlag struct_flags_Type53 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type53 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type53; - TypeIdentifierPair type_ids_Type53; QualifiedTypeName type_name_Type53 = "Type53"; eprosima::fastcdr::optional type_ann_builtin_Type53; eprosima::fastcdr::optional ann_custom_Type53; @@ -4970,60 +2953,26 @@ void register_Type53_type_identifier() header_Type53 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type53); CompleteStructMemberSeq member_seq_Type53; { - return_code_Type53 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type53); + "_uint16_t", type_ids_index); - if (return_code_Type53 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type53.type_identifier1()._d() || TK_NONE == type_ids_Type53.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type53.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type53.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type53.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type53.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type53.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type53.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type53.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type53.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type53.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type53.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type53.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type53.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type53.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type53.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type53.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type53.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type53.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type53.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type53.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type53.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type53.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type53.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type53.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5035,29 +2984,26 @@ void register_Type53_type_identifier() } CompleteStructType struct_type_Type53 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type53, header_Type53, member_seq_Type53); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type53, type_name_Type53.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type53, type_name_Type53.to_string(), type_ids_Type53)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type53 already registered in TypeObjectRegistry for a different type."); } - return_code_Type53 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type53", type_ids_Type53); - if (return_code_Type53 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type53: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type54_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type54_type_identifier( + TypeIdentifierPair& type_ids_Type54) { + + ReturnCode_t return_code_Type54 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type54 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type54", type_ids_Type54); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type54) { - StructTypeFlag struct_flags_Type54 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type54 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type54; - TypeIdentifierPair type_ids_Type54; QualifiedTypeName type_name_Type54 = "Type54"; eprosima::fastcdr::optional type_ann_builtin_Type54; eprosima::fastcdr::optional ann_custom_Type54; @@ -5066,60 +3012,26 @@ void register_Type54_type_identifier() header_Type54 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type54); CompleteStructMemberSeq member_seq_Type54; { - return_code_Type54 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type54); + "_uint16_t", type_ids_index); - if (return_code_Type54 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type54.type_identifier1()._d() || TK_NONE == type_ids_Type54.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type54.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type54.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type54.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type54.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type54.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type54.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type54.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type54.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type54.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type54.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type54.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type54.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type54.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type54.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type54.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type54.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type54.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type54.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type54.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type54.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type54.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type54.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type54.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5131,29 +3043,26 @@ void register_Type54_type_identifier() } CompleteStructType struct_type_Type54 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type54, header_Type54, member_seq_Type54); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type54, type_name_Type54.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type54, type_name_Type54.to_string(), type_ids_Type54)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type54 already registered in TypeObjectRegistry for a different type."); } - return_code_Type54 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type54", type_ids_Type54); - if (return_code_Type54 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type54: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type55_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type55_type_identifier( + TypeIdentifierPair& type_ids_Type55) { + + ReturnCode_t return_code_Type55 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type55 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type55", type_ids_Type55); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type55) { - StructTypeFlag struct_flags_Type55 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type55 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type55; - TypeIdentifierPair type_ids_Type55; QualifiedTypeName type_name_Type55 = "Type55"; eprosima::fastcdr::optional type_ann_builtin_Type55; eprosima::fastcdr::optional ann_custom_Type55; @@ -5162,60 +3071,26 @@ void register_Type55_type_identifier() header_Type55 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type55); CompleteStructMemberSeq member_seq_Type55; { - return_code_Type55 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type55); + "_uint16_t", type_ids_index); - if (return_code_Type55 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type55.type_identifier1()._d() || TK_NONE == type_ids_Type55.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type55.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type55.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type55.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type55.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type55.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type55.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type55.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type55.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type55.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type55.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type55.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type55.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type55.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type55.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type55.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type55.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type55.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type55.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type55.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type55.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type55.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type55.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type55.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5227,29 +3102,26 @@ void register_Type55_type_identifier() } CompleteStructType struct_type_Type55 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type55, header_Type55, member_seq_Type55); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type55, type_name_Type55.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type55, type_name_Type55.to_string(), type_ids_Type55)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type55 already registered in TypeObjectRegistry for a different type."); } - return_code_Type55 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type55", type_ids_Type55); - if (return_code_Type55 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type55: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type56_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type56_type_identifier( + TypeIdentifierPair& type_ids_Type56) { + + ReturnCode_t return_code_Type56 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type56 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type56", type_ids_Type56); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type56) { - StructTypeFlag struct_flags_Type56 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type56 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type56; - TypeIdentifierPair type_ids_Type56; QualifiedTypeName type_name_Type56 = "Type56"; eprosima::fastcdr::optional type_ann_builtin_Type56; eprosima::fastcdr::optional ann_custom_Type56; @@ -5258,60 +3130,26 @@ void register_Type56_type_identifier() header_Type56 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type56); CompleteStructMemberSeq member_seq_Type56; { - return_code_Type56 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type56); + "_uint16_t", type_ids_index); - if (return_code_Type56 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type56.type_identifier1()._d() || TK_NONE == type_ids_Type56.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type56.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type56.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type56.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type56.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type56.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type56.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type56.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type56.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type56.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type56.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type56.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type56.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type56.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type56.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type56.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type56.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type56.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type56.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type56.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type56.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type56.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type56.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type56.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5323,29 +3161,26 @@ void register_Type56_type_identifier() } CompleteStructType struct_type_Type56 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type56, header_Type56, member_seq_Type56); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type56, type_name_Type56.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type56, type_name_Type56.to_string(), type_ids_Type56)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type56 already registered in TypeObjectRegistry for a different type."); } - return_code_Type56 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type56", type_ids_Type56); - if (return_code_Type56 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type56: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type57_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type57_type_identifier( + TypeIdentifierPair& type_ids_Type57) { + + ReturnCode_t return_code_Type57 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type57 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type57", type_ids_Type57); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type57) { - StructTypeFlag struct_flags_Type57 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type57 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type57; - TypeIdentifierPair type_ids_Type57; QualifiedTypeName type_name_Type57 = "Type57"; eprosima::fastcdr::optional type_ann_builtin_Type57; eprosima::fastcdr::optional ann_custom_Type57; @@ -5354,60 +3189,26 @@ void register_Type57_type_identifier() header_Type57 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type57); CompleteStructMemberSeq member_seq_Type57; { - return_code_Type57 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type57); + "_uint16_t", type_ids_index); - if (return_code_Type57 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type57.type_identifier1()._d() || TK_NONE == type_ids_Type57.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type57.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type57.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type57.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type57.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type57.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type57.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type57.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type57.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type57.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type57.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type57.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type57.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type57.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type57.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type57.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type57.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type57.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type57.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type57.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type57.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type57.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type57.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type57.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5419,29 +3220,26 @@ void register_Type57_type_identifier() } CompleteStructType struct_type_Type57 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type57, header_Type57, member_seq_Type57); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type57, type_name_Type57.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type57, type_name_Type57.to_string(), type_ids_Type57)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type57 already registered in TypeObjectRegistry for a different type."); } - return_code_Type57 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type57", type_ids_Type57); - if (return_code_Type57 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type57: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type58_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type58_type_identifier( + TypeIdentifierPair& type_ids_Type58) { + + ReturnCode_t return_code_Type58 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type58 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type58", type_ids_Type58); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type58) { - StructTypeFlag struct_flags_Type58 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type58 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type58; - TypeIdentifierPair type_ids_Type58; QualifiedTypeName type_name_Type58 = "Type58"; eprosima::fastcdr::optional type_ann_builtin_Type58; eprosima::fastcdr::optional ann_custom_Type58; @@ -5450,60 +3248,26 @@ void register_Type58_type_identifier() header_Type58 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type58); CompleteStructMemberSeq member_seq_Type58; { - return_code_Type58 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type58); + "_uint16_t", type_ids_index); - if (return_code_Type58 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type58.type_identifier1()._d() || TK_NONE == type_ids_Type58.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type58.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type58.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type58.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type58.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type58.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type58.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type58.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type58.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type58.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type58.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type58.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type58.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type58.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type58.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type58.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type58.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type58.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type58.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type58.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type58.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type58.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type58.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type58.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5515,29 +3279,26 @@ void register_Type58_type_identifier() } CompleteStructType struct_type_Type58 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type58, header_Type58, member_seq_Type58); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type58, type_name_Type58.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type58, type_name_Type58.to_string(), type_ids_Type58)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type58 already registered in TypeObjectRegistry for a different type."); } - return_code_Type58 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type58", type_ids_Type58); - if (return_code_Type58 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type58: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type59_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type59_type_identifier( + TypeIdentifierPair& type_ids_Type59) { + + ReturnCode_t return_code_Type59 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type59 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type59", type_ids_Type59); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type59) { - StructTypeFlag struct_flags_Type59 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type59 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type59; - TypeIdentifierPair type_ids_Type59; QualifiedTypeName type_name_Type59 = "Type59"; eprosima::fastcdr::optional type_ann_builtin_Type59; eprosima::fastcdr::optional ann_custom_Type59; @@ -5546,60 +3307,26 @@ void register_Type59_type_identifier() header_Type59 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type59); CompleteStructMemberSeq member_seq_Type59; { - return_code_Type59 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type59); + "_uint16_t", type_ids_index); - if (return_code_Type59 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type59.type_identifier1()._d() || TK_NONE == type_ids_Type59.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type59.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type59.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type59.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type59.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type59.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type59.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type59.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type59.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type59.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type59.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type59.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type59.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type59.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type59.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type59.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type59.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type59.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type59.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type59.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type59.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type59.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type59.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type59.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5611,29 +3338,26 @@ void register_Type59_type_identifier() } CompleteStructType struct_type_Type59 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type59, header_Type59, member_seq_Type59); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type59, type_name_Type59.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type59, type_name_Type59.to_string(), type_ids_Type59)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type59 already registered in TypeObjectRegistry for a different type."); } - return_code_Type59 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type59", type_ids_Type59); - if (return_code_Type59 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type59: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type60_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type60_type_identifier( + TypeIdentifierPair& type_ids_Type60) { + + ReturnCode_t return_code_Type60 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type60 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type60", type_ids_Type60); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type60) { - StructTypeFlag struct_flags_Type60 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type60 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type60; - TypeIdentifierPair type_ids_Type60; QualifiedTypeName type_name_Type60 = "Type60"; eprosima::fastcdr::optional type_ann_builtin_Type60; eprosima::fastcdr::optional ann_custom_Type60; @@ -5642,60 +3366,26 @@ void register_Type60_type_identifier() header_Type60 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type60); CompleteStructMemberSeq member_seq_Type60; { - return_code_Type60 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type60); + "_uint16_t", type_ids_index); - if (return_code_Type60 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type60.type_identifier1()._d() || TK_NONE == type_ids_Type60.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type60.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type60.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type60.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type60.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type60.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type60.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type60.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type60.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type60.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type60.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type60.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type60.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type60.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type60.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type60.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type60.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type60.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type60.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type60.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type60.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type60.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type60.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type60.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5707,29 +3397,26 @@ void register_Type60_type_identifier() } CompleteStructType struct_type_Type60 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type60, header_Type60, member_seq_Type60); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type60, type_name_Type60.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type60, type_name_Type60.to_string(), type_ids_Type60)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type60 already registered in TypeObjectRegistry for a different type."); } - return_code_Type60 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type60", type_ids_Type60); - if (return_code_Type60 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type60: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type61_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type61_type_identifier( + TypeIdentifierPair& type_ids_Type61) { + + ReturnCode_t return_code_Type61 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type61 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type61", type_ids_Type61); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type61) { - StructTypeFlag struct_flags_Type61 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type61 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type61; - TypeIdentifierPair type_ids_Type61; QualifiedTypeName type_name_Type61 = "Type61"; eprosima::fastcdr::optional type_ann_builtin_Type61; eprosima::fastcdr::optional ann_custom_Type61; @@ -5738,60 +3425,26 @@ void register_Type61_type_identifier() header_Type61 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type61); CompleteStructMemberSeq member_seq_Type61; { - return_code_Type61 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type61); + "_uint16_t", type_ids_index); - if (return_code_Type61 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type61.type_identifier1()._d() || TK_NONE == type_ids_Type61.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type61.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type61.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type61.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type61.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type61.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type61.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type61.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type61.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type61.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type61.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type61.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type61.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type61.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type61.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type61.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type61.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type61.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type61.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type61.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type61.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type61.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type61.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type61.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5803,29 +3456,26 @@ void register_Type61_type_identifier() } CompleteStructType struct_type_Type61 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type61, header_Type61, member_seq_Type61); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type61, type_name_Type61.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type61, type_name_Type61.to_string(), type_ids_Type61)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type61 already registered in TypeObjectRegistry for a different type."); } - return_code_Type61 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type61", type_ids_Type61); - if (return_code_Type61 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type61: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type62_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type62_type_identifier( + TypeIdentifierPair& type_ids_Type62) { + + ReturnCode_t return_code_Type62 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type62 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type62", type_ids_Type62); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type62) { - StructTypeFlag struct_flags_Type62 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type62 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type62; - TypeIdentifierPair type_ids_Type62; QualifiedTypeName type_name_Type62 = "Type62"; eprosima::fastcdr::optional type_ann_builtin_Type62; eprosima::fastcdr::optional ann_custom_Type62; @@ -5834,60 +3484,26 @@ void register_Type62_type_identifier() header_Type62 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type62); CompleteStructMemberSeq member_seq_Type62; { - return_code_Type62 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type62); + "_uint16_t", type_ids_index); - if (return_code_Type62 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type62.type_identifier1()._d() || TK_NONE == type_ids_Type62.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type62.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type62.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type62.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type62.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type62.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type62.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type62.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type62.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type62.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type62.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type62.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type62.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type62.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type62.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type62.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type62.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type62.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type62.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type62.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type62.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type62.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type62.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type62.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5899,29 +3515,26 @@ void register_Type62_type_identifier() } CompleteStructType struct_type_Type62 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type62, header_Type62, member_seq_Type62); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type62, type_name_Type62.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type62, type_name_Type62.to_string(), type_ids_Type62)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type62 already registered in TypeObjectRegistry for a different type."); } - return_code_Type62 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type62", type_ids_Type62); - if (return_code_Type62 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type62: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type63_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type63_type_identifier( + TypeIdentifierPair& type_ids_Type63) { + + ReturnCode_t return_code_Type63 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type63 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type63", type_ids_Type63); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type63) { - StructTypeFlag struct_flags_Type63 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type63 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type63; - TypeIdentifierPair type_ids_Type63; QualifiedTypeName type_name_Type63 = "Type63"; eprosima::fastcdr::optional type_ann_builtin_Type63; eprosima::fastcdr::optional ann_custom_Type63; @@ -5930,60 +3543,26 @@ void register_Type63_type_identifier() header_Type63 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type63); CompleteStructMemberSeq member_seq_Type63; { - return_code_Type63 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type63); + "_uint16_t", type_ids_index); - if (return_code_Type63 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type63.type_identifier1()._d() || TK_NONE == type_ids_Type63.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type63.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type63.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type63.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type63.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type63.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type63.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type63.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type63.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type63.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type63.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type63.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type63.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type63.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type63.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type63.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type63.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type63.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type63.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type63.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type63.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type63.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type63.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type63.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -5995,29 +3574,26 @@ void register_Type63_type_identifier() } CompleteStructType struct_type_Type63 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type63, header_Type63, member_seq_Type63); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type63, type_name_Type63.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type63, type_name_Type63.to_string(), type_ids_Type63)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type63 already registered in TypeObjectRegistry for a different type."); } - return_code_Type63 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type63", type_ids_Type63); - if (return_code_Type63 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type63: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type64_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type64_type_identifier( + TypeIdentifierPair& type_ids_Type64) { + + ReturnCode_t return_code_Type64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type64", type_ids_Type64); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type64) { - StructTypeFlag struct_flags_Type64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type64; - TypeIdentifierPair type_ids_Type64; QualifiedTypeName type_name_Type64 = "Type64"; eprosima::fastcdr::optional type_ann_builtin_Type64; eprosima::fastcdr::optional ann_custom_Type64; @@ -6026,60 +3602,26 @@ void register_Type64_type_identifier() header_Type64 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type64); CompleteStructMemberSeq member_seq_Type64; { - return_code_Type64 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type64); + "_uint16_t", type_ids_index); - if (return_code_Type64 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type64.type_identifier1()._d() || TK_NONE == type_ids_Type64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type64.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type64.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type64.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type64.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type64.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type64.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type64.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type64.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type64.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type64.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type64.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type64.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type64.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type64.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type64.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type64.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type64.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type64.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6091,29 +3633,26 @@ void register_Type64_type_identifier() } CompleteStructType struct_type_Type64 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type64, header_Type64, member_seq_Type64); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type64, type_name_Type64.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type64, type_name_Type64.to_string(), type_ids_Type64)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type64 already registered in TypeObjectRegistry for a different type."); } - return_code_Type64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type64", type_ids_Type64); - if (return_code_Type64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type64: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type65_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type65_type_identifier( + TypeIdentifierPair& type_ids_Type65) { + + ReturnCode_t return_code_Type65 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type65 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type65", type_ids_Type65); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type65) { - StructTypeFlag struct_flags_Type65 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type65 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type65; - TypeIdentifierPair type_ids_Type65; QualifiedTypeName type_name_Type65 = "Type65"; eprosima::fastcdr::optional type_ann_builtin_Type65; eprosima::fastcdr::optional ann_custom_Type65; @@ -6122,60 +3661,26 @@ void register_Type65_type_identifier() header_Type65 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type65); CompleteStructMemberSeq member_seq_Type65; { - return_code_Type65 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type65); + "_uint16_t", type_ids_index); - if (return_code_Type65 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type65.type_identifier1()._d() || TK_NONE == type_ids_Type65.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type65.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type65.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type65.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type65.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type65.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type65.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type65.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type65.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type65.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type65.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type65.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type65.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type65.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type65.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type65.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type65.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type65.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type65.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type65.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type65.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type65.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type65.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type65.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6187,29 +3692,26 @@ void register_Type65_type_identifier() } CompleteStructType struct_type_Type65 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type65, header_Type65, member_seq_Type65); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type65, type_name_Type65.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type65, type_name_Type65.to_string(), type_ids_Type65)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type65 already registered in TypeObjectRegistry for a different type."); } - return_code_Type65 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type65", type_ids_Type65); - if (return_code_Type65 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type65: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type66_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type66_type_identifier( + TypeIdentifierPair& type_ids_Type66) { + + ReturnCode_t return_code_Type66 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type66 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type66", type_ids_Type66); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type66) { - StructTypeFlag struct_flags_Type66 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type66 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type66; - TypeIdentifierPair type_ids_Type66; QualifiedTypeName type_name_Type66 = "Type66"; eprosima::fastcdr::optional type_ann_builtin_Type66; eprosima::fastcdr::optional ann_custom_Type66; @@ -6218,60 +3720,26 @@ void register_Type66_type_identifier() header_Type66 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type66); CompleteStructMemberSeq member_seq_Type66; { - return_code_Type66 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type66); + "_uint16_t", type_ids_index); - if (return_code_Type66 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type66.type_identifier1()._d() || TK_NONE == type_ids_Type66.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type66.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type66.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type66.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type66.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type66.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type66.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type66.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type66.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type66.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type66.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type66.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type66.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type66.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type66.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type66.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type66.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type66.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type66.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type66.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type66.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type66.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type66.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type66.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6283,29 +3751,26 @@ void register_Type66_type_identifier() } CompleteStructType struct_type_Type66 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type66, header_Type66, member_seq_Type66); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type66, type_name_Type66.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type66, type_name_Type66.to_string(), type_ids_Type66)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type66 already registered in TypeObjectRegistry for a different type."); } - return_code_Type66 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type66", type_ids_Type66); - if (return_code_Type66 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type66: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type67_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type67_type_identifier( + TypeIdentifierPair& type_ids_Type67) { + + ReturnCode_t return_code_Type67 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type67 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type67", type_ids_Type67); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type67) { - StructTypeFlag struct_flags_Type67 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type67 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type67; - TypeIdentifierPair type_ids_Type67; QualifiedTypeName type_name_Type67 = "Type67"; eprosima::fastcdr::optional type_ann_builtin_Type67; eprosima::fastcdr::optional ann_custom_Type67; @@ -6314,60 +3779,26 @@ void register_Type67_type_identifier() header_Type67 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type67); CompleteStructMemberSeq member_seq_Type67; { - return_code_Type67 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type67); + "_uint16_t", type_ids_index); - if (return_code_Type67 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type67.type_identifier1()._d() || TK_NONE == type_ids_Type67.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type67.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type67.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type67.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type67.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type67.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type67.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type67.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type67.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type67.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type67.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type67.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type67.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type67.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type67.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type67.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type67.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type67.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type67.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type67.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type67.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type67.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type67.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type67.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6379,29 +3810,26 @@ void register_Type67_type_identifier() } CompleteStructType struct_type_Type67 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type67, header_Type67, member_seq_Type67); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type67, type_name_Type67.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type67, type_name_Type67.to_string(), type_ids_Type67)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type67 already registered in TypeObjectRegistry for a different type."); } - return_code_Type67 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type67", type_ids_Type67); - if (return_code_Type67 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type67: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type68_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type68_type_identifier( + TypeIdentifierPair& type_ids_Type68) { + + ReturnCode_t return_code_Type68 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type68 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type68", type_ids_Type68); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type68) { - StructTypeFlag struct_flags_Type68 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type68 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type68; - TypeIdentifierPair type_ids_Type68; QualifiedTypeName type_name_Type68 = "Type68"; eprosima::fastcdr::optional type_ann_builtin_Type68; eprosima::fastcdr::optional ann_custom_Type68; @@ -6410,60 +3838,26 @@ void register_Type68_type_identifier() header_Type68 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type68); CompleteStructMemberSeq member_seq_Type68; { - return_code_Type68 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type68); + "_uint16_t", type_ids_index); - if (return_code_Type68 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type68.type_identifier1()._d() || TK_NONE == type_ids_Type68.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type68.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type68.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type68.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type68.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type68.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type68.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type68.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type68.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type68.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type68.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type68.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type68.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type68.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type68.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type68.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type68.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type68.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type68.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type68.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type68.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type68.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type68.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type68.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6475,29 +3869,26 @@ void register_Type68_type_identifier() } CompleteStructType struct_type_Type68 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type68, header_Type68, member_seq_Type68); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type68, type_name_Type68.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type68, type_name_Type68.to_string(), type_ids_Type68)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type68 already registered in TypeObjectRegistry for a different type."); } - return_code_Type68 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type68", type_ids_Type68); - if (return_code_Type68 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type68: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type69_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type69_type_identifier( + TypeIdentifierPair& type_ids_Type69) { + + ReturnCode_t return_code_Type69 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type69 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type69", type_ids_Type69); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type69) { - StructTypeFlag struct_flags_Type69 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type69 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type69; - TypeIdentifierPair type_ids_Type69; QualifiedTypeName type_name_Type69 = "Type69"; eprosima::fastcdr::optional type_ann_builtin_Type69; eprosima::fastcdr::optional ann_custom_Type69; @@ -6506,60 +3897,26 @@ void register_Type69_type_identifier() header_Type69 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type69); CompleteStructMemberSeq member_seq_Type69; { - return_code_Type69 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type69); + "_uint16_t", type_ids_index); - if (return_code_Type69 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type69.type_identifier1()._d() || TK_NONE == type_ids_Type69.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type69.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type69.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type69.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type69.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type69.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type69.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type69.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type69.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type69.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type69.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type69.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type69.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type69.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type69.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type69.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type69.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type69.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type69.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type69.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type69.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type69.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type69.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type69.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6571,29 +3928,26 @@ void register_Type69_type_identifier() } CompleteStructType struct_type_Type69 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type69, header_Type69, member_seq_Type69); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type69, type_name_Type69.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type69, type_name_Type69.to_string(), type_ids_Type69)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type69 already registered in TypeObjectRegistry for a different type."); } - return_code_Type69 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type69", type_ids_Type69); - if (return_code_Type69 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type69: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type70_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type70_type_identifier( + TypeIdentifierPair& type_ids_Type70) { + + ReturnCode_t return_code_Type70 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type70 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type70", type_ids_Type70); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type70) { - StructTypeFlag struct_flags_Type70 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type70 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type70; - TypeIdentifierPair type_ids_Type70; QualifiedTypeName type_name_Type70 = "Type70"; eprosima::fastcdr::optional type_ann_builtin_Type70; eprosima::fastcdr::optional ann_custom_Type70; @@ -6602,60 +3956,26 @@ void register_Type70_type_identifier() header_Type70 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type70); CompleteStructMemberSeq member_seq_Type70; { - return_code_Type70 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type70); + "_uint16_t", type_ids_index); - if (return_code_Type70 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type70.type_identifier1()._d() || TK_NONE == type_ids_Type70.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type70.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type70.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type70.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type70.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type70.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type70.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type70.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type70.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type70.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type70.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type70.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type70.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type70.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type70.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type70.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type70.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type70.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type70.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type70.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type70.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type70.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type70.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type70.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6667,29 +3987,26 @@ void register_Type70_type_identifier() } CompleteStructType struct_type_Type70 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type70, header_Type70, member_seq_Type70); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type70, type_name_Type70.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type70, type_name_Type70.to_string(), type_ids_Type70)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type70 already registered in TypeObjectRegistry for a different type."); } - return_code_Type70 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type70", type_ids_Type70); - if (return_code_Type70 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type70: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type71_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type71_type_identifier( + TypeIdentifierPair& type_ids_Type71) { + + ReturnCode_t return_code_Type71 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type71 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type71", type_ids_Type71); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type71) { - StructTypeFlag struct_flags_Type71 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type71 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type71; - TypeIdentifierPair type_ids_Type71; QualifiedTypeName type_name_Type71 = "Type71"; eprosima::fastcdr::optional type_ann_builtin_Type71; eprosima::fastcdr::optional ann_custom_Type71; @@ -6698,60 +4015,26 @@ void register_Type71_type_identifier() header_Type71 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type71); CompleteStructMemberSeq member_seq_Type71; { - return_code_Type71 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type71); + "_uint16_t", type_ids_index); - if (return_code_Type71 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type71.type_identifier1()._d() || TK_NONE == type_ids_Type71.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type71.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type71.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type71.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type71.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type71.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type71.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type71.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type71.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type71.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type71.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type71.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type71.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type71.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type71.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type71.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type71.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type71.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type71.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type71.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type71.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type71.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type71.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type71.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6763,29 +4046,26 @@ void register_Type71_type_identifier() } CompleteStructType struct_type_Type71 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type71, header_Type71, member_seq_Type71); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type71, type_name_Type71.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type71, type_name_Type71.to_string(), type_ids_Type71)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type71 already registered in TypeObjectRegistry for a different type."); } - return_code_Type71 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type71", type_ids_Type71); - if (return_code_Type71 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type71: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type72_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type72_type_identifier( + TypeIdentifierPair& type_ids_Type72) { + + ReturnCode_t return_code_Type72 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type72 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type72", type_ids_Type72); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type72) { - StructTypeFlag struct_flags_Type72 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type72 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type72; - TypeIdentifierPair type_ids_Type72; QualifiedTypeName type_name_Type72 = "Type72"; eprosima::fastcdr::optional type_ann_builtin_Type72; eprosima::fastcdr::optional ann_custom_Type72; @@ -6794,60 +4074,26 @@ void register_Type72_type_identifier() header_Type72 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type72); CompleteStructMemberSeq member_seq_Type72; { - return_code_Type72 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type72); + "_uint16_t", type_ids_index); - if (return_code_Type72 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type72.type_identifier1()._d() || TK_NONE == type_ids_Type72.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type72.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type72.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type72.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type72.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type72.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type72.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type72.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type72.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type72.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type72.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type72.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type72.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type72.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type72.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type72.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type72.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type72.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type72.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type72.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type72.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type72.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type72.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type72.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6859,29 +4105,26 @@ void register_Type72_type_identifier() } CompleteStructType struct_type_Type72 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type72, header_Type72, member_seq_Type72); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type72, type_name_Type72.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type72, type_name_Type72.to_string(), type_ids_Type72)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type72 already registered in TypeObjectRegistry for a different type."); } - return_code_Type72 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type72", type_ids_Type72); - if (return_code_Type72 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type72: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type73_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type73_type_identifier( + TypeIdentifierPair& type_ids_Type73) { + + ReturnCode_t return_code_Type73 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type73 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type73", type_ids_Type73); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type73) { - StructTypeFlag struct_flags_Type73 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type73 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type73; - TypeIdentifierPair type_ids_Type73; QualifiedTypeName type_name_Type73 = "Type73"; eprosima::fastcdr::optional type_ann_builtin_Type73; eprosima::fastcdr::optional ann_custom_Type73; @@ -6890,60 +4133,26 @@ void register_Type73_type_identifier() header_Type73 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type73); CompleteStructMemberSeq member_seq_Type73; { - return_code_Type73 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type73); + "_uint16_t", type_ids_index); - if (return_code_Type73 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type73.type_identifier1()._d() || TK_NONE == type_ids_Type73.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type73.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type73.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type73.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type73.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type73.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type73.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type73.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type73.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type73.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type73.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type73.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type73.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type73.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type73.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type73.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type73.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type73.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type73.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type73.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type73.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type73.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type73.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type73.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -6955,29 +4164,26 @@ void register_Type73_type_identifier() } CompleteStructType struct_type_Type73 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type73, header_Type73, member_seq_Type73); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type73, type_name_Type73.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type73, type_name_Type73.to_string(), type_ids_Type73)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type73 already registered in TypeObjectRegistry for a different type."); } - return_code_Type73 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type73", type_ids_Type73); - if (return_code_Type73 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type73: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type74_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type74_type_identifier( + TypeIdentifierPair& type_ids_Type74) { + + ReturnCode_t return_code_Type74 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type74 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type74", type_ids_Type74); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type74) { - StructTypeFlag struct_flags_Type74 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type74 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type74; - TypeIdentifierPair type_ids_Type74; QualifiedTypeName type_name_Type74 = "Type74"; eprosima::fastcdr::optional type_ann_builtin_Type74; eprosima::fastcdr::optional ann_custom_Type74; @@ -6986,60 +4192,26 @@ void register_Type74_type_identifier() header_Type74 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type74); CompleteStructMemberSeq member_seq_Type74; { - return_code_Type74 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type74); + "_uint16_t", type_ids_index); - if (return_code_Type74 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type74.type_identifier1()._d() || TK_NONE == type_ids_Type74.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type74.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type74.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type74.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type74.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type74.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type74.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type74.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type74.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type74.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type74.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type74.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type74.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type74.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type74.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type74.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type74.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type74.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type74.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type74.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type74.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type74.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type74.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type74.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7051,29 +4223,26 @@ void register_Type74_type_identifier() } CompleteStructType struct_type_Type74 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type74, header_Type74, member_seq_Type74); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type74, type_name_Type74.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type74, type_name_Type74.to_string(), type_ids_Type74)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type74 already registered in TypeObjectRegistry for a different type."); } - return_code_Type74 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type74", type_ids_Type74); - if (return_code_Type74 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type74: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type75_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type75_type_identifier( + TypeIdentifierPair& type_ids_Type75) { + + ReturnCode_t return_code_Type75 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type75 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type75", type_ids_Type75); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type75) { - StructTypeFlag struct_flags_Type75 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type75 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type75; - TypeIdentifierPair type_ids_Type75; QualifiedTypeName type_name_Type75 = "Type75"; eprosima::fastcdr::optional type_ann_builtin_Type75; eprosima::fastcdr::optional ann_custom_Type75; @@ -7082,60 +4251,26 @@ void register_Type75_type_identifier() header_Type75 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type75); CompleteStructMemberSeq member_seq_Type75; { - return_code_Type75 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type75); + "_uint16_t", type_ids_index); - if (return_code_Type75 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type75.type_identifier1()._d() || TK_NONE == type_ids_Type75.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type75.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type75.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type75.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type75.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type75.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type75.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type75.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type75.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type75.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type75.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type75.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type75.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type75.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type75.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type75.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type75.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type75.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type75.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type75.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type75.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type75.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type75.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type75.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7147,29 +4282,26 @@ void register_Type75_type_identifier() } CompleteStructType struct_type_Type75 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type75, header_Type75, member_seq_Type75); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type75, type_name_Type75.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type75, type_name_Type75.to_string(), type_ids_Type75)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type75 already registered in TypeObjectRegistry for a different type."); } - return_code_Type75 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type75", type_ids_Type75); - if (return_code_Type75 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type75: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type76_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type76_type_identifier( + TypeIdentifierPair& type_ids_Type76) { + + ReturnCode_t return_code_Type76 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type76 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type76", type_ids_Type76); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type76) { - StructTypeFlag struct_flags_Type76 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type76 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type76; - TypeIdentifierPair type_ids_Type76; QualifiedTypeName type_name_Type76 = "Type76"; eprosima::fastcdr::optional type_ann_builtin_Type76; eprosima::fastcdr::optional ann_custom_Type76; @@ -7178,60 +4310,26 @@ void register_Type76_type_identifier() header_Type76 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type76); CompleteStructMemberSeq member_seq_Type76; { - return_code_Type76 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type76); + "_uint16_t", type_ids_index); - if (return_code_Type76 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type76.type_identifier1()._d() || TK_NONE == type_ids_Type76.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type76.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type76.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type76.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type76.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type76.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type76.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type76.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type76.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type76.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type76.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type76.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type76.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type76.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type76.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type76.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type76.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type76.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type76.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type76.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type76.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type76.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type76.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type76.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7243,29 +4341,26 @@ void register_Type76_type_identifier() } CompleteStructType struct_type_Type76 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type76, header_Type76, member_seq_Type76); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type76, type_name_Type76.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type76, type_name_Type76.to_string(), type_ids_Type76)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type76 already registered in TypeObjectRegistry for a different type."); } - return_code_Type76 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type76", type_ids_Type76); - if (return_code_Type76 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type76: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type77_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type77_type_identifier( + TypeIdentifierPair& type_ids_Type77) { + + ReturnCode_t return_code_Type77 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type77 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type77", type_ids_Type77); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type77) { - StructTypeFlag struct_flags_Type77 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type77 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type77; - TypeIdentifierPair type_ids_Type77; QualifiedTypeName type_name_Type77 = "Type77"; eprosima::fastcdr::optional type_ann_builtin_Type77; eprosima::fastcdr::optional ann_custom_Type77; @@ -7274,60 +4369,26 @@ void register_Type77_type_identifier() header_Type77 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type77); CompleteStructMemberSeq member_seq_Type77; { - return_code_Type77 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type77); + "_uint16_t", type_ids_index); - if (return_code_Type77 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type77.type_identifier1()._d() || TK_NONE == type_ids_Type77.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type77.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type77.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type77.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type77.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type77.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type77.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type77.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type77.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type77.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type77.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type77.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type77.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type77.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type77.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type77.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type77.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type77.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type77.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type77.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type77.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type77.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type77.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type77.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7339,29 +4400,26 @@ void register_Type77_type_identifier() } CompleteStructType struct_type_Type77 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type77, header_Type77, member_seq_Type77); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type77, type_name_Type77.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type77, type_name_Type77.to_string(), type_ids_Type77)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type77 already registered in TypeObjectRegistry for a different type."); } - return_code_Type77 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type77", type_ids_Type77); - if (return_code_Type77 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type77: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type78_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type78_type_identifier( + TypeIdentifierPair& type_ids_Type78) { + + ReturnCode_t return_code_Type78 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type78 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type78", type_ids_Type78); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type78) { - StructTypeFlag struct_flags_Type78 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type78 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type78; - TypeIdentifierPair type_ids_Type78; QualifiedTypeName type_name_Type78 = "Type78"; eprosima::fastcdr::optional type_ann_builtin_Type78; eprosima::fastcdr::optional ann_custom_Type78; @@ -7370,60 +4428,26 @@ void register_Type78_type_identifier() header_Type78 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type78); CompleteStructMemberSeq member_seq_Type78; { - return_code_Type78 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type78); + "_uint16_t", type_ids_index); - if (return_code_Type78 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type78.type_identifier1()._d() || TK_NONE == type_ids_Type78.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type78.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type78.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type78.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type78.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type78.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type78.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type78.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type78.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type78.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type78.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type78.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type78.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type78.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type78.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type78.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type78.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type78.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type78.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type78.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type78.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type78.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type78.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type78.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7435,29 +4459,26 @@ void register_Type78_type_identifier() } CompleteStructType struct_type_Type78 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type78, header_Type78, member_seq_Type78); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type78, type_name_Type78.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type78, type_name_Type78.to_string(), type_ids_Type78)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type78 already registered in TypeObjectRegistry for a different type."); } - return_code_Type78 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type78", type_ids_Type78); - if (return_code_Type78 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type78: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type79_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type79_type_identifier( + TypeIdentifierPair& type_ids_Type79) { + + ReturnCode_t return_code_Type79 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type79 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type79", type_ids_Type79); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type79) { - StructTypeFlag struct_flags_Type79 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type79 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type79; - TypeIdentifierPair type_ids_Type79; QualifiedTypeName type_name_Type79 = "Type79"; eprosima::fastcdr::optional type_ann_builtin_Type79; eprosima::fastcdr::optional ann_custom_Type79; @@ -7466,60 +4487,26 @@ void register_Type79_type_identifier() header_Type79 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type79); CompleteStructMemberSeq member_seq_Type79; { - return_code_Type79 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type79); + "_uint16_t", type_ids_index); - if (return_code_Type79 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type79.type_identifier1()._d() || TK_NONE == type_ids_Type79.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type79.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type79.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type79.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type79.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type79.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type79.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type79.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type79.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type79.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type79.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type79.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type79.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type79.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type79.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type79.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type79.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type79.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type79.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type79.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type79.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type79.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type79.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type79.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7531,29 +4518,26 @@ void register_Type79_type_identifier() } CompleteStructType struct_type_Type79 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type79, header_Type79, member_seq_Type79); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type79, type_name_Type79.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type79, type_name_Type79.to_string(), type_ids_Type79)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type79 already registered in TypeObjectRegistry for a different type."); } - return_code_Type79 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type79", type_ids_Type79); - if (return_code_Type79 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type79: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type80_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type80_type_identifier( + TypeIdentifierPair& type_ids_Type80) { + + ReturnCode_t return_code_Type80 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type80 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type80", type_ids_Type80); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type80) { - StructTypeFlag struct_flags_Type80 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type80 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type80; - TypeIdentifierPair type_ids_Type80; QualifiedTypeName type_name_Type80 = "Type80"; eprosima::fastcdr::optional type_ann_builtin_Type80; eprosima::fastcdr::optional ann_custom_Type80; @@ -7562,60 +4546,26 @@ void register_Type80_type_identifier() header_Type80 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type80); CompleteStructMemberSeq member_seq_Type80; { - return_code_Type80 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type80); + "_uint16_t", type_ids_index); - if (return_code_Type80 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type80.type_identifier1()._d() || TK_NONE == type_ids_Type80.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type80.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type80.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type80.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type80.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type80.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type80.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type80.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type80.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type80.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type80.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type80.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type80.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type80.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type80.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type80.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type80.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type80.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type80.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type80.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type80.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type80.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type80.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type80.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7627,29 +4577,26 @@ void register_Type80_type_identifier() } CompleteStructType struct_type_Type80 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type80, header_Type80, member_seq_Type80); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type80, type_name_Type80.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type80, type_name_Type80.to_string(), type_ids_Type80)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type80 already registered in TypeObjectRegistry for a different type."); } - return_code_Type80 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type80", type_ids_Type80); - if (return_code_Type80 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type80: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type81_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type81_type_identifier( + TypeIdentifierPair& type_ids_Type81) { + + ReturnCode_t return_code_Type81 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type81 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type81", type_ids_Type81); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type81) { - StructTypeFlag struct_flags_Type81 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type81 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type81; - TypeIdentifierPair type_ids_Type81; QualifiedTypeName type_name_Type81 = "Type81"; eprosima::fastcdr::optional type_ann_builtin_Type81; eprosima::fastcdr::optional ann_custom_Type81; @@ -7658,60 +4605,26 @@ void register_Type81_type_identifier() header_Type81 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type81); CompleteStructMemberSeq member_seq_Type81; { - return_code_Type81 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type81); + "_uint16_t", type_ids_index); - if (return_code_Type81 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type81.type_identifier1()._d() || TK_NONE == type_ids_Type81.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type81.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type81.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type81.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type81.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type81.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type81.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type81.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type81.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type81.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type81.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type81.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type81.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type81.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type81.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type81.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type81.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type81.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type81.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type81.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type81.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type81.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type81.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type81.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7723,29 +4636,26 @@ void register_Type81_type_identifier() } CompleteStructType struct_type_Type81 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type81, header_Type81, member_seq_Type81); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type81, type_name_Type81.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type81, type_name_Type81.to_string(), type_ids_Type81)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type81 already registered in TypeObjectRegistry for a different type."); } - return_code_Type81 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type81", type_ids_Type81); - if (return_code_Type81 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type81: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type82_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type82_type_identifier( + TypeIdentifierPair& type_ids_Type82) { + + ReturnCode_t return_code_Type82 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type82 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type82", type_ids_Type82); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type82) { - StructTypeFlag struct_flags_Type82 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type82 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type82; - TypeIdentifierPair type_ids_Type82; QualifiedTypeName type_name_Type82 = "Type82"; eprosima::fastcdr::optional type_ann_builtin_Type82; eprosima::fastcdr::optional ann_custom_Type82; @@ -7754,60 +4664,26 @@ void register_Type82_type_identifier() header_Type82 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type82); CompleteStructMemberSeq member_seq_Type82; { - return_code_Type82 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type82); + "_uint16_t", type_ids_index); - if (return_code_Type82 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type82.type_identifier1()._d() || TK_NONE == type_ids_Type82.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type82.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type82.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type82.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type82.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type82.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type82.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type82.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type82.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type82.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type82.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type82.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type82.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type82.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type82.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type82.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type82.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type82.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type82.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type82.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type82.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type82.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type82.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type82.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7819,29 +4695,26 @@ void register_Type82_type_identifier() } CompleteStructType struct_type_Type82 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type82, header_Type82, member_seq_Type82); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type82, type_name_Type82.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type82, type_name_Type82.to_string(), type_ids_Type82)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type82 already registered in TypeObjectRegistry for a different type."); } - return_code_Type82 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type82", type_ids_Type82); - if (return_code_Type82 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type82: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type83_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type83_type_identifier( + TypeIdentifierPair& type_ids_Type83) { + + ReturnCode_t return_code_Type83 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type83 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type83", type_ids_Type83); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type83) { - StructTypeFlag struct_flags_Type83 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type83 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type83; - TypeIdentifierPair type_ids_Type83; QualifiedTypeName type_name_Type83 = "Type83"; eprosima::fastcdr::optional type_ann_builtin_Type83; eprosima::fastcdr::optional ann_custom_Type83; @@ -7850,60 +4723,26 @@ void register_Type83_type_identifier() header_Type83 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type83); CompleteStructMemberSeq member_seq_Type83; { - return_code_Type83 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type83); + "_uint16_t", type_ids_index); - if (return_code_Type83 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type83.type_identifier1()._d() || TK_NONE == type_ids_Type83.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type83.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type83.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type83.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type83.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type83.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type83.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type83.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type83.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type83.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type83.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type83.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type83.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type83.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type83.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type83.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type83.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type83.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type83.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type83.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type83.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type83.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type83.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type83.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -7915,29 +4754,26 @@ void register_Type83_type_identifier() } CompleteStructType struct_type_Type83 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type83, header_Type83, member_seq_Type83); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type83, type_name_Type83.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type83, type_name_Type83.to_string(), type_ids_Type83)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type83 already registered in TypeObjectRegistry for a different type."); } - return_code_Type83 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type83", type_ids_Type83); - if (return_code_Type83 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type83: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type84_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type84_type_identifier( + TypeIdentifierPair& type_ids_Type84) { + + ReturnCode_t return_code_Type84 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type84 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type84", type_ids_Type84); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type84) { - StructTypeFlag struct_flags_Type84 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type84 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type84; - TypeIdentifierPair type_ids_Type84; QualifiedTypeName type_name_Type84 = "Type84"; eprosima::fastcdr::optional type_ann_builtin_Type84; eprosima::fastcdr::optional ann_custom_Type84; @@ -7946,60 +4782,26 @@ void register_Type84_type_identifier() header_Type84 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type84); CompleteStructMemberSeq member_seq_Type84; { - return_code_Type84 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type84); + "_uint16_t", type_ids_index); - if (return_code_Type84 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type84.type_identifier1()._d() || TK_NONE == type_ids_Type84.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type84.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type84.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type84.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type84.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type84.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type84.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type84.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type84.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type84.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type84.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type84.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type84.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type84.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type84.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type84.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type84.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type84.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type84.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type84.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type84.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type84.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type84.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type84.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8011,29 +4813,26 @@ void register_Type84_type_identifier() } CompleteStructType struct_type_Type84 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type84, header_Type84, member_seq_Type84); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type84, type_name_Type84.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type84, type_name_Type84.to_string(), type_ids_Type84)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type84 already registered in TypeObjectRegistry for a different type."); } - return_code_Type84 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type84", type_ids_Type84); - if (return_code_Type84 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type84: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type85_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type85_type_identifier( + TypeIdentifierPair& type_ids_Type85) { + + ReturnCode_t return_code_Type85 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type85 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type85", type_ids_Type85); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type85) { - StructTypeFlag struct_flags_Type85 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type85 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type85; - TypeIdentifierPair type_ids_Type85; QualifiedTypeName type_name_Type85 = "Type85"; eprosima::fastcdr::optional type_ann_builtin_Type85; eprosima::fastcdr::optional ann_custom_Type85; @@ -8042,60 +4841,26 @@ void register_Type85_type_identifier() header_Type85 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type85); CompleteStructMemberSeq member_seq_Type85; { - return_code_Type85 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type85); + "_uint16_t", type_ids_index); - if (return_code_Type85 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type85.type_identifier1()._d() || TK_NONE == type_ids_Type85.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type85.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type85.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type85.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type85.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type85.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type85.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type85.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type85.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type85.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type85.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type85.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type85.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type85.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type85.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type85.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type85.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type85.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type85.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type85.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type85.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type85.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type85.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type85.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8107,29 +4872,26 @@ void register_Type85_type_identifier() } CompleteStructType struct_type_Type85 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type85, header_Type85, member_seq_Type85); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type85, type_name_Type85.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type85, type_name_Type85.to_string(), type_ids_Type85)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type85 already registered in TypeObjectRegistry for a different type."); } - return_code_Type85 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type85", type_ids_Type85); - if (return_code_Type85 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type85: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type86_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type86_type_identifier( + TypeIdentifierPair& type_ids_Type86) { + + ReturnCode_t return_code_Type86 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type86 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type86", type_ids_Type86); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type86) { - StructTypeFlag struct_flags_Type86 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type86 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type86; - TypeIdentifierPair type_ids_Type86; QualifiedTypeName type_name_Type86 = "Type86"; eprosima::fastcdr::optional type_ann_builtin_Type86; eprosima::fastcdr::optional ann_custom_Type86; @@ -8138,60 +4900,26 @@ void register_Type86_type_identifier() header_Type86 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type86); CompleteStructMemberSeq member_seq_Type86; { - return_code_Type86 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type86); + "_uint16_t", type_ids_index); - if (return_code_Type86 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type86.type_identifier1()._d() || TK_NONE == type_ids_Type86.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type86.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type86.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type86.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type86.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type86.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type86.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type86.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type86.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type86.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type86.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type86.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type86.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type86.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type86.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type86.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type86.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type86.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type86.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type86.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type86.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type86.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type86.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type86.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8203,29 +4931,26 @@ void register_Type86_type_identifier() } CompleteStructType struct_type_Type86 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type86, header_Type86, member_seq_Type86); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type86, type_name_Type86.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type86, type_name_Type86.to_string(), type_ids_Type86)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type86 already registered in TypeObjectRegistry for a different type."); } - return_code_Type86 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type86", type_ids_Type86); - if (return_code_Type86 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type86: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type87_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type87_type_identifier( + TypeIdentifierPair& type_ids_Type87) { + + ReturnCode_t return_code_Type87 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type87 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type87", type_ids_Type87); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type87) { - StructTypeFlag struct_flags_Type87 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type87 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type87; - TypeIdentifierPair type_ids_Type87; QualifiedTypeName type_name_Type87 = "Type87"; eprosima::fastcdr::optional type_ann_builtin_Type87; eprosima::fastcdr::optional ann_custom_Type87; @@ -8234,60 +4959,26 @@ void register_Type87_type_identifier() header_Type87 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type87); CompleteStructMemberSeq member_seq_Type87; { - return_code_Type87 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type87); + "_uint16_t", type_ids_index); - if (return_code_Type87 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type87.type_identifier1()._d() || TK_NONE == type_ids_Type87.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type87.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type87.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type87.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type87.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type87.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type87.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type87.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type87.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type87.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type87.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type87.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type87.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type87.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type87.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type87.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type87.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type87.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type87.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type87.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type87.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type87.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type87.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type87.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8299,29 +4990,26 @@ void register_Type87_type_identifier() } CompleteStructType struct_type_Type87 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type87, header_Type87, member_seq_Type87); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type87, type_name_Type87.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type87, type_name_Type87.to_string(), type_ids_Type87)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type87 already registered in TypeObjectRegistry for a different type."); } - return_code_Type87 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type87", type_ids_Type87); - if (return_code_Type87 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type87: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type88_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type88_type_identifier( + TypeIdentifierPair& type_ids_Type88) { + + ReturnCode_t return_code_Type88 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type88 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type88", type_ids_Type88); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type88) { - StructTypeFlag struct_flags_Type88 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type88 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type88; - TypeIdentifierPair type_ids_Type88; QualifiedTypeName type_name_Type88 = "Type88"; eprosima::fastcdr::optional type_ann_builtin_Type88; eprosima::fastcdr::optional ann_custom_Type88; @@ -8330,60 +5018,26 @@ void register_Type88_type_identifier() header_Type88 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type88); CompleteStructMemberSeq member_seq_Type88; { - return_code_Type88 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type88); + "_uint16_t", type_ids_index); - if (return_code_Type88 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type88.type_identifier1()._d() || TK_NONE == type_ids_Type88.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type88.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type88.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type88.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type88.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type88.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type88.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type88.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type88.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type88.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type88.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type88.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type88.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type88.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type88.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type88.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type88.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type88.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type88.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type88.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type88.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type88.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type88.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type88.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8395,29 +5049,26 @@ void register_Type88_type_identifier() } CompleteStructType struct_type_Type88 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type88, header_Type88, member_seq_Type88); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type88, type_name_Type88.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type88, type_name_Type88.to_string(), type_ids_Type88)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type88 already registered in TypeObjectRegistry for a different type."); } - return_code_Type88 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type88", type_ids_Type88); - if (return_code_Type88 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type88: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type89_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type89_type_identifier( + TypeIdentifierPair& type_ids_Type89) { + + ReturnCode_t return_code_Type89 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type89 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type89", type_ids_Type89); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type89) { - StructTypeFlag struct_flags_Type89 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type89 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type89; - TypeIdentifierPair type_ids_Type89; QualifiedTypeName type_name_Type89 = "Type89"; eprosima::fastcdr::optional type_ann_builtin_Type89; eprosima::fastcdr::optional ann_custom_Type89; @@ -8426,60 +5077,26 @@ void register_Type89_type_identifier() header_Type89 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type89); CompleteStructMemberSeq member_seq_Type89; { - return_code_Type89 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type89); + "_uint16_t", type_ids_index); - if (return_code_Type89 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type89.type_identifier1()._d() || TK_NONE == type_ids_Type89.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type89.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type89.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type89.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type89.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type89.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type89.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type89.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type89.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type89.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type89.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type89.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type89.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type89.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type89.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type89.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type89.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type89.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type89.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type89.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type89.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type89.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type89.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type89.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8491,29 +5108,26 @@ void register_Type89_type_identifier() } CompleteStructType struct_type_Type89 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type89, header_Type89, member_seq_Type89); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type89, type_name_Type89.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type89, type_name_Type89.to_string(), type_ids_Type89)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type89 already registered in TypeObjectRegistry for a different type."); } - return_code_Type89 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type89", type_ids_Type89); - if (return_code_Type89 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type89: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type90_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type90_type_identifier( + TypeIdentifierPair& type_ids_Type90) { + + ReturnCode_t return_code_Type90 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type90 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type90", type_ids_Type90); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type90) { - StructTypeFlag struct_flags_Type90 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type90 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type90; - TypeIdentifierPair type_ids_Type90; QualifiedTypeName type_name_Type90 = "Type90"; eprosima::fastcdr::optional type_ann_builtin_Type90; eprosima::fastcdr::optional ann_custom_Type90; @@ -8522,60 +5136,26 @@ void register_Type90_type_identifier() header_Type90 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type90); CompleteStructMemberSeq member_seq_Type90; { - return_code_Type90 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type90); + "_uint16_t", type_ids_index); - if (return_code_Type90 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type90.type_identifier1()._d() || TK_NONE == type_ids_Type90.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type90.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type90.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type90.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type90.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type90.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type90.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type90.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type90.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type90.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type90.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type90.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type90.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type90.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type90.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type90.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type90.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type90.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type90.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type90.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type90.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type90.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type90.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type90.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8587,29 +5167,26 @@ void register_Type90_type_identifier() } CompleteStructType struct_type_Type90 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type90, header_Type90, member_seq_Type90); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type90, type_name_Type90.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type90, type_name_Type90.to_string(), type_ids_Type90)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type90 already registered in TypeObjectRegistry for a different type."); } - return_code_Type90 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type90", type_ids_Type90); - if (return_code_Type90 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type90: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type91_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type91_type_identifier( + TypeIdentifierPair& type_ids_Type91) { + + ReturnCode_t return_code_Type91 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type91 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type91", type_ids_Type91); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type91) { - StructTypeFlag struct_flags_Type91 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type91 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type91; - TypeIdentifierPair type_ids_Type91; QualifiedTypeName type_name_Type91 = "Type91"; eprosima::fastcdr::optional type_ann_builtin_Type91; eprosima::fastcdr::optional ann_custom_Type91; @@ -8618,60 +5195,26 @@ void register_Type91_type_identifier() header_Type91 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type91); CompleteStructMemberSeq member_seq_Type91; { - return_code_Type91 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type91); + "_uint16_t", type_ids_index); - if (return_code_Type91 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type91.type_identifier1()._d() || TK_NONE == type_ids_Type91.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type91.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type91.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type91.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type91.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type91.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type91.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type91.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type91.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type91.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type91.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type91.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type91.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type91.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type91.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type91.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type91.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type91.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type91.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type91.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type91.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type91.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type91.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type91.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8683,29 +5226,26 @@ void register_Type91_type_identifier() } CompleteStructType struct_type_Type91 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type91, header_Type91, member_seq_Type91); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type91, type_name_Type91.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type91, type_name_Type91.to_string(), type_ids_Type91)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type91 already registered in TypeObjectRegistry for a different type."); } - return_code_Type91 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type91", type_ids_Type91); - if (return_code_Type91 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type91: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type92_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type92_type_identifier( + TypeIdentifierPair& type_ids_Type92) { + + ReturnCode_t return_code_Type92 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type92 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type92", type_ids_Type92); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type92) { - StructTypeFlag struct_flags_Type92 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type92 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type92; - TypeIdentifierPair type_ids_Type92; QualifiedTypeName type_name_Type92 = "Type92"; eprosima::fastcdr::optional type_ann_builtin_Type92; eprosima::fastcdr::optional ann_custom_Type92; @@ -8714,60 +5254,26 @@ void register_Type92_type_identifier() header_Type92 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type92); CompleteStructMemberSeq member_seq_Type92; { - return_code_Type92 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type92); + "_uint16_t", type_ids_index); - if (return_code_Type92 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type92.type_identifier1()._d() || TK_NONE == type_ids_Type92.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type92.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type92.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type92.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type92.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type92.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type92.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type92.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type92.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type92.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type92.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type92.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type92.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type92.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type92.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type92.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type92.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type92.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type92.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type92.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type92.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type92.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type92.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type92.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8779,29 +5285,26 @@ void register_Type92_type_identifier() } CompleteStructType struct_type_Type92 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type92, header_Type92, member_seq_Type92); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type92, type_name_Type92.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type92, type_name_Type92.to_string(), type_ids_Type92)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type92 already registered in TypeObjectRegistry for a different type."); } - return_code_Type92 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type92", type_ids_Type92); - if (return_code_Type92 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type92: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type93_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type93_type_identifier( + TypeIdentifierPair& type_ids_Type93) { + + ReturnCode_t return_code_Type93 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type93 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type93", type_ids_Type93); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type93) { - StructTypeFlag struct_flags_Type93 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type93 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type93; - TypeIdentifierPair type_ids_Type93; QualifiedTypeName type_name_Type93 = "Type93"; eprosima::fastcdr::optional type_ann_builtin_Type93; eprosima::fastcdr::optional ann_custom_Type93; @@ -8810,60 +5313,26 @@ void register_Type93_type_identifier() header_Type93 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type93); CompleteStructMemberSeq member_seq_Type93; { - return_code_Type93 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type93); + "_uint16_t", type_ids_index); - if (return_code_Type93 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type93.type_identifier1()._d() || TK_NONE == type_ids_Type93.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type93.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type93.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type93.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type93.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type93.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type93.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type93.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type93.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type93.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type93.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type93.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type93.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type93.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type93.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type93.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type93.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type93.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type93.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type93.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type93.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type93.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type93.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type93.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8875,29 +5344,26 @@ void register_Type93_type_identifier() } CompleteStructType struct_type_Type93 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type93, header_Type93, member_seq_Type93); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type93, type_name_Type93.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type93, type_name_Type93.to_string(), type_ids_Type93)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type93 already registered in TypeObjectRegistry for a different type."); } - return_code_Type93 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type93", type_ids_Type93); - if (return_code_Type93 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type93: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type94_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type94_type_identifier( + TypeIdentifierPair& type_ids_Type94) { + + ReturnCode_t return_code_Type94 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type94 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type94", type_ids_Type94); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type94) { - StructTypeFlag struct_flags_Type94 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type94 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type94; - TypeIdentifierPair type_ids_Type94; QualifiedTypeName type_name_Type94 = "Type94"; eprosima::fastcdr::optional type_ann_builtin_Type94; eprosima::fastcdr::optional ann_custom_Type94; @@ -8906,60 +5372,26 @@ void register_Type94_type_identifier() header_Type94 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type94); CompleteStructMemberSeq member_seq_Type94; { - return_code_Type94 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type94); + "_uint16_t", type_ids_index); - if (return_code_Type94 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type94.type_identifier1()._d() || TK_NONE == type_ids_Type94.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type94.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type94.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type94.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type94.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type94.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type94.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type94.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type94.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type94.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type94.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type94.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type94.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type94.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type94.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type94.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type94.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type94.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type94.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type94.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type94.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type94.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type94.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type94.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -8971,29 +5403,26 @@ void register_Type94_type_identifier() } CompleteStructType struct_type_Type94 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type94, header_Type94, member_seq_Type94); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type94, type_name_Type94.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type94, type_name_Type94.to_string(), type_ids_Type94)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type94 already registered in TypeObjectRegistry for a different type."); } - return_code_Type94 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type94", type_ids_Type94); - if (return_code_Type94 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type94: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type95_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type95_type_identifier( + TypeIdentifierPair& type_ids_Type95) { + + ReturnCode_t return_code_Type95 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type95 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type95", type_ids_Type95); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type95) { - StructTypeFlag struct_flags_Type95 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type95 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type95; - TypeIdentifierPair type_ids_Type95; QualifiedTypeName type_name_Type95 = "Type95"; eprosima::fastcdr::optional type_ann_builtin_Type95; eprosima::fastcdr::optional ann_custom_Type95; @@ -9002,60 +5431,26 @@ void register_Type95_type_identifier() header_Type95 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type95); CompleteStructMemberSeq member_seq_Type95; { - return_code_Type95 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type95); + "_uint16_t", type_ids_index); - if (return_code_Type95 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type95.type_identifier1()._d() || TK_NONE == type_ids_Type95.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type95.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type95.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type95.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type95.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type95.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type95.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type95.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type95.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type95.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type95.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type95.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type95.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type95.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type95.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type95.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type95.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type95.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type95.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type95.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type95.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type95.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type95.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type95.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -9067,29 +5462,26 @@ void register_Type95_type_identifier() } CompleteStructType struct_type_Type95 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type95, header_Type95, member_seq_Type95); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type95, type_name_Type95.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type95, type_name_Type95.to_string(), type_ids_Type95)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type95 already registered in TypeObjectRegistry for a different type."); } - return_code_Type95 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type95", type_ids_Type95); - if (return_code_Type95 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type95: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type96_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type96_type_identifier( + TypeIdentifierPair& type_ids_Type96) { + + ReturnCode_t return_code_Type96 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type96 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type96", type_ids_Type96); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type96) { - StructTypeFlag struct_flags_Type96 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type96 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type96; - TypeIdentifierPair type_ids_Type96; QualifiedTypeName type_name_Type96 = "Type96"; eprosima::fastcdr::optional type_ann_builtin_Type96; eprosima::fastcdr::optional ann_custom_Type96; @@ -9098,60 +5490,26 @@ void register_Type96_type_identifier() header_Type96 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type96); CompleteStructMemberSeq member_seq_Type96; { - return_code_Type96 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type96); + "_uint16_t", type_ids_index); - if (return_code_Type96 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type96.type_identifier1()._d() || TK_NONE == type_ids_Type96.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type96.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type96.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type96.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type96.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type96.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type96.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type96.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type96.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type96.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type96.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type96.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type96.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type96.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type96.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type96.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type96.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type96.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type96.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type96.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type96.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type96.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type96.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type96.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -9163,29 +5521,26 @@ void register_Type96_type_identifier() } CompleteStructType struct_type_Type96 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type96, header_Type96, member_seq_Type96); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type96, type_name_Type96.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type96, type_name_Type96.to_string(), type_ids_Type96)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type96 already registered in TypeObjectRegistry for a different type."); } - return_code_Type96 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type96", type_ids_Type96); - if (return_code_Type96 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type96: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type97_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type97_type_identifier( + TypeIdentifierPair& type_ids_Type97) { + + ReturnCode_t return_code_Type97 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type97 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type97", type_ids_Type97); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type97) { - StructTypeFlag struct_flags_Type97 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type97 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type97; - TypeIdentifierPair type_ids_Type97; QualifiedTypeName type_name_Type97 = "Type97"; eprosima::fastcdr::optional type_ann_builtin_Type97; eprosima::fastcdr::optional ann_custom_Type97; @@ -9194,60 +5549,26 @@ void register_Type97_type_identifier() header_Type97 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type97); CompleteStructMemberSeq member_seq_Type97; { - return_code_Type97 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type97); + "_uint16_t", type_ids_index); - if (return_code_Type97 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type97.type_identifier1()._d() || TK_NONE == type_ids_Type97.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type97.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type97.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type97.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type97.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type97.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type97.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type97.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type97.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type97.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type97.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type97.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type97.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type97.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type97.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type97.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type97.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type97.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type97.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type97.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type97.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type97.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type97.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type97.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -9259,29 +5580,26 @@ void register_Type97_type_identifier() } CompleteStructType struct_type_Type97 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type97, header_Type97, member_seq_Type97); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type97, type_name_Type97.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type97, type_name_Type97.to_string(), type_ids_Type97)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type97 already registered in TypeObjectRegistry for a different type."); } - return_code_Type97 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type97", type_ids_Type97); - if (return_code_Type97 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type97: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type98_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type98_type_identifier( + TypeIdentifierPair& type_ids_Type98) { + + ReturnCode_t return_code_Type98 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type98 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type98", type_ids_Type98); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type98) { - StructTypeFlag struct_flags_Type98 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type98 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type98; - TypeIdentifierPair type_ids_Type98; QualifiedTypeName type_name_Type98 = "Type98"; eprosima::fastcdr::optional type_ann_builtin_Type98; eprosima::fastcdr::optional ann_custom_Type98; @@ -9290,60 +5608,26 @@ void register_Type98_type_identifier() header_Type98 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type98); CompleteStructMemberSeq member_seq_Type98; { - return_code_Type98 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type98); + "_uint16_t", type_ids_index); - if (return_code_Type98 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type98.type_identifier1()._d() || TK_NONE == type_ids_Type98.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type98.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type98.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type98.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type98.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type98.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type98.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type98.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type98.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type98.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type98.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type98.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type98.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type98.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type98.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type98.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type98.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type98.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type98.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type98.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type98.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type98.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type98.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type98.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -9355,29 +5639,26 @@ void register_Type98_type_identifier() } CompleteStructType struct_type_Type98 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type98, header_Type98, member_seq_Type98); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type98, type_name_Type98.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type98, type_name_Type98.to_string(), type_ids_Type98)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type98 already registered in TypeObjectRegistry for a different type."); } - return_code_Type98 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type98", type_ids_Type98); - if (return_code_Type98 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type98: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type99_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type99_type_identifier( + TypeIdentifierPair& type_ids_Type99) { + + ReturnCode_t return_code_Type99 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type99 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type99", type_ids_Type99); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type99) { - StructTypeFlag struct_flags_Type99 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type99 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type99; - TypeIdentifierPair type_ids_Type99; QualifiedTypeName type_name_Type99 = "Type99"; eprosima::fastcdr::optional type_ann_builtin_Type99; eprosima::fastcdr::optional ann_custom_Type99; @@ -9386,60 +5667,26 @@ void register_Type99_type_identifier() header_Type99 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type99); CompleteStructMemberSeq member_seq_Type99; { - return_code_Type99 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type99); + "_uint16_t", type_ids_index); - if (return_code_Type99 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type99.type_identifier1()._d() || TK_NONE == type_ids_Type99.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type99.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type99.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type99.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type99.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type99.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type99.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type99.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type99.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type99.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type99.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type99.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type99.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type99.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type99.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type99.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type99.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type99.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type99.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type99.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type99.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type99.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type99.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type99.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -9451,29 +5698,26 @@ void register_Type99_type_identifier() } CompleteStructType struct_type_Type99 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type99, header_Type99, member_seq_Type99); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type99, type_name_Type99.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type99, type_name_Type99.to_string(), type_ids_Type99)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type99 already registered in TypeObjectRegistry for a different type."); } - return_code_Type99 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type99", type_ids_Type99); - if (return_code_Type99 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type99: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_Type100_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type100_type_identifier( + TypeIdentifierPair& type_ids_Type100) { + + ReturnCode_t return_code_Type100 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Type100 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type100", type_ids_Type100); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Type100) { - StructTypeFlag struct_flags_Type100 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Type100 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Type100; - TypeIdentifierPair type_ids_Type100; QualifiedTypeName type_name_Type100 = "Type100"; eprosima::fastcdr::optional type_ann_builtin_Type100; eprosima::fastcdr::optional ann_custom_Type100; @@ -9482,60 +5726,26 @@ void register_Type100_type_identifier() header_Type100 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type100); CompleteStructMemberSeq member_seq_Type100; { - return_code_Type100 = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type100); + "_uint16_t", type_ids_index); - if (return_code_Type100 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Type100.type_identifier1()._d() || TK_NONE == type_ids_Type100.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type100.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type100.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type100.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type100.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type100.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type100.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type100.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type100.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type100.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type100.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type100.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type100.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type100.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type100.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type100.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type100.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type100.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type100.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type100.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type100.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type100.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type100.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type100.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -9547,29 +5757,26 @@ void register_Type100_type_identifier() } CompleteStructType struct_type_Type100 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type100, header_Type100, member_seq_Type100); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type100, type_name_Type100.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type100, type_name_Type100.to_string(), type_ids_Type100)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Type100 already registered in TypeObjectRegistry for a different type."); } - return_code_Type100 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type100", type_ids_Type100); - if (return_code_Type100 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type100: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } -void register_TypeBig_type_identifier() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_TypeBig_type_identifier( + TypeIdentifierPair& type_ids_TypeBig) { + + ReturnCode_t return_code_TypeBig {eprosima::fastdds::dds::RETCODE_OK}; + return_code_TypeBig = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "TypeBig", type_ids_TypeBig); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_TypeBig) { - StructTypeFlag struct_flags_TypeBig = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_TypeBig = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_TypeBig; - TypeIdentifierPair type_ids_TypeBig; QualifiedTypeName type_name_TypeBig = "TypeBig"; eprosima::fastcdr::optional type_ann_builtin_TypeBig; eprosima::fastcdr::optional ann_custom_TypeBig; @@ -9578,60 +5785,26 @@ void register_TypeBig_type_identifier() header_TypeBig = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeBig); CompleteStructMemberSeq member_seq_TypeBig; { - return_code_TypeBig = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_TypeBig); + "_uint16_t", type_ids_index); - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_TypeBig.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -9642,150 +5815,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_index); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep1; + ReturnCode_t return_code_dep1 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep1 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type1", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type1; - TypeIdentifierPair type_ids_Type1; - QualifiedTypeName type_name_Type1 = "Type1"; - eprosima::fastcdr::optional type_ann_builtin_Type1; - eprosima::fastcdr::optional ann_custom_Type1; - CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); - CompleteStructHeader header_Type1; - header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); - CompleteStructMemberSeq member_seq_Type1; - { - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type1); - - if (return_code_Type1 != 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_Type1.type_identifier1()._d() || TK_NONE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type1.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_Type1.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); - } - CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, type_name_Type1.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type1", type_ids_Type1); - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type1", type_ids_dep1); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep1) + { + ::register_Type1_type_identifier(type_ids_dep1); + } + StructMemberFlag member_flags_dep1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep1; MemberId member_id_dep1 = 0x00000001; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep1 = TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep1 = TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep1_ec {false}; + CommonStructMember common_dep1 {TypeObjectUtils::build_common_struct_member(member_id_dep1, member_flags_dep1, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep1, common_dep1_ec))}; + if (!common_dep1_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep1 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep1 member TypeIdentifier inconsistent."); return; } MemberName name_dep1 = "dep1"; @@ -9796,150 +5843,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep1); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep2; + ReturnCode_t return_code_dep2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep2 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type2", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type2; - TypeIdentifierPair type_ids_Type2; - QualifiedTypeName type_name_Type2 = "Type2"; - eprosima::fastcdr::optional type_ann_builtin_Type2; - eprosima::fastcdr::optional ann_custom_Type2; - CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); - CompleteStructHeader header_Type2; - header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); - CompleteStructMemberSeq member_seq_Type2; - { - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Type2); - - if (return_code_Type2 != 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_Type2.type_identifier1()._d() || TK_NONE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type2.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_Type2.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); - } - CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, type_name_Type2.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type2", type_ids_Type2); - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type2", type_ids_dep2); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep2) + { + ::register_Type2_type_identifier(type_ids_dep2); + } + StructMemberFlag member_flags_dep2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep2; MemberId member_id_dep2 = 0x00000002; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep2 = TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep2 = TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep2_ec {false}; + CommonStructMember common_dep2 {TypeObjectUtils::build_common_struct_member(member_id_dep2, member_flags_dep2, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep2, common_dep2_ec))}; + if (!common_dep2_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep2 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep2 member TypeIdentifier inconsistent."); return; } MemberName name_dep2 = "dep2"; @@ -9950,150 +5871,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep2); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep3; + ReturnCode_t return_code_dep3 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep3 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type3", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type3; - TypeIdentifierPair type_ids_Type3; - QualifiedTypeName type_name_Type3 = "Type3"; - eprosima::fastcdr::optional type_ann_builtin_Type3; - eprosima::fastcdr::optional ann_custom_Type3; - CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); - CompleteStructHeader header_Type3; - header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); - CompleteStructMemberSeq member_seq_Type3; - { - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Type3); - - if (return_code_Type3 != 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_Type3.type_identifier1()._d() || TK_NONE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type3.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_Type3.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); - } - CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, type_name_Type3.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type3", type_ids_Type3); - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type3", type_ids_dep3); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep3) + { + ::register_Type3_type_identifier(type_ids_dep3); + } + StructMemberFlag member_flags_dep3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep3; MemberId member_id_dep3 = 0x00000003; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep3 = TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep3 = TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep3_ec {false}; + CommonStructMember common_dep3 {TypeObjectUtils::build_common_struct_member(member_id_dep3, member_flags_dep3, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep3, common_dep3_ec))}; + if (!common_dep3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep3 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep3 member TypeIdentifier inconsistent."); return; } MemberName name_dep3 = "dep3"; @@ -10104,150 +5899,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep3); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep4; + ReturnCode_t return_code_dep4 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep4 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type4", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type4 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type4; - TypeIdentifierPair type_ids_Type4; - QualifiedTypeName type_name_Type4 = "Type4"; - eprosima::fastcdr::optional type_ann_builtin_Type4; - eprosima::fastcdr::optional ann_custom_Type4; - CompleteTypeDetail detail_Type4 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type4, ann_custom_Type4, type_name_Type4.to_string()); - CompleteStructHeader header_Type4; - header_Type4 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type4); - CompleteStructMemberSeq member_seq_Type4; - { - return_code_Type4 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type4); - - if (return_code_Type4 != 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_Type4.type_identifier1()._d() || TK_NONE == type_ids_Type4.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type4.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type4.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type4.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type4.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type4.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type4.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type4.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type4.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type4.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type4.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type4.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type4.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type4.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type4.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type4.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type4.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type4.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type4.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type4.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type4.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type4.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type4.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type4.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type4.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_Type4.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type4); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type4, member_index); - } - CompleteStructType struct_type_Type4 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type4, header_Type4, member_seq_Type4); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type4, type_name_Type4.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type4 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type4 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type4", type_ids_Type4); - if (return_code_Type4 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type4: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep4 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type4", type_ids_dep4); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep4) + { + ::register_Type4_type_identifier(type_ids_dep4); + } + StructMemberFlag member_flags_dep4 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep4; MemberId member_id_dep4 = 0x00000004; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep4 = TypeObjectUtils::build_common_struct_member(member_id_dep4, member_flags_dep4, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep4 = TypeObjectUtils::build_common_struct_member(member_id_dep4, member_flags_dep4, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep4_ec {false}; + CommonStructMember common_dep4 {TypeObjectUtils::build_common_struct_member(member_id_dep4, member_flags_dep4, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep4, common_dep4_ec))}; + if (!common_dep4_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep4 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep4 member TypeIdentifier inconsistent."); return; } MemberName name_dep4 = "dep4"; @@ -10258,150 +5927,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep4); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep5; + ReturnCode_t return_code_dep5 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep5 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type5", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type5 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type5; - TypeIdentifierPair type_ids_Type5; - QualifiedTypeName type_name_Type5 = "Type5"; - eprosima::fastcdr::optional type_ann_builtin_Type5; - eprosima::fastcdr::optional ann_custom_Type5; - CompleteTypeDetail detail_Type5 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type5, ann_custom_Type5, type_name_Type5.to_string()); - CompleteStructHeader header_Type5; - header_Type5 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type5); - CompleteStructMemberSeq member_seq_Type5; - { - return_code_Type5 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type5); - - if (return_code_Type5 != 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_Type5.type_identifier1()._d() || TK_NONE == type_ids_Type5.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type5.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type5.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type5.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type5.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type5.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type5.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type5.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type5.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type5.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type5.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type5.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type5.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type5.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type5.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type5.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type5.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type5.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type5.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type5.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type5.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type5.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type5.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type5.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type5.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_Type5.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type5); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type5, member_index); - } - CompleteStructType struct_type_Type5 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type5, header_Type5, member_seq_Type5); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type5, type_name_Type5.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type5 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type5 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type5", type_ids_Type5); - if (return_code_Type5 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type5: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep5 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type5", type_ids_dep5); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep5) + { + ::register_Type5_type_identifier(type_ids_dep5); + } + StructMemberFlag member_flags_dep5 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep5; MemberId member_id_dep5 = 0x00000005; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep5 = TypeObjectUtils::build_common_struct_member(member_id_dep5, member_flags_dep5, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep5 = TypeObjectUtils::build_common_struct_member(member_id_dep5, member_flags_dep5, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep5_ec {false}; + CommonStructMember common_dep5 {TypeObjectUtils::build_common_struct_member(member_id_dep5, member_flags_dep5, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep5, common_dep5_ec))}; + if (!common_dep5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep5 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep5 member TypeIdentifier inconsistent."); return; } MemberName name_dep5 = "dep5"; @@ -10412,150 +5955,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep5); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep6; + ReturnCode_t return_code_dep6 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep6 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type6", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type6 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type6; - TypeIdentifierPair type_ids_Type6; - QualifiedTypeName type_name_Type6 = "Type6"; - eprosima::fastcdr::optional type_ann_builtin_Type6; - eprosima::fastcdr::optional ann_custom_Type6; - CompleteTypeDetail detail_Type6 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type6, ann_custom_Type6, type_name_Type6.to_string()); - CompleteStructHeader header_Type6; - header_Type6 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type6); - CompleteStructMemberSeq member_seq_Type6; - { - return_code_Type6 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type6); - - if (return_code_Type6 != 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_Type6.type_identifier1()._d() || TK_NONE == type_ids_Type6.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type6.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type6.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type6.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type6.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type6.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type6.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type6.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type6.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type6.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type6.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type6.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type6.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type6.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type6.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type6.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type6.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type6.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type6.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type6.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type6.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type6.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type6.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type6.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type6.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_Type6.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type6); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type6, member_index); - } - CompleteStructType struct_type_Type6 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type6, header_Type6, member_seq_Type6); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type6, type_name_Type6.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type6 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type6 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type6", type_ids_Type6); - if (return_code_Type6 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type6: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep6 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type6", type_ids_dep6); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep6) + { + ::register_Type6_type_identifier(type_ids_dep6); + } + StructMemberFlag member_flags_dep6 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep6; MemberId member_id_dep6 = 0x00000006; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep6 = TypeObjectUtils::build_common_struct_member(member_id_dep6, member_flags_dep6, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep6 = TypeObjectUtils::build_common_struct_member(member_id_dep6, member_flags_dep6, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep6_ec {false}; + CommonStructMember common_dep6 {TypeObjectUtils::build_common_struct_member(member_id_dep6, member_flags_dep6, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep6, common_dep6_ec))}; + if (!common_dep6_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep6 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep6 member TypeIdentifier inconsistent."); return; } MemberName name_dep6 = "dep6"; @@ -10566,150 +5983,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep6); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep7; + ReturnCode_t return_code_dep7 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep7 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type7", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type7 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type7; - TypeIdentifierPair type_ids_Type7; - QualifiedTypeName type_name_Type7 = "Type7"; - eprosima::fastcdr::optional type_ann_builtin_Type7; - eprosima::fastcdr::optional ann_custom_Type7; - CompleteTypeDetail detail_Type7 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type7, ann_custom_Type7, type_name_Type7.to_string()); - CompleteStructHeader header_Type7; - header_Type7 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type7); - CompleteStructMemberSeq member_seq_Type7; - { - return_code_Type7 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type7); - - if (return_code_Type7 != 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_Type7.type_identifier1()._d() || TK_NONE == type_ids_Type7.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type7.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type7.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type7.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type7.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type7.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type7.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type7.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type7.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type7.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type7.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type7.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type7.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type7.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type7.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type7.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type7.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type7.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type7.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type7.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type7.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type7.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type7.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type7.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type7.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_Type7.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type7); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type7, member_index); - } - CompleteStructType struct_type_Type7 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type7, header_Type7, member_seq_Type7); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type7, type_name_Type7.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type7 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type7 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type7", type_ids_Type7); - if (return_code_Type7 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type7: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep7 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type7", type_ids_dep7); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep7) + { + ::register_Type7_type_identifier(type_ids_dep7); + } + StructMemberFlag member_flags_dep7 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep7; MemberId member_id_dep7 = 0x00000007; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep7 = TypeObjectUtils::build_common_struct_member(member_id_dep7, member_flags_dep7, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep7 = TypeObjectUtils::build_common_struct_member(member_id_dep7, member_flags_dep7, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep7_ec {false}; + CommonStructMember common_dep7 {TypeObjectUtils::build_common_struct_member(member_id_dep7, member_flags_dep7, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep7, common_dep7_ec))}; + if (!common_dep7_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep7 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep7 member TypeIdentifier inconsistent."); return; } MemberName name_dep7 = "dep7"; @@ -10720,150 +6011,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep7); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep8; + ReturnCode_t return_code_dep8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type8", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type8; - TypeIdentifierPair type_ids_Type8; - QualifiedTypeName type_name_Type8 = "Type8"; - eprosima::fastcdr::optional type_ann_builtin_Type8; - eprosima::fastcdr::optional ann_custom_Type8; - CompleteTypeDetail detail_Type8 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type8, ann_custom_Type8, type_name_Type8.to_string()); - CompleteStructHeader header_Type8; - header_Type8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type8); - CompleteStructMemberSeq member_seq_Type8; - { - return_code_Type8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type8); - - if (return_code_Type8 != 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_Type8.type_identifier1()._d() || TK_NONE == type_ids_Type8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type8.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type8.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type8.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type8.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type8.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type8.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type8.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type8.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type8.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type8.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type8.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type8.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type8.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type8.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type8.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type8.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type8.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type8.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_Type8.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type8); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type8, member_index); - } - CompleteStructType struct_type_Type8 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type8, header_Type8, member_seq_Type8); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type8, type_name_Type8.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type8 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type8", type_ids_Type8); - if (return_code_Type8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type8: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type8", type_ids_dep8); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep8) + { + ::register_Type8_type_identifier(type_ids_dep8); + } + StructMemberFlag member_flags_dep8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep8; MemberId member_id_dep8 = 0x00000008; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep8 = TypeObjectUtils::build_common_struct_member(member_id_dep8, member_flags_dep8, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep8 = TypeObjectUtils::build_common_struct_member(member_id_dep8, member_flags_dep8, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep8_ec {false}; + CommonStructMember common_dep8 {TypeObjectUtils::build_common_struct_member(member_id_dep8, member_flags_dep8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep8, common_dep8_ec))}; + if (!common_dep8_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep8 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep8 member TypeIdentifier inconsistent."); return; } MemberName name_dep8 = "dep8"; @@ -10874,150 +6039,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep8); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep9; + ReturnCode_t return_code_dep9 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep9 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type9", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type9 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type9; - TypeIdentifierPair type_ids_Type9; - QualifiedTypeName type_name_Type9 = "Type9"; - eprosima::fastcdr::optional type_ann_builtin_Type9; - eprosima::fastcdr::optional ann_custom_Type9; - CompleteTypeDetail detail_Type9 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type9, ann_custom_Type9, type_name_Type9.to_string()); - CompleteStructHeader header_Type9; - header_Type9 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type9); - CompleteStructMemberSeq member_seq_Type9; - { - return_code_Type9 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type9); - - if (return_code_Type9 != 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_Type9.type_identifier1()._d() || TK_NONE == type_ids_Type9.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type9.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type9.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type9.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type9.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type9.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type9.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type9.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type9.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type9.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type9.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type9.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type9.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type9.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type9.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type9.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type9.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type9.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type9.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type9.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type9.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type9.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type9.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type9.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type9.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_Type9.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type9); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type9, member_index); - } - CompleteStructType struct_type_Type9 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type9, header_Type9, member_seq_Type9); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type9, type_name_Type9.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type9 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type9 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type9", type_ids_Type9); - if (return_code_Type9 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type9: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep9 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type9", type_ids_dep9); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep9) + { + ::register_Type9_type_identifier(type_ids_dep9); + } + StructMemberFlag member_flags_dep9 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep9; MemberId member_id_dep9 = 0x00000009; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep9 = TypeObjectUtils::build_common_struct_member(member_id_dep9, member_flags_dep9, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep9 = TypeObjectUtils::build_common_struct_member(member_id_dep9, member_flags_dep9, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep9_ec {false}; + CommonStructMember common_dep9 {TypeObjectUtils::build_common_struct_member(member_id_dep9, member_flags_dep9, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep9, common_dep9_ec))}; + if (!common_dep9_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep9 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep9 member TypeIdentifier inconsistent."); return; } MemberName name_dep9 = "dep9"; @@ -11028,150 +6067,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep9); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep10; + ReturnCode_t return_code_dep10 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep10 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type10", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type10 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type10; - TypeIdentifierPair type_ids_Type10; - QualifiedTypeName type_name_Type10 = "Type10"; - eprosima::fastcdr::optional type_ann_builtin_Type10; - eprosima::fastcdr::optional ann_custom_Type10; - CompleteTypeDetail detail_Type10 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type10, ann_custom_Type10, type_name_Type10.to_string()); - CompleteStructHeader header_Type10; - header_Type10 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type10); - CompleteStructMemberSeq member_seq_Type10; - { - return_code_Type10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type10); - - if (return_code_Type10 != 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_Type10.type_identifier1()._d() || TK_NONE == type_ids_Type10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type10.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type10.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type10.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type10.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type10.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type10.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type10.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type10.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type10.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type10.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type10.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type10.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type10.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type10.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type10.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type10.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type10.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type10.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_Type10.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type10); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type10, member_index); - } - CompleteStructType struct_type_Type10 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type10, header_Type10, member_seq_Type10); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type10, type_name_Type10.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type10 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type10", type_ids_Type10); - if (return_code_Type10 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type10: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep10 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type10", type_ids_dep10); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep10) + { + ::register_Type10_type_identifier(type_ids_dep10); + } + StructMemberFlag member_flags_dep10 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep10; MemberId member_id_dep10 = 0x0000000a; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep10 = TypeObjectUtils::build_common_struct_member(member_id_dep10, member_flags_dep10, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep10 = TypeObjectUtils::build_common_struct_member(member_id_dep10, member_flags_dep10, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep10_ec {false}; + CommonStructMember common_dep10 {TypeObjectUtils::build_common_struct_member(member_id_dep10, member_flags_dep10, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep10, common_dep10_ec))}; + if (!common_dep10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep10 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep10 member TypeIdentifier inconsistent."); return; } MemberName name_dep10 = "dep10"; @@ -11182,150 +6095,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep10); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep11; + ReturnCode_t return_code_dep11 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep11 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type11", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type11 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type11; - TypeIdentifierPair type_ids_Type11; - QualifiedTypeName type_name_Type11 = "Type11"; - eprosima::fastcdr::optional type_ann_builtin_Type11; - eprosima::fastcdr::optional ann_custom_Type11; - CompleteTypeDetail detail_Type11 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type11, ann_custom_Type11, type_name_Type11.to_string()); - CompleteStructHeader header_Type11; - header_Type11 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type11); - CompleteStructMemberSeq member_seq_Type11; - { - return_code_Type11 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type11); - - if (return_code_Type11 != 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_Type11.type_identifier1()._d() || TK_NONE == type_ids_Type11.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type11.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type11.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type11.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type11.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type11.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type11.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type11.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type11.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type11.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type11.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type11.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type11.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type11.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type11.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type11.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type11.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type11.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type11.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type11.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type11.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type11.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type11.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type11.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type11.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_Type11.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type11); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type11, member_index); - } - CompleteStructType struct_type_Type11 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type11, header_Type11, member_seq_Type11); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type11, type_name_Type11.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type11 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type11 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type11", type_ids_Type11); - if (return_code_Type11 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type11: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep11 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type11", type_ids_dep11); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep11) + { + ::register_Type11_type_identifier(type_ids_dep11); + } + StructMemberFlag member_flags_dep11 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep11; MemberId member_id_dep11 = 0x0000000b; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep11 = TypeObjectUtils::build_common_struct_member(member_id_dep11, member_flags_dep11, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep11 = TypeObjectUtils::build_common_struct_member(member_id_dep11, member_flags_dep11, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep11_ec {false}; + CommonStructMember common_dep11 {TypeObjectUtils::build_common_struct_member(member_id_dep11, member_flags_dep11, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep11, common_dep11_ec))}; + if (!common_dep11_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep11 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep11 member TypeIdentifier inconsistent."); return; } MemberName name_dep11 = "dep11"; @@ -11336,150 +6123,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep11); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep12; + ReturnCode_t return_code_dep12 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep12 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type12", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type12 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type12; - TypeIdentifierPair type_ids_Type12; - QualifiedTypeName type_name_Type12 = "Type12"; - eprosima::fastcdr::optional type_ann_builtin_Type12; - eprosima::fastcdr::optional ann_custom_Type12; - CompleteTypeDetail detail_Type12 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type12, ann_custom_Type12, type_name_Type12.to_string()); - CompleteStructHeader header_Type12; - header_Type12 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type12); - CompleteStructMemberSeq member_seq_Type12; - { - return_code_Type12 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type12); - - if (return_code_Type12 != 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_Type12.type_identifier1()._d() || TK_NONE == type_ids_Type12.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type12.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type12.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type12.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type12.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type12.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type12.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type12.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type12.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type12.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type12.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type12.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type12.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type12.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type12.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type12.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type12.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type12.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type12.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type12.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type12.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type12.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type12.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type12.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type12.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_Type12.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type12); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type12, member_index); - } - CompleteStructType struct_type_Type12 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type12, header_Type12, member_seq_Type12); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type12, type_name_Type12.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type12 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type12 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type12", type_ids_Type12); - if (return_code_Type12 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type12: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep12 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type12", type_ids_dep12); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep12) + { + ::register_Type12_type_identifier(type_ids_dep12); + } + StructMemberFlag member_flags_dep12 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep12; MemberId member_id_dep12 = 0x0000000c; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep12 = TypeObjectUtils::build_common_struct_member(member_id_dep12, member_flags_dep12, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep12 = TypeObjectUtils::build_common_struct_member(member_id_dep12, member_flags_dep12, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep12_ec {false}; + CommonStructMember common_dep12 {TypeObjectUtils::build_common_struct_member(member_id_dep12, member_flags_dep12, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep12, common_dep12_ec))}; + if (!common_dep12_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep12 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep12 member TypeIdentifier inconsistent."); return; } MemberName name_dep12 = "dep12"; @@ -11490,150 +6151,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep12); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep13; + ReturnCode_t return_code_dep13 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep13 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type13", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type13 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type13; - TypeIdentifierPair type_ids_Type13; - QualifiedTypeName type_name_Type13 = "Type13"; - eprosima::fastcdr::optional type_ann_builtin_Type13; - eprosima::fastcdr::optional ann_custom_Type13; - CompleteTypeDetail detail_Type13 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type13, ann_custom_Type13, type_name_Type13.to_string()); - CompleteStructHeader header_Type13; - header_Type13 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type13); - CompleteStructMemberSeq member_seq_Type13; - { - return_code_Type13 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type13); - - if (return_code_Type13 != 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_Type13.type_identifier1()._d() || TK_NONE == type_ids_Type13.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type13.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type13.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type13.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type13.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type13.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type13.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type13.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type13.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type13.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type13.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type13.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type13.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type13.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type13.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type13.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type13.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type13.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type13.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type13.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type13.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type13.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type13.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type13.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type13.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_Type13.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type13); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type13, member_index); - } - CompleteStructType struct_type_Type13 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type13, header_Type13, member_seq_Type13); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type13, type_name_Type13.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type13 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type13 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type13", type_ids_Type13); - if (return_code_Type13 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type13: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep13 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type13", type_ids_dep13); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep13) + { + ::register_Type13_type_identifier(type_ids_dep13); + } + StructMemberFlag member_flags_dep13 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep13; MemberId member_id_dep13 = 0x0000000d; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep13 = TypeObjectUtils::build_common_struct_member(member_id_dep13, member_flags_dep13, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep13 = TypeObjectUtils::build_common_struct_member(member_id_dep13, member_flags_dep13, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep13_ec {false}; + CommonStructMember common_dep13 {TypeObjectUtils::build_common_struct_member(member_id_dep13, member_flags_dep13, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep13, common_dep13_ec))}; + if (!common_dep13_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep13 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep13 member TypeIdentifier inconsistent."); return; } MemberName name_dep13 = "dep13"; @@ -11644,150 +6179,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep13); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep14; + ReturnCode_t return_code_dep14 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep14 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type14", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type14 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type14; - TypeIdentifierPair type_ids_Type14; - QualifiedTypeName type_name_Type14 = "Type14"; - eprosima::fastcdr::optional type_ann_builtin_Type14; - eprosima::fastcdr::optional ann_custom_Type14; - CompleteTypeDetail detail_Type14 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type14, ann_custom_Type14, type_name_Type14.to_string()); - CompleteStructHeader header_Type14; - header_Type14 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type14); - CompleteStructMemberSeq member_seq_Type14; - { - return_code_Type14 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type14); - - if (return_code_Type14 != 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_Type14.type_identifier1()._d() || TK_NONE == type_ids_Type14.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type14.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type14.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type14.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type14.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type14.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type14.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type14.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type14.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type14.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type14.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type14.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type14.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type14.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type14.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type14.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type14.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type14.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type14.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type14.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type14.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type14.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type14.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type14.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type14.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_Type14.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type14); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type14, member_index); - } - CompleteStructType struct_type_Type14 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type14, header_Type14, member_seq_Type14); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type14, type_name_Type14.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type14 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type14 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type14", type_ids_Type14); - if (return_code_Type14 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type14: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep14 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type14", type_ids_dep14); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep14) + { + ::register_Type14_type_identifier(type_ids_dep14); + } + StructMemberFlag member_flags_dep14 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep14; MemberId member_id_dep14 = 0x0000000e; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep14 = TypeObjectUtils::build_common_struct_member(member_id_dep14, member_flags_dep14, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep14 = TypeObjectUtils::build_common_struct_member(member_id_dep14, member_flags_dep14, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep14_ec {false}; + CommonStructMember common_dep14 {TypeObjectUtils::build_common_struct_member(member_id_dep14, member_flags_dep14, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep14, common_dep14_ec))}; + if (!common_dep14_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep14 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep14 member TypeIdentifier inconsistent."); return; } MemberName name_dep14 = "dep14"; @@ -11798,150 +6207,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep14); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep15; + ReturnCode_t return_code_dep15 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep15 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type15", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type15 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type15; - TypeIdentifierPair type_ids_Type15; - QualifiedTypeName type_name_Type15 = "Type15"; - eprosima::fastcdr::optional type_ann_builtin_Type15; - eprosima::fastcdr::optional ann_custom_Type15; - CompleteTypeDetail detail_Type15 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type15, ann_custom_Type15, type_name_Type15.to_string()); - CompleteStructHeader header_Type15; - header_Type15 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type15); - CompleteStructMemberSeq member_seq_Type15; - { - return_code_Type15 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type15); - - if (return_code_Type15 != 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_Type15.type_identifier1()._d() || TK_NONE == type_ids_Type15.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type15.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type15.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type15.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type15.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type15.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type15.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type15.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type15.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type15.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type15.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type15.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type15.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type15.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type15.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type15.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type15.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type15.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type15.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type15.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type15.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type15.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type15.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type15.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type15.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_Type15.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type15); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type15, member_index); - } - CompleteStructType struct_type_Type15 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type15, header_Type15, member_seq_Type15); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type15, type_name_Type15.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type15 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type15 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type15", type_ids_Type15); - if (return_code_Type15 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type15: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep15 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type15", type_ids_dep15); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep15) + { + ::register_Type15_type_identifier(type_ids_dep15); + } + StructMemberFlag member_flags_dep15 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep15; MemberId member_id_dep15 = 0x0000000f; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep15 = TypeObjectUtils::build_common_struct_member(member_id_dep15, member_flags_dep15, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep15 = TypeObjectUtils::build_common_struct_member(member_id_dep15, member_flags_dep15, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep15_ec {false}; + CommonStructMember common_dep15 {TypeObjectUtils::build_common_struct_member(member_id_dep15, member_flags_dep15, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep15, common_dep15_ec))}; + if (!common_dep15_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep15 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep15 member TypeIdentifier inconsistent."); return; } MemberName name_dep15 = "dep15"; @@ -11952,150 +6235,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep15); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep16; + ReturnCode_t return_code_dep16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type16", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type16; - TypeIdentifierPair type_ids_Type16; - QualifiedTypeName type_name_Type16 = "Type16"; - eprosima::fastcdr::optional type_ann_builtin_Type16; - eprosima::fastcdr::optional ann_custom_Type16; - CompleteTypeDetail detail_Type16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type16, ann_custom_Type16, type_name_Type16.to_string()); - CompleteStructHeader header_Type16; - header_Type16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type16); - CompleteStructMemberSeq member_seq_Type16; - { - return_code_Type16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type16); - - if (return_code_Type16 != 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_Type16.type_identifier1()._d() || TK_NONE == type_ids_Type16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type16.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type16.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type16.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type16.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type16.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type16.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type16.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type16.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type16.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_Type16.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type16); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type16, member_index); - } - CompleteStructType struct_type_Type16 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type16, header_Type16, member_seq_Type16); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type16, type_name_Type16.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type16 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type16", type_ids_Type16); - if (return_code_Type16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type16", type_ids_dep16); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep16) + { + ::register_Type16_type_identifier(type_ids_dep16); + } + StructMemberFlag member_flags_dep16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep16; MemberId member_id_dep16 = 0x00000010; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep16 = TypeObjectUtils::build_common_struct_member(member_id_dep16, member_flags_dep16, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep16 = TypeObjectUtils::build_common_struct_member(member_id_dep16, member_flags_dep16, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep16_ec {false}; + CommonStructMember common_dep16 {TypeObjectUtils::build_common_struct_member(member_id_dep16, member_flags_dep16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep16, common_dep16_ec))}; + if (!common_dep16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep16 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep16 member TypeIdentifier inconsistent."); return; } MemberName name_dep16 = "dep16"; @@ -12106,150 +6263,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep16); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep17; + ReturnCode_t return_code_dep17 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep17 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type17", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type17 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type17; - TypeIdentifierPair type_ids_Type17; - QualifiedTypeName type_name_Type17 = "Type17"; - eprosima::fastcdr::optional type_ann_builtin_Type17; - eprosima::fastcdr::optional ann_custom_Type17; - CompleteTypeDetail detail_Type17 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type17, ann_custom_Type17, type_name_Type17.to_string()); - CompleteStructHeader header_Type17; - header_Type17 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type17); - CompleteStructMemberSeq member_seq_Type17; - { - return_code_Type17 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type17); - - if (return_code_Type17 != 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_Type17.type_identifier1()._d() || TK_NONE == type_ids_Type17.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type17.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type17.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type17.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type17.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type17.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type17.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type17.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type17.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type17.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type17.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type17.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type17.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type17.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type17.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type17.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type17.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type17.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type17.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type17.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type17.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type17.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type17.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type17.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type17.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_Type17.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type17); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type17, member_index); - } - CompleteStructType struct_type_Type17 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type17, header_Type17, member_seq_Type17); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type17, type_name_Type17.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type17 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type17 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type17", type_ids_Type17); - if (return_code_Type17 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type17: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep17 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type17", type_ids_dep17); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep17) + { + ::register_Type17_type_identifier(type_ids_dep17); + } + StructMemberFlag member_flags_dep17 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep17; MemberId member_id_dep17 = 0x00000011; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep17 = TypeObjectUtils::build_common_struct_member(member_id_dep17, member_flags_dep17, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep17 = TypeObjectUtils::build_common_struct_member(member_id_dep17, member_flags_dep17, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep17_ec {false}; + CommonStructMember common_dep17 {TypeObjectUtils::build_common_struct_member(member_id_dep17, member_flags_dep17, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep17, common_dep17_ec))}; + if (!common_dep17_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep17 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep17 member TypeIdentifier inconsistent."); return; } MemberName name_dep17 = "dep17"; @@ -12260,150 +6291,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep17); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep18; + ReturnCode_t return_code_dep18 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep18 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type18", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type18 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type18; - TypeIdentifierPair type_ids_Type18; - QualifiedTypeName type_name_Type18 = "Type18"; - eprosima::fastcdr::optional type_ann_builtin_Type18; - eprosima::fastcdr::optional ann_custom_Type18; - CompleteTypeDetail detail_Type18 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type18, ann_custom_Type18, type_name_Type18.to_string()); - CompleteStructHeader header_Type18; - header_Type18 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type18); - CompleteStructMemberSeq member_seq_Type18; - { - return_code_Type18 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type18); - - if (return_code_Type18 != 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_Type18.type_identifier1()._d() || TK_NONE == type_ids_Type18.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type18.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type18.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type18.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type18.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type18.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type18.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type18.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type18.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type18.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type18.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type18.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type18.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type18.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type18.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type18.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type18.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type18.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type18.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type18.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type18.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type18.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type18.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type18.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type18.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_Type18.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type18); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type18, member_index); - } - CompleteStructType struct_type_Type18 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type18, header_Type18, member_seq_Type18); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type18, type_name_Type18.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type18 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type18 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type18", type_ids_Type18); - if (return_code_Type18 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type18: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep18 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type18", type_ids_dep18); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep18) + { + ::register_Type18_type_identifier(type_ids_dep18); + } + StructMemberFlag member_flags_dep18 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep18; MemberId member_id_dep18 = 0x00000012; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep18 = TypeObjectUtils::build_common_struct_member(member_id_dep18, member_flags_dep18, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep18 = TypeObjectUtils::build_common_struct_member(member_id_dep18, member_flags_dep18, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep18_ec {false}; + CommonStructMember common_dep18 {TypeObjectUtils::build_common_struct_member(member_id_dep18, member_flags_dep18, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep18, common_dep18_ec))}; + if (!common_dep18_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep18 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep18 member TypeIdentifier inconsistent."); return; } MemberName name_dep18 = "dep18"; @@ -12414,150 +6319,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep18); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep19; + ReturnCode_t return_code_dep19 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep19 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type19", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type19 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type19; - TypeIdentifierPair type_ids_Type19; - QualifiedTypeName type_name_Type19 = "Type19"; - eprosima::fastcdr::optional type_ann_builtin_Type19; - eprosima::fastcdr::optional ann_custom_Type19; - CompleteTypeDetail detail_Type19 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type19, ann_custom_Type19, type_name_Type19.to_string()); - CompleteStructHeader header_Type19; - header_Type19 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type19); - CompleteStructMemberSeq member_seq_Type19; - { - return_code_Type19 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type19); - - if (return_code_Type19 != 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_Type19.type_identifier1()._d() || TK_NONE == type_ids_Type19.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type19.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type19.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type19.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type19.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type19.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type19.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type19.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type19.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type19.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type19.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type19.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type19.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type19.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type19.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type19.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type19.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type19.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type19.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type19.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type19.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type19.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type19.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type19.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type19.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_Type19.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type19); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type19, member_index); - } - CompleteStructType struct_type_Type19 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type19, header_Type19, member_seq_Type19); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type19, type_name_Type19.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type19 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type19 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type19", type_ids_Type19); - if (return_code_Type19 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type19: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep19 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type19", type_ids_dep19); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep19) + { + ::register_Type19_type_identifier(type_ids_dep19); + } + StructMemberFlag member_flags_dep19 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep19; MemberId member_id_dep19 = 0x00000013; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep19 = TypeObjectUtils::build_common_struct_member(member_id_dep19, member_flags_dep19, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep19 = TypeObjectUtils::build_common_struct_member(member_id_dep19, member_flags_dep19, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep19_ec {false}; + CommonStructMember common_dep19 {TypeObjectUtils::build_common_struct_member(member_id_dep19, member_flags_dep19, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep19, common_dep19_ec))}; + if (!common_dep19_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep19 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep19 member TypeIdentifier inconsistent."); return; } MemberName name_dep19 = "dep19"; @@ -12568,150 +6347,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep19); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep20; + ReturnCode_t return_code_dep20 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep20 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type20", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type20 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type20; - TypeIdentifierPair type_ids_Type20; - QualifiedTypeName type_name_Type20 = "Type20"; - eprosima::fastcdr::optional type_ann_builtin_Type20; - eprosima::fastcdr::optional ann_custom_Type20; - CompleteTypeDetail detail_Type20 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type20, ann_custom_Type20, type_name_Type20.to_string()); - CompleteStructHeader header_Type20; - header_Type20 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type20); - CompleteStructMemberSeq member_seq_Type20; - { - return_code_Type20 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type20); - - if (return_code_Type20 != 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_Type20.type_identifier1()._d() || TK_NONE == type_ids_Type20.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type20.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type20.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type20.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type20.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type20.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type20.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type20.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type20.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type20.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type20.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type20.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type20.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type20.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type20.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type20.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type20.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type20.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type20.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type20.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type20.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type20.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type20.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type20.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type20.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_Type20.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type20); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type20, member_index); - } - CompleteStructType struct_type_Type20 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type20, header_Type20, member_seq_Type20); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type20, type_name_Type20.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type20 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type20 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type20", type_ids_Type20); - if (return_code_Type20 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type20: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep20 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type20", type_ids_dep20); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep20) + { + ::register_Type20_type_identifier(type_ids_dep20); + } + StructMemberFlag member_flags_dep20 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep20; MemberId member_id_dep20 = 0x00000014; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep20 = TypeObjectUtils::build_common_struct_member(member_id_dep20, member_flags_dep20, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep20 = TypeObjectUtils::build_common_struct_member(member_id_dep20, member_flags_dep20, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep20_ec {false}; + CommonStructMember common_dep20 {TypeObjectUtils::build_common_struct_member(member_id_dep20, member_flags_dep20, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep20, common_dep20_ec))}; + if (!common_dep20_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep20 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep20 member TypeIdentifier inconsistent."); return; } MemberName name_dep20 = "dep20"; @@ -12722,150 +6375,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep20); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep21; + ReturnCode_t return_code_dep21 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep21 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type21", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type21 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type21; - TypeIdentifierPair type_ids_Type21; - QualifiedTypeName type_name_Type21 = "Type21"; - eprosima::fastcdr::optional type_ann_builtin_Type21; - eprosima::fastcdr::optional ann_custom_Type21; - CompleteTypeDetail detail_Type21 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type21, ann_custom_Type21, type_name_Type21.to_string()); - CompleteStructHeader header_Type21; - header_Type21 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type21); - CompleteStructMemberSeq member_seq_Type21; - { - return_code_Type21 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type21); - - if (return_code_Type21 != 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_Type21.type_identifier1()._d() || TK_NONE == type_ids_Type21.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type21.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type21.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type21.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type21.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type21.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type21.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type21.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type21.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type21.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type21.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type21.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type21.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type21.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type21.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type21.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type21.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type21.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type21.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type21.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type21.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type21.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type21.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type21.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type21.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_Type21.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type21); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type21, member_index); - } - CompleteStructType struct_type_Type21 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type21, header_Type21, member_seq_Type21); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type21, type_name_Type21.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type21 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type21 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type21", type_ids_Type21); - if (return_code_Type21 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type21: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep21 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type21", type_ids_dep21); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep21) + { + ::register_Type21_type_identifier(type_ids_dep21); + } + StructMemberFlag member_flags_dep21 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep21; MemberId member_id_dep21 = 0x00000015; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep21 = TypeObjectUtils::build_common_struct_member(member_id_dep21, member_flags_dep21, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep21 = TypeObjectUtils::build_common_struct_member(member_id_dep21, member_flags_dep21, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep21_ec {false}; + CommonStructMember common_dep21 {TypeObjectUtils::build_common_struct_member(member_id_dep21, member_flags_dep21, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep21, common_dep21_ec))}; + if (!common_dep21_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep21 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep21 member TypeIdentifier inconsistent."); return; } MemberName name_dep21 = "dep21"; @@ -12876,150 +6403,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep21); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep22; + ReturnCode_t return_code_dep22 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep22 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type22", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type22 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type22; - TypeIdentifierPair type_ids_Type22; - QualifiedTypeName type_name_Type22 = "Type22"; - eprosima::fastcdr::optional type_ann_builtin_Type22; - eprosima::fastcdr::optional ann_custom_Type22; - CompleteTypeDetail detail_Type22 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type22, ann_custom_Type22, type_name_Type22.to_string()); - CompleteStructHeader header_Type22; - header_Type22 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type22); - CompleteStructMemberSeq member_seq_Type22; - { - return_code_Type22 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type22); - - if (return_code_Type22 != 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_Type22.type_identifier1()._d() || TK_NONE == type_ids_Type22.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type22.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type22.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type22.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type22.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type22.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type22.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type22.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type22.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type22.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type22.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type22.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type22.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type22.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type22.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type22.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type22.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type22.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type22.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type22.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type22.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type22.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type22.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type22.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type22.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_Type22.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type22); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type22, member_index); - } - CompleteStructType struct_type_Type22 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type22, header_Type22, member_seq_Type22); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type22, type_name_Type22.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type22 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type22 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type22", type_ids_Type22); - if (return_code_Type22 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type22: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep22 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type22", type_ids_dep22); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep22) + { + ::register_Type22_type_identifier(type_ids_dep22); + } + StructMemberFlag member_flags_dep22 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep22; MemberId member_id_dep22 = 0x00000016; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep22 = TypeObjectUtils::build_common_struct_member(member_id_dep22, member_flags_dep22, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep22 = TypeObjectUtils::build_common_struct_member(member_id_dep22, member_flags_dep22, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep22_ec {false}; + CommonStructMember common_dep22 {TypeObjectUtils::build_common_struct_member(member_id_dep22, member_flags_dep22, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep22, common_dep22_ec))}; + if (!common_dep22_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep22 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep22 member TypeIdentifier inconsistent."); return; } MemberName name_dep22 = "dep22"; @@ -13030,150 +6431,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep22); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep23; + ReturnCode_t return_code_dep23 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep23 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type23", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type23 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type23; - TypeIdentifierPair type_ids_Type23; - QualifiedTypeName type_name_Type23 = "Type23"; - eprosima::fastcdr::optional type_ann_builtin_Type23; - eprosima::fastcdr::optional ann_custom_Type23; - CompleteTypeDetail detail_Type23 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type23, ann_custom_Type23, type_name_Type23.to_string()); - CompleteStructHeader header_Type23; - header_Type23 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type23); - CompleteStructMemberSeq member_seq_Type23; - { - return_code_Type23 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type23); - - if (return_code_Type23 != 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_Type23.type_identifier1()._d() || TK_NONE == type_ids_Type23.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type23.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type23.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type23.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type23.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type23.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type23.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type23.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type23.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type23.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type23.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type23.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type23.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type23.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type23.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type23.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type23.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type23.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type23.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type23.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type23.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type23.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type23.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type23.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type23.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_Type23.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type23); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type23, member_index); - } - CompleteStructType struct_type_Type23 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type23, header_Type23, member_seq_Type23); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type23, type_name_Type23.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type23 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type23 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type23", type_ids_Type23); - if (return_code_Type23 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type23: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep23 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type23", type_ids_dep23); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep23) + { + ::register_Type23_type_identifier(type_ids_dep23); + } + StructMemberFlag member_flags_dep23 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep23; MemberId member_id_dep23 = 0x00000017; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep23 = TypeObjectUtils::build_common_struct_member(member_id_dep23, member_flags_dep23, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep23 = TypeObjectUtils::build_common_struct_member(member_id_dep23, member_flags_dep23, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep23_ec {false}; + CommonStructMember common_dep23 {TypeObjectUtils::build_common_struct_member(member_id_dep23, member_flags_dep23, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep23, common_dep23_ec))}; + if (!common_dep23_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep23 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep23 member TypeIdentifier inconsistent."); return; } MemberName name_dep23 = "dep23"; @@ -13184,150 +6459,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep23); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep24; + ReturnCode_t return_code_dep24 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep24 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type24", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type24 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type24; - TypeIdentifierPair type_ids_Type24; - QualifiedTypeName type_name_Type24 = "Type24"; - eprosima::fastcdr::optional type_ann_builtin_Type24; - eprosima::fastcdr::optional ann_custom_Type24; - CompleteTypeDetail detail_Type24 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type24, ann_custom_Type24, type_name_Type24.to_string()); - CompleteStructHeader header_Type24; - header_Type24 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type24); - CompleteStructMemberSeq member_seq_Type24; - { - return_code_Type24 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type24); - - if (return_code_Type24 != 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_Type24.type_identifier1()._d() || TK_NONE == type_ids_Type24.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type24.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type24.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type24.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type24.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type24.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type24.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type24.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type24.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type24.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type24.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type24.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type24.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type24.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type24.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type24.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type24.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type24.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type24.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type24.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type24.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type24.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type24.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type24.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type24.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_Type24.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type24); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type24, member_index); - } - CompleteStructType struct_type_Type24 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type24, header_Type24, member_seq_Type24); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type24, type_name_Type24.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type24 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type24 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type24", type_ids_Type24); - if (return_code_Type24 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type24: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep24 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type24", type_ids_dep24); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep24) + { + ::register_Type24_type_identifier(type_ids_dep24); + } + StructMemberFlag member_flags_dep24 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep24; MemberId member_id_dep24 = 0x00000018; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep24 = TypeObjectUtils::build_common_struct_member(member_id_dep24, member_flags_dep24, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep24 = TypeObjectUtils::build_common_struct_member(member_id_dep24, member_flags_dep24, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep24_ec {false}; + CommonStructMember common_dep24 {TypeObjectUtils::build_common_struct_member(member_id_dep24, member_flags_dep24, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep24, common_dep24_ec))}; + if (!common_dep24_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep24 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep24 member TypeIdentifier inconsistent."); return; } MemberName name_dep24 = "dep24"; @@ -13338,150 +6487,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep24); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep25; + ReturnCode_t return_code_dep25 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep25 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type25", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type25 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type25; - TypeIdentifierPair type_ids_Type25; - QualifiedTypeName type_name_Type25 = "Type25"; - eprosima::fastcdr::optional type_ann_builtin_Type25; - eprosima::fastcdr::optional ann_custom_Type25; - CompleteTypeDetail detail_Type25 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type25, ann_custom_Type25, type_name_Type25.to_string()); - CompleteStructHeader header_Type25; - header_Type25 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type25); - CompleteStructMemberSeq member_seq_Type25; - { - return_code_Type25 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type25); - - if (return_code_Type25 != 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_Type25.type_identifier1()._d() || TK_NONE == type_ids_Type25.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type25.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type25.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type25.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type25.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type25.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type25.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type25.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type25.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type25.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type25.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type25.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type25.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type25.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type25.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type25.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type25.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type25.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type25.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type25.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type25.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type25.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type25.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type25.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type25.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_Type25.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type25); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type25, member_index); - } - CompleteStructType struct_type_Type25 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type25, header_Type25, member_seq_Type25); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type25, type_name_Type25.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type25 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type25 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type25", type_ids_Type25); - if (return_code_Type25 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type25: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep25 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type25", type_ids_dep25); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep25) + { + ::register_Type25_type_identifier(type_ids_dep25); + } + StructMemberFlag member_flags_dep25 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep25; MemberId member_id_dep25 = 0x00000019; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep25 = TypeObjectUtils::build_common_struct_member(member_id_dep25, member_flags_dep25, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep25 = TypeObjectUtils::build_common_struct_member(member_id_dep25, member_flags_dep25, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep25_ec {false}; + CommonStructMember common_dep25 {TypeObjectUtils::build_common_struct_member(member_id_dep25, member_flags_dep25, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep25, common_dep25_ec))}; + if (!common_dep25_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep25 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep25 member TypeIdentifier inconsistent."); return; } MemberName name_dep25 = "dep25"; @@ -13492,150 +6515,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep25); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep26; + ReturnCode_t return_code_dep26 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep26 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type26", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type26 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type26; - TypeIdentifierPair type_ids_Type26; - QualifiedTypeName type_name_Type26 = "Type26"; - eprosima::fastcdr::optional type_ann_builtin_Type26; - eprosima::fastcdr::optional ann_custom_Type26; - CompleteTypeDetail detail_Type26 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type26, ann_custom_Type26, type_name_Type26.to_string()); - CompleteStructHeader header_Type26; - header_Type26 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type26); - CompleteStructMemberSeq member_seq_Type26; - { - return_code_Type26 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type26); - - if (return_code_Type26 != 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_Type26.type_identifier1()._d() || TK_NONE == type_ids_Type26.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type26.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type26.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type26.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type26.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type26.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type26.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type26.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type26.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type26.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type26.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type26.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type26.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type26.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type26.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type26.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type26.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type26.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type26.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type26.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type26.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type26.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type26.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type26.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type26.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_Type26.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type26); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type26, member_index); - } - CompleteStructType struct_type_Type26 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type26, header_Type26, member_seq_Type26); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type26, type_name_Type26.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type26 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type26 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type26", type_ids_Type26); - if (return_code_Type26 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type26: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep26 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type26", type_ids_dep26); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep26) + { + ::register_Type26_type_identifier(type_ids_dep26); + } + StructMemberFlag member_flags_dep26 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep26; MemberId member_id_dep26 = 0x0000001a; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep26 = TypeObjectUtils::build_common_struct_member(member_id_dep26, member_flags_dep26, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep26 = TypeObjectUtils::build_common_struct_member(member_id_dep26, member_flags_dep26, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep26_ec {false}; + CommonStructMember common_dep26 {TypeObjectUtils::build_common_struct_member(member_id_dep26, member_flags_dep26, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep26, common_dep26_ec))}; + if (!common_dep26_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep26 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep26 member TypeIdentifier inconsistent."); return; } MemberName name_dep26 = "dep26"; @@ -13646,150 +6543,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep26); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep27; + ReturnCode_t return_code_dep27 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep27 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type27", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type27 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type27; - TypeIdentifierPair type_ids_Type27; - QualifiedTypeName type_name_Type27 = "Type27"; - eprosima::fastcdr::optional type_ann_builtin_Type27; - eprosima::fastcdr::optional ann_custom_Type27; - CompleteTypeDetail detail_Type27 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type27, ann_custom_Type27, type_name_Type27.to_string()); - CompleteStructHeader header_Type27; - header_Type27 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type27); - CompleteStructMemberSeq member_seq_Type27; - { - return_code_Type27 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type27); - - if (return_code_Type27 != 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_Type27.type_identifier1()._d() || TK_NONE == type_ids_Type27.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type27.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type27.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type27.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type27.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type27.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type27.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type27.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type27.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type27.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type27.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type27.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type27.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type27.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type27.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type27.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type27.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type27.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type27.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type27.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type27.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type27.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type27.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type27.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type27.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_Type27.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type27); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type27, member_index); - } - CompleteStructType struct_type_Type27 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type27, header_Type27, member_seq_Type27); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type27, type_name_Type27.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type27 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type27 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type27", type_ids_Type27); - if (return_code_Type27 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type27: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep27 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type27", type_ids_dep27); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep27) + { + ::register_Type27_type_identifier(type_ids_dep27); + } + StructMemberFlag member_flags_dep27 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep27; MemberId member_id_dep27 = 0x0000001b; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep27 = TypeObjectUtils::build_common_struct_member(member_id_dep27, member_flags_dep27, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep27 = TypeObjectUtils::build_common_struct_member(member_id_dep27, member_flags_dep27, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep27_ec {false}; + CommonStructMember common_dep27 {TypeObjectUtils::build_common_struct_member(member_id_dep27, member_flags_dep27, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep27, common_dep27_ec))}; + if (!common_dep27_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep27 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep27 member TypeIdentifier inconsistent."); return; } MemberName name_dep27 = "dep27"; @@ -13800,150 +6571,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep27); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep28; + ReturnCode_t return_code_dep28 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep28 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type28", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type28 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type28; - TypeIdentifierPair type_ids_Type28; - QualifiedTypeName type_name_Type28 = "Type28"; - eprosima::fastcdr::optional type_ann_builtin_Type28; - eprosima::fastcdr::optional ann_custom_Type28; - CompleteTypeDetail detail_Type28 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type28, ann_custom_Type28, type_name_Type28.to_string()); - CompleteStructHeader header_Type28; - header_Type28 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type28); - CompleteStructMemberSeq member_seq_Type28; - { - return_code_Type28 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type28); - - if (return_code_Type28 != 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_Type28.type_identifier1()._d() || TK_NONE == type_ids_Type28.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type28.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type28.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type28.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type28.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type28.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type28.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type28.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type28.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type28.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type28.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type28.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type28.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type28.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type28.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type28.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type28.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type28.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type28.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type28.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type28.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type28.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type28.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type28.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type28.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_Type28.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type28); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type28, member_index); - } - CompleteStructType struct_type_Type28 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type28, header_Type28, member_seq_Type28); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type28, type_name_Type28.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type28 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type28 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type28", type_ids_Type28); - if (return_code_Type28 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type28: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep28 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type28", type_ids_dep28); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep28) + { + ::register_Type28_type_identifier(type_ids_dep28); + } + StructMemberFlag member_flags_dep28 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep28; MemberId member_id_dep28 = 0x0000001c; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep28 = TypeObjectUtils::build_common_struct_member(member_id_dep28, member_flags_dep28, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep28 = TypeObjectUtils::build_common_struct_member(member_id_dep28, member_flags_dep28, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep28_ec {false}; + CommonStructMember common_dep28 {TypeObjectUtils::build_common_struct_member(member_id_dep28, member_flags_dep28, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep28, common_dep28_ec))}; + if (!common_dep28_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep28 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep28 member TypeIdentifier inconsistent."); return; } MemberName name_dep28 = "dep28"; @@ -13954,150 +6599,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep28); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep29; + ReturnCode_t return_code_dep29 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep29 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type29", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type29 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type29; - TypeIdentifierPair type_ids_Type29; - QualifiedTypeName type_name_Type29 = "Type29"; - eprosima::fastcdr::optional type_ann_builtin_Type29; - eprosima::fastcdr::optional ann_custom_Type29; - CompleteTypeDetail detail_Type29 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type29, ann_custom_Type29, type_name_Type29.to_string()); - CompleteStructHeader header_Type29; - header_Type29 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type29); - CompleteStructMemberSeq member_seq_Type29; - { - return_code_Type29 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type29); - - if (return_code_Type29 != 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_Type29.type_identifier1()._d() || TK_NONE == type_ids_Type29.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type29.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type29.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type29.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type29.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type29.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type29.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type29.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type29.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type29.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type29.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type29.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type29.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type29.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type29.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type29.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type29.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type29.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type29.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type29.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type29.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type29.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type29.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type29.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type29.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_Type29.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type29); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type29, member_index); - } - CompleteStructType struct_type_Type29 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type29, header_Type29, member_seq_Type29); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type29, type_name_Type29.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type29 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type29 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type29", type_ids_Type29); - if (return_code_Type29 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type29: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep29 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type29", type_ids_dep29); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep29) + { + ::register_Type29_type_identifier(type_ids_dep29); + } + StructMemberFlag member_flags_dep29 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep29; MemberId member_id_dep29 = 0x0000001d; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep29 = TypeObjectUtils::build_common_struct_member(member_id_dep29, member_flags_dep29, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep29 = TypeObjectUtils::build_common_struct_member(member_id_dep29, member_flags_dep29, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep29_ec {false}; + CommonStructMember common_dep29 {TypeObjectUtils::build_common_struct_member(member_id_dep29, member_flags_dep29, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep29, common_dep29_ec))}; + if (!common_dep29_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep29 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep29 member TypeIdentifier inconsistent."); return; } MemberName name_dep29 = "dep29"; @@ -14108,150 +6627,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep29); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep30; + ReturnCode_t return_code_dep30 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep30 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type30", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type30 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type30; - TypeIdentifierPair type_ids_Type30; - QualifiedTypeName type_name_Type30 = "Type30"; - eprosima::fastcdr::optional type_ann_builtin_Type30; - eprosima::fastcdr::optional ann_custom_Type30; - CompleteTypeDetail detail_Type30 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type30, ann_custom_Type30, type_name_Type30.to_string()); - CompleteStructHeader header_Type30; - header_Type30 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type30); - CompleteStructMemberSeq member_seq_Type30; - { - return_code_Type30 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type30); - - if (return_code_Type30 != 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_Type30.type_identifier1()._d() || TK_NONE == type_ids_Type30.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type30.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type30.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type30.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type30.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type30.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type30.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type30.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type30.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type30.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type30.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type30.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type30.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type30.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type30.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type30.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type30.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type30.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type30.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type30.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type30.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type30.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type30.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type30.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type30.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_Type30.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type30); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type30, member_index); - } - CompleteStructType struct_type_Type30 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type30, header_Type30, member_seq_Type30); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type30, type_name_Type30.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type30 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type30 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type30", type_ids_Type30); - if (return_code_Type30 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type30: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep30 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type30", type_ids_dep30); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep30) + { + ::register_Type30_type_identifier(type_ids_dep30); + } + StructMemberFlag member_flags_dep30 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep30; MemberId member_id_dep30 = 0x0000001e; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep30 = TypeObjectUtils::build_common_struct_member(member_id_dep30, member_flags_dep30, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep30 = TypeObjectUtils::build_common_struct_member(member_id_dep30, member_flags_dep30, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep30_ec {false}; + CommonStructMember common_dep30 {TypeObjectUtils::build_common_struct_member(member_id_dep30, member_flags_dep30, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep30, common_dep30_ec))}; + if (!common_dep30_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep30 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep30 member TypeIdentifier inconsistent."); return; } MemberName name_dep30 = "dep30"; @@ -14262,150 +6655,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep30); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep31; + ReturnCode_t return_code_dep31 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep31 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type31", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type31 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type31; - TypeIdentifierPair type_ids_Type31; - QualifiedTypeName type_name_Type31 = "Type31"; - eprosima::fastcdr::optional type_ann_builtin_Type31; - eprosima::fastcdr::optional ann_custom_Type31; - CompleteTypeDetail detail_Type31 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type31, ann_custom_Type31, type_name_Type31.to_string()); - CompleteStructHeader header_Type31; - header_Type31 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type31); - CompleteStructMemberSeq member_seq_Type31; - { - return_code_Type31 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type31); - - if (return_code_Type31 != 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_Type31.type_identifier1()._d() || TK_NONE == type_ids_Type31.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type31.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type31.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type31.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type31.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type31.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type31.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type31.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type31.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type31.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type31.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type31.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type31.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type31.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type31.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type31.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type31.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type31.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type31.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type31.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type31.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type31.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type31.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type31.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type31.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_Type31.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type31); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type31, member_index); - } - CompleteStructType struct_type_Type31 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type31, header_Type31, member_seq_Type31); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type31, type_name_Type31.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type31 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type31 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type31", type_ids_Type31); - if (return_code_Type31 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type31: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep31 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type31", type_ids_dep31); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep31) + { + ::register_Type31_type_identifier(type_ids_dep31); + } + StructMemberFlag member_flags_dep31 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep31; MemberId member_id_dep31 = 0x0000001f; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep31 = TypeObjectUtils::build_common_struct_member(member_id_dep31, member_flags_dep31, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep31 = TypeObjectUtils::build_common_struct_member(member_id_dep31, member_flags_dep31, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep31_ec {false}; + CommonStructMember common_dep31 {TypeObjectUtils::build_common_struct_member(member_id_dep31, member_flags_dep31, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep31, common_dep31_ec))}; + if (!common_dep31_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep31 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep31 member TypeIdentifier inconsistent."); return; } MemberName name_dep31 = "dep31"; @@ -14416,150 +6683,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep31); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep32; + ReturnCode_t return_code_dep32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep32 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type32", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type32; - TypeIdentifierPair type_ids_Type32; - QualifiedTypeName type_name_Type32 = "Type32"; - eprosima::fastcdr::optional type_ann_builtin_Type32; - eprosima::fastcdr::optional ann_custom_Type32; - CompleteTypeDetail detail_Type32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type32, ann_custom_Type32, type_name_Type32.to_string()); - CompleteStructHeader header_Type32; - header_Type32 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type32); - CompleteStructMemberSeq member_seq_Type32; - { - return_code_Type32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type32); - - if (return_code_Type32 != 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_Type32.type_identifier1()._d() || TK_NONE == type_ids_Type32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type32.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type32.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type32.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type32.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type32.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type32.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type32.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type32.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type32.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type32.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type32.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type32.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type32.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type32.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type32.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type32.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type32.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type32.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type32.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_Type32.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type32); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type32, member_index); - } - CompleteStructType struct_type_Type32 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type32, header_Type32, member_seq_Type32); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type32, type_name_Type32.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type32 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type32", type_ids_Type32); - if (return_code_Type32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type32: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type32", type_ids_dep32); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep32) + { + ::register_Type32_type_identifier(type_ids_dep32); + } + StructMemberFlag member_flags_dep32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep32; MemberId member_id_dep32 = 0x00000020; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep32 = TypeObjectUtils::build_common_struct_member(member_id_dep32, member_flags_dep32, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep32 = TypeObjectUtils::build_common_struct_member(member_id_dep32, member_flags_dep32, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep32_ec {false}; + CommonStructMember common_dep32 {TypeObjectUtils::build_common_struct_member(member_id_dep32, member_flags_dep32, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep32, common_dep32_ec))}; + if (!common_dep32_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep32 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep32 member TypeIdentifier inconsistent."); return; } MemberName name_dep32 = "dep32"; @@ -14570,150 +6711,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep32); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep33; + ReturnCode_t return_code_dep33 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep33 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type33", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type33 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type33; - TypeIdentifierPair type_ids_Type33; - QualifiedTypeName type_name_Type33 = "Type33"; - eprosima::fastcdr::optional type_ann_builtin_Type33; - eprosima::fastcdr::optional ann_custom_Type33; - CompleteTypeDetail detail_Type33 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type33, ann_custom_Type33, type_name_Type33.to_string()); - CompleteStructHeader header_Type33; - header_Type33 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type33); - CompleteStructMemberSeq member_seq_Type33; - { - return_code_Type33 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type33); - - if (return_code_Type33 != 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_Type33.type_identifier1()._d() || TK_NONE == type_ids_Type33.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type33.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type33.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type33.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type33.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type33.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type33.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type33.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type33.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type33.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type33.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type33.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type33.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type33.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type33.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type33.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type33.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type33.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type33.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type33.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type33.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type33.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type33.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type33.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type33.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_Type33.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type33); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type33, member_index); - } - CompleteStructType struct_type_Type33 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type33, header_Type33, member_seq_Type33); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type33, type_name_Type33.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type33 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type33 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type33", type_ids_Type33); - if (return_code_Type33 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type33: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep33 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type33", type_ids_dep33); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep33) + { + ::register_Type33_type_identifier(type_ids_dep33); + } + StructMemberFlag member_flags_dep33 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep33; MemberId member_id_dep33 = 0x00000021; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep33 = TypeObjectUtils::build_common_struct_member(member_id_dep33, member_flags_dep33, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep33 = TypeObjectUtils::build_common_struct_member(member_id_dep33, member_flags_dep33, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep33_ec {false}; + CommonStructMember common_dep33 {TypeObjectUtils::build_common_struct_member(member_id_dep33, member_flags_dep33, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep33, common_dep33_ec))}; + if (!common_dep33_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep33 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep33 member TypeIdentifier inconsistent."); return; } MemberName name_dep33 = "dep33"; @@ -14724,150 +6739,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep33); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep34; + ReturnCode_t return_code_dep34 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep34 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type34", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type34 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type34; - TypeIdentifierPair type_ids_Type34; - QualifiedTypeName type_name_Type34 = "Type34"; - eprosima::fastcdr::optional type_ann_builtin_Type34; - eprosima::fastcdr::optional ann_custom_Type34; - CompleteTypeDetail detail_Type34 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type34, ann_custom_Type34, type_name_Type34.to_string()); - CompleteStructHeader header_Type34; - header_Type34 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type34); - CompleteStructMemberSeq member_seq_Type34; - { - return_code_Type34 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type34); - - if (return_code_Type34 != 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_Type34.type_identifier1()._d() || TK_NONE == type_ids_Type34.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type34.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type34.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type34.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type34.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type34.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type34.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type34.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type34.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type34.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type34.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type34.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type34.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type34.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type34.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type34.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type34.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type34.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type34.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type34.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type34.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type34.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type34.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type34.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type34.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_Type34.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type34); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type34, member_index); - } - CompleteStructType struct_type_Type34 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type34, header_Type34, member_seq_Type34); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type34, type_name_Type34.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type34 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type34 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type34", type_ids_Type34); - if (return_code_Type34 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type34: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep34 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type34", type_ids_dep34); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep34) + { + ::register_Type34_type_identifier(type_ids_dep34); + } + StructMemberFlag member_flags_dep34 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep34; MemberId member_id_dep34 = 0x00000022; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep34 = TypeObjectUtils::build_common_struct_member(member_id_dep34, member_flags_dep34, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep34 = TypeObjectUtils::build_common_struct_member(member_id_dep34, member_flags_dep34, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep34_ec {false}; + CommonStructMember common_dep34 {TypeObjectUtils::build_common_struct_member(member_id_dep34, member_flags_dep34, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep34, common_dep34_ec))}; + if (!common_dep34_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep34 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep34 member TypeIdentifier inconsistent."); return; } MemberName name_dep34 = "dep34"; @@ -14878,150 +6767,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep34); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep35; + ReturnCode_t return_code_dep35 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep35 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type35", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type35 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type35; - TypeIdentifierPair type_ids_Type35; - QualifiedTypeName type_name_Type35 = "Type35"; - eprosima::fastcdr::optional type_ann_builtin_Type35; - eprosima::fastcdr::optional ann_custom_Type35; - CompleteTypeDetail detail_Type35 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type35, ann_custom_Type35, type_name_Type35.to_string()); - CompleteStructHeader header_Type35; - header_Type35 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type35); - CompleteStructMemberSeq member_seq_Type35; - { - return_code_Type35 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type35); - - if (return_code_Type35 != 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_Type35.type_identifier1()._d() || TK_NONE == type_ids_Type35.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type35.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type35.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type35.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type35.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type35.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type35.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type35.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type35.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type35.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type35.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type35.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type35.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type35.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type35.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type35.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type35.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type35.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type35.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type35.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type35.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type35.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type35.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type35.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type35.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_Type35.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type35); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type35, member_index); - } - CompleteStructType struct_type_Type35 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type35, header_Type35, member_seq_Type35); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type35, type_name_Type35.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type35 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type35 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type35", type_ids_Type35); - if (return_code_Type35 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type35: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep35 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type35", type_ids_dep35); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep35) + { + ::register_Type35_type_identifier(type_ids_dep35); + } + StructMemberFlag member_flags_dep35 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep35; MemberId member_id_dep35 = 0x00000023; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep35 = TypeObjectUtils::build_common_struct_member(member_id_dep35, member_flags_dep35, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep35 = TypeObjectUtils::build_common_struct_member(member_id_dep35, member_flags_dep35, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep35_ec {false}; + CommonStructMember common_dep35 {TypeObjectUtils::build_common_struct_member(member_id_dep35, member_flags_dep35, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep35, common_dep35_ec))}; + if (!common_dep35_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep35 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep35 member TypeIdentifier inconsistent."); return; } MemberName name_dep35 = "dep35"; @@ -15032,150 +6795,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep35); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep36; + ReturnCode_t return_code_dep36 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep36 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type36", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type36 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type36; - TypeIdentifierPair type_ids_Type36; - QualifiedTypeName type_name_Type36 = "Type36"; - eprosima::fastcdr::optional type_ann_builtin_Type36; - eprosima::fastcdr::optional ann_custom_Type36; - CompleteTypeDetail detail_Type36 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type36, ann_custom_Type36, type_name_Type36.to_string()); - CompleteStructHeader header_Type36; - header_Type36 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type36); - CompleteStructMemberSeq member_seq_Type36; - { - return_code_Type36 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type36); - - if (return_code_Type36 != 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_Type36.type_identifier1()._d() || TK_NONE == type_ids_Type36.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type36.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type36.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type36.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type36.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type36.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type36.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type36.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type36.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type36.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type36.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type36.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type36.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type36.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type36.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type36.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type36.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type36.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type36.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type36.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type36.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type36.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type36.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type36.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type36.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_Type36.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type36); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type36, member_index); - } - CompleteStructType struct_type_Type36 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type36, header_Type36, member_seq_Type36); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type36, type_name_Type36.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type36 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type36 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type36", type_ids_Type36); - if (return_code_Type36 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type36: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep36 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type36", type_ids_dep36); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep36) + { + ::register_Type36_type_identifier(type_ids_dep36); + } + StructMemberFlag member_flags_dep36 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep36; MemberId member_id_dep36 = 0x00000024; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep36 = TypeObjectUtils::build_common_struct_member(member_id_dep36, member_flags_dep36, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep36 = TypeObjectUtils::build_common_struct_member(member_id_dep36, member_flags_dep36, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep36_ec {false}; + CommonStructMember common_dep36 {TypeObjectUtils::build_common_struct_member(member_id_dep36, member_flags_dep36, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep36, common_dep36_ec))}; + if (!common_dep36_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep36 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep36 member TypeIdentifier inconsistent."); return; } MemberName name_dep36 = "dep36"; @@ -15186,150 +6823,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep36); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep37; + ReturnCode_t return_code_dep37 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep37 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type37", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type37 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type37; - TypeIdentifierPair type_ids_Type37; - QualifiedTypeName type_name_Type37 = "Type37"; - eprosima::fastcdr::optional type_ann_builtin_Type37; - eprosima::fastcdr::optional ann_custom_Type37; - CompleteTypeDetail detail_Type37 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type37, ann_custom_Type37, type_name_Type37.to_string()); - CompleteStructHeader header_Type37; - header_Type37 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type37); - CompleteStructMemberSeq member_seq_Type37; - { - return_code_Type37 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type37); - - if (return_code_Type37 != 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_Type37.type_identifier1()._d() || TK_NONE == type_ids_Type37.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type37.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type37.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type37.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type37.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type37.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type37.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type37.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type37.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type37.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type37.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type37.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type37.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type37.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type37.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type37.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type37.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type37.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type37.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type37.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type37.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type37.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type37.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type37.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type37.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_Type37.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type37); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type37, member_index); - } - CompleteStructType struct_type_Type37 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type37, header_Type37, member_seq_Type37); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type37, type_name_Type37.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type37 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type37 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type37", type_ids_Type37); - if (return_code_Type37 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type37: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep37 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type37", type_ids_dep37); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep37) + { + ::register_Type37_type_identifier(type_ids_dep37); + } + StructMemberFlag member_flags_dep37 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep37; MemberId member_id_dep37 = 0x00000025; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep37 = TypeObjectUtils::build_common_struct_member(member_id_dep37, member_flags_dep37, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep37 = TypeObjectUtils::build_common_struct_member(member_id_dep37, member_flags_dep37, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep37_ec {false}; + CommonStructMember common_dep37 {TypeObjectUtils::build_common_struct_member(member_id_dep37, member_flags_dep37, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep37, common_dep37_ec))}; + if (!common_dep37_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep37 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep37 member TypeIdentifier inconsistent."); return; } MemberName name_dep37 = "dep37"; @@ -15340,150 +6851,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep37); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep38; + ReturnCode_t return_code_dep38 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep38 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type38", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type38 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type38; - TypeIdentifierPair type_ids_Type38; - QualifiedTypeName type_name_Type38 = "Type38"; - eprosima::fastcdr::optional type_ann_builtin_Type38; - eprosima::fastcdr::optional ann_custom_Type38; - CompleteTypeDetail detail_Type38 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type38, ann_custom_Type38, type_name_Type38.to_string()); - CompleteStructHeader header_Type38; - header_Type38 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type38); - CompleteStructMemberSeq member_seq_Type38; - { - return_code_Type38 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type38); - - if (return_code_Type38 != 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_Type38.type_identifier1()._d() || TK_NONE == type_ids_Type38.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type38.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type38.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type38.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type38.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type38.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type38.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type38.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type38.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type38.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type38.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type38.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type38.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type38.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type38.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type38.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type38.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type38.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type38.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type38.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type38.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type38.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type38.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type38.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type38.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_Type38.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type38); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type38, member_index); - } - CompleteStructType struct_type_Type38 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type38, header_Type38, member_seq_Type38); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type38, type_name_Type38.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type38 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type38 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type38", type_ids_Type38); - if (return_code_Type38 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type38: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep38 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type38", type_ids_dep38); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep38) + { + ::register_Type38_type_identifier(type_ids_dep38); + } + StructMemberFlag member_flags_dep38 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep38; MemberId member_id_dep38 = 0x00000026; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep38 = TypeObjectUtils::build_common_struct_member(member_id_dep38, member_flags_dep38, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep38 = TypeObjectUtils::build_common_struct_member(member_id_dep38, member_flags_dep38, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep38_ec {false}; + CommonStructMember common_dep38 {TypeObjectUtils::build_common_struct_member(member_id_dep38, member_flags_dep38, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep38, common_dep38_ec))}; + if (!common_dep38_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep38 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep38 member TypeIdentifier inconsistent."); return; } MemberName name_dep38 = "dep38"; @@ -15494,150 +6879,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep38); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep39; + ReturnCode_t return_code_dep39 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep39 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type39", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type39 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type39; - TypeIdentifierPair type_ids_Type39; - QualifiedTypeName type_name_Type39 = "Type39"; - eprosima::fastcdr::optional type_ann_builtin_Type39; - eprosima::fastcdr::optional ann_custom_Type39; - CompleteTypeDetail detail_Type39 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type39, ann_custom_Type39, type_name_Type39.to_string()); - CompleteStructHeader header_Type39; - header_Type39 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type39); - CompleteStructMemberSeq member_seq_Type39; - { - return_code_Type39 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type39); - - if (return_code_Type39 != 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_Type39.type_identifier1()._d() || TK_NONE == type_ids_Type39.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type39.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type39.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type39.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type39.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type39.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type39.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type39.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type39.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type39.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type39.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type39.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type39.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type39.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type39.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type39.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type39.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type39.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type39.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type39.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type39.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type39.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type39.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type39.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type39.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_Type39.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type39); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type39, member_index); - } - CompleteStructType struct_type_Type39 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type39, header_Type39, member_seq_Type39); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type39, type_name_Type39.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type39 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type39 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type39", type_ids_Type39); - if (return_code_Type39 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type39: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep39 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type39", type_ids_dep39); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep39) + { + ::register_Type39_type_identifier(type_ids_dep39); + } + StructMemberFlag member_flags_dep39 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep39; MemberId member_id_dep39 = 0x00000027; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep39 = TypeObjectUtils::build_common_struct_member(member_id_dep39, member_flags_dep39, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep39 = TypeObjectUtils::build_common_struct_member(member_id_dep39, member_flags_dep39, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep39_ec {false}; + CommonStructMember common_dep39 {TypeObjectUtils::build_common_struct_member(member_id_dep39, member_flags_dep39, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep39, common_dep39_ec))}; + if (!common_dep39_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep39 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep39 member TypeIdentifier inconsistent."); return; } MemberName name_dep39 = "dep39"; @@ -15648,150 +6907,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep39); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep40; + ReturnCode_t return_code_dep40 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep40 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type40", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type40 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type40; - TypeIdentifierPair type_ids_Type40; - QualifiedTypeName type_name_Type40 = "Type40"; - eprosima::fastcdr::optional type_ann_builtin_Type40; - eprosima::fastcdr::optional ann_custom_Type40; - CompleteTypeDetail detail_Type40 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type40, ann_custom_Type40, type_name_Type40.to_string()); - CompleteStructHeader header_Type40; - header_Type40 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type40); - CompleteStructMemberSeq member_seq_Type40; - { - return_code_Type40 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type40); - - if (return_code_Type40 != 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_Type40.type_identifier1()._d() || TK_NONE == type_ids_Type40.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type40.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type40.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type40.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type40.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type40.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type40.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type40.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type40.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type40.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type40.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type40.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type40.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type40.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type40.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type40.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type40.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type40.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type40.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type40.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type40.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type40.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type40.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type40.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type40.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_Type40.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type40); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type40, member_index); - } - CompleteStructType struct_type_Type40 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type40, header_Type40, member_seq_Type40); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type40, type_name_Type40.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type40 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type40 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type40", type_ids_Type40); - if (return_code_Type40 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type40: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep40 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type40", type_ids_dep40); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep40) + { + ::register_Type40_type_identifier(type_ids_dep40); + } + StructMemberFlag member_flags_dep40 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep40; MemberId member_id_dep40 = 0x00000028; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep40 = TypeObjectUtils::build_common_struct_member(member_id_dep40, member_flags_dep40, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep40 = TypeObjectUtils::build_common_struct_member(member_id_dep40, member_flags_dep40, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep40_ec {false}; + CommonStructMember common_dep40 {TypeObjectUtils::build_common_struct_member(member_id_dep40, member_flags_dep40, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep40, common_dep40_ec))}; + if (!common_dep40_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep40 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep40 member TypeIdentifier inconsistent."); return; } MemberName name_dep40 = "dep40"; @@ -15802,150 +6935,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep40); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep41; + ReturnCode_t return_code_dep41 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep41 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type41", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type41 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type41; - TypeIdentifierPair type_ids_Type41; - QualifiedTypeName type_name_Type41 = "Type41"; - eprosima::fastcdr::optional type_ann_builtin_Type41; - eprosima::fastcdr::optional ann_custom_Type41; - CompleteTypeDetail detail_Type41 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type41, ann_custom_Type41, type_name_Type41.to_string()); - CompleteStructHeader header_Type41; - header_Type41 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type41); - CompleteStructMemberSeq member_seq_Type41; - { - return_code_Type41 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type41); - - if (return_code_Type41 != 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_Type41.type_identifier1()._d() || TK_NONE == type_ids_Type41.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type41.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type41.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type41.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type41.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type41.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type41.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type41.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type41.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type41.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type41.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type41.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type41.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type41.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type41.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type41.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type41.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type41.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type41.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type41.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type41.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type41.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type41.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type41.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type41.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_Type41.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type41); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type41, member_index); - } - CompleteStructType struct_type_Type41 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type41, header_Type41, member_seq_Type41); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type41, type_name_Type41.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type41 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type41 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type41", type_ids_Type41); - if (return_code_Type41 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type41: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep41 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type41", type_ids_dep41); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep41) + { + ::register_Type41_type_identifier(type_ids_dep41); + } + StructMemberFlag member_flags_dep41 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep41; MemberId member_id_dep41 = 0x00000029; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep41 = TypeObjectUtils::build_common_struct_member(member_id_dep41, member_flags_dep41, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep41 = TypeObjectUtils::build_common_struct_member(member_id_dep41, member_flags_dep41, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep41_ec {false}; + CommonStructMember common_dep41 {TypeObjectUtils::build_common_struct_member(member_id_dep41, member_flags_dep41, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep41, common_dep41_ec))}; + if (!common_dep41_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep41 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep41 member TypeIdentifier inconsistent."); return; } MemberName name_dep41 = "dep41"; @@ -15956,150 +6963,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep41); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep42; + ReturnCode_t return_code_dep42 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep42 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type42", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type42 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type42; - TypeIdentifierPair type_ids_Type42; - QualifiedTypeName type_name_Type42 = "Type42"; - eprosima::fastcdr::optional type_ann_builtin_Type42; - eprosima::fastcdr::optional ann_custom_Type42; - CompleteTypeDetail detail_Type42 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type42, ann_custom_Type42, type_name_Type42.to_string()); - CompleteStructHeader header_Type42; - header_Type42 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type42); - CompleteStructMemberSeq member_seq_Type42; - { - return_code_Type42 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type42); - - if (return_code_Type42 != 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_Type42.type_identifier1()._d() || TK_NONE == type_ids_Type42.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type42.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type42.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type42.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type42.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type42.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type42.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type42.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type42.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type42.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type42.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type42.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type42.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type42.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type42.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type42.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type42.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type42.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type42.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type42.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type42.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type42.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type42.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type42.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type42.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_Type42.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type42); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type42, member_index); - } - CompleteStructType struct_type_Type42 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type42, header_Type42, member_seq_Type42); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type42, type_name_Type42.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type42 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type42 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type42", type_ids_Type42); - if (return_code_Type42 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type42: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep42 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type42", type_ids_dep42); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep42) + { + ::register_Type42_type_identifier(type_ids_dep42); + } + StructMemberFlag member_flags_dep42 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep42; MemberId member_id_dep42 = 0x0000002a; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep42 = TypeObjectUtils::build_common_struct_member(member_id_dep42, member_flags_dep42, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep42 = TypeObjectUtils::build_common_struct_member(member_id_dep42, member_flags_dep42, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep42_ec {false}; + CommonStructMember common_dep42 {TypeObjectUtils::build_common_struct_member(member_id_dep42, member_flags_dep42, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep42, common_dep42_ec))}; + if (!common_dep42_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep42 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep42 member TypeIdentifier inconsistent."); return; } MemberName name_dep42 = "dep42"; @@ -16110,150 +6991,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep42); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep43; + ReturnCode_t return_code_dep43 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep43 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type43", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type43 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type43; - TypeIdentifierPair type_ids_Type43; - QualifiedTypeName type_name_Type43 = "Type43"; - eprosima::fastcdr::optional type_ann_builtin_Type43; - eprosima::fastcdr::optional ann_custom_Type43; - CompleteTypeDetail detail_Type43 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type43, ann_custom_Type43, type_name_Type43.to_string()); - CompleteStructHeader header_Type43; - header_Type43 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type43); - CompleteStructMemberSeq member_seq_Type43; - { - return_code_Type43 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type43); - - if (return_code_Type43 != 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_Type43.type_identifier1()._d() || TK_NONE == type_ids_Type43.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type43.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type43.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type43.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type43.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type43.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type43.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type43.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type43.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type43.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type43.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type43.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type43.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type43.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type43.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type43.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type43.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type43.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type43.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type43.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type43.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type43.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type43.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type43.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type43.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_Type43.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type43); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type43, member_index); - } - CompleteStructType struct_type_Type43 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type43, header_Type43, member_seq_Type43); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type43, type_name_Type43.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type43 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type43 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type43", type_ids_Type43); - if (return_code_Type43 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type43: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep43 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type43", type_ids_dep43); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep43) + { + ::register_Type43_type_identifier(type_ids_dep43); + } + StructMemberFlag member_flags_dep43 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep43; MemberId member_id_dep43 = 0x0000002b; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep43 = TypeObjectUtils::build_common_struct_member(member_id_dep43, member_flags_dep43, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep43 = TypeObjectUtils::build_common_struct_member(member_id_dep43, member_flags_dep43, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep43_ec {false}; + CommonStructMember common_dep43 {TypeObjectUtils::build_common_struct_member(member_id_dep43, member_flags_dep43, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep43, common_dep43_ec))}; + if (!common_dep43_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep43 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep43 member TypeIdentifier inconsistent."); return; } MemberName name_dep43 = "dep43"; @@ -16264,150 +7019,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep43); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep44; + ReturnCode_t return_code_dep44 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep44 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type44", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type44 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type44; - TypeIdentifierPair type_ids_Type44; - QualifiedTypeName type_name_Type44 = "Type44"; - eprosima::fastcdr::optional type_ann_builtin_Type44; - eprosima::fastcdr::optional ann_custom_Type44; - CompleteTypeDetail detail_Type44 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type44, ann_custom_Type44, type_name_Type44.to_string()); - CompleteStructHeader header_Type44; - header_Type44 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type44); - CompleteStructMemberSeq member_seq_Type44; - { - return_code_Type44 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type44); - - if (return_code_Type44 != 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_Type44.type_identifier1()._d() || TK_NONE == type_ids_Type44.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type44.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type44.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type44.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type44.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type44.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type44.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type44.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type44.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type44.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type44.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type44.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type44.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type44.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type44.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type44.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type44.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type44.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type44.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type44.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type44.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type44.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type44.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type44.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type44.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_Type44.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type44); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type44, member_index); - } - CompleteStructType struct_type_Type44 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type44, header_Type44, member_seq_Type44); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type44, type_name_Type44.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type44 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type44 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type44", type_ids_Type44); - if (return_code_Type44 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type44: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep44 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type44", type_ids_dep44); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep44) + { + ::register_Type44_type_identifier(type_ids_dep44); + } + StructMemberFlag member_flags_dep44 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep44; MemberId member_id_dep44 = 0x0000002c; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep44 = TypeObjectUtils::build_common_struct_member(member_id_dep44, member_flags_dep44, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep44 = TypeObjectUtils::build_common_struct_member(member_id_dep44, member_flags_dep44, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep44_ec {false}; + CommonStructMember common_dep44 {TypeObjectUtils::build_common_struct_member(member_id_dep44, member_flags_dep44, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep44, common_dep44_ec))}; + if (!common_dep44_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep44 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep44 member TypeIdentifier inconsistent."); return; } MemberName name_dep44 = "dep44"; @@ -16418,150 +7047,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep44); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep45; + ReturnCode_t return_code_dep45 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep45 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type45", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type45 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type45; - TypeIdentifierPair type_ids_Type45; - QualifiedTypeName type_name_Type45 = "Type45"; - eprosima::fastcdr::optional type_ann_builtin_Type45; - eprosima::fastcdr::optional ann_custom_Type45; - CompleteTypeDetail detail_Type45 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type45, ann_custom_Type45, type_name_Type45.to_string()); - CompleteStructHeader header_Type45; - header_Type45 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type45); - CompleteStructMemberSeq member_seq_Type45; - { - return_code_Type45 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type45); - - if (return_code_Type45 != 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_Type45.type_identifier1()._d() || TK_NONE == type_ids_Type45.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type45.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type45.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type45.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type45.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type45.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type45.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type45.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type45.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type45.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type45.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type45.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type45.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type45.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type45.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type45.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type45.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type45.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type45.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type45.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type45.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type45.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type45.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type45.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type45.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_Type45.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type45); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type45, member_index); - } - CompleteStructType struct_type_Type45 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type45, header_Type45, member_seq_Type45); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type45, type_name_Type45.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type45 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type45 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type45", type_ids_Type45); - if (return_code_Type45 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type45: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep45 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type45", type_ids_dep45); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep45) + { + ::register_Type45_type_identifier(type_ids_dep45); + } + StructMemberFlag member_flags_dep45 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep45; MemberId member_id_dep45 = 0x0000002d; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep45 = TypeObjectUtils::build_common_struct_member(member_id_dep45, member_flags_dep45, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep45 = TypeObjectUtils::build_common_struct_member(member_id_dep45, member_flags_dep45, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep45_ec {false}; + CommonStructMember common_dep45 {TypeObjectUtils::build_common_struct_member(member_id_dep45, member_flags_dep45, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep45, common_dep45_ec))}; + if (!common_dep45_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep45 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep45 member TypeIdentifier inconsistent."); return; } MemberName name_dep45 = "dep45"; @@ -16572,150 +7075,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep45); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep46; + ReturnCode_t return_code_dep46 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep46 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type46", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type46 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type46; - TypeIdentifierPair type_ids_Type46; - QualifiedTypeName type_name_Type46 = "Type46"; - eprosima::fastcdr::optional type_ann_builtin_Type46; - eprosima::fastcdr::optional ann_custom_Type46; - CompleteTypeDetail detail_Type46 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type46, ann_custom_Type46, type_name_Type46.to_string()); - CompleteStructHeader header_Type46; - header_Type46 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type46); - CompleteStructMemberSeq member_seq_Type46; - { - return_code_Type46 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type46); - - if (return_code_Type46 != 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_Type46.type_identifier1()._d() || TK_NONE == type_ids_Type46.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type46.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type46.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type46.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type46.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type46.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type46.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type46.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type46.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type46.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type46.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type46.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type46.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type46.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type46.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type46.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type46.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type46.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type46.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type46.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type46.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type46.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type46.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type46.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type46.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_Type46.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type46); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type46, member_index); - } - CompleteStructType struct_type_Type46 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type46, header_Type46, member_seq_Type46); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type46, type_name_Type46.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type46 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type46 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type46", type_ids_Type46); - if (return_code_Type46 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type46: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep46 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type46", type_ids_dep46); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep46) + { + ::register_Type46_type_identifier(type_ids_dep46); + } + StructMemberFlag member_flags_dep46 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep46; MemberId member_id_dep46 = 0x0000002e; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep46 = TypeObjectUtils::build_common_struct_member(member_id_dep46, member_flags_dep46, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep46 = TypeObjectUtils::build_common_struct_member(member_id_dep46, member_flags_dep46, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep46_ec {false}; + CommonStructMember common_dep46 {TypeObjectUtils::build_common_struct_member(member_id_dep46, member_flags_dep46, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep46, common_dep46_ec))}; + if (!common_dep46_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep46 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep46 member TypeIdentifier inconsistent."); return; } MemberName name_dep46 = "dep46"; @@ -16726,150 +7103,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep46); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep47; + ReturnCode_t return_code_dep47 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep47 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type47", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type47 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type47; - TypeIdentifierPair type_ids_Type47; - QualifiedTypeName type_name_Type47 = "Type47"; - eprosima::fastcdr::optional type_ann_builtin_Type47; - eprosima::fastcdr::optional ann_custom_Type47; - CompleteTypeDetail detail_Type47 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type47, ann_custom_Type47, type_name_Type47.to_string()); - CompleteStructHeader header_Type47; - header_Type47 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type47); - CompleteStructMemberSeq member_seq_Type47; - { - return_code_Type47 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type47); - - if (return_code_Type47 != 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_Type47.type_identifier1()._d() || TK_NONE == type_ids_Type47.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type47.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type47.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type47.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type47.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type47.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type47.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type47.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type47.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type47.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type47.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type47.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type47.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type47.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type47.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type47.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type47.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type47.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type47.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type47.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type47.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type47.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type47.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type47.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type47.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_Type47.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type47); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type47, member_index); - } - CompleteStructType struct_type_Type47 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type47, header_Type47, member_seq_Type47); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type47, type_name_Type47.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type47 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type47 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type47", type_ids_Type47); - if (return_code_Type47 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type47: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep47 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type47", type_ids_dep47); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep47) + { + ::register_Type47_type_identifier(type_ids_dep47); + } + StructMemberFlag member_flags_dep47 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep47; MemberId member_id_dep47 = 0x0000002f; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep47 = TypeObjectUtils::build_common_struct_member(member_id_dep47, member_flags_dep47, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep47 = TypeObjectUtils::build_common_struct_member(member_id_dep47, member_flags_dep47, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep47_ec {false}; + CommonStructMember common_dep47 {TypeObjectUtils::build_common_struct_member(member_id_dep47, member_flags_dep47, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep47, common_dep47_ec))}; + if (!common_dep47_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep47 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep47 member TypeIdentifier inconsistent."); return; } MemberName name_dep47 = "dep47"; @@ -16880,150 +7131,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep47); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep48; + ReturnCode_t return_code_dep48 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep48 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type48", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type48 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type48; - TypeIdentifierPair type_ids_Type48; - QualifiedTypeName type_name_Type48 = "Type48"; - eprosima::fastcdr::optional type_ann_builtin_Type48; - eprosima::fastcdr::optional ann_custom_Type48; - CompleteTypeDetail detail_Type48 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type48, ann_custom_Type48, type_name_Type48.to_string()); - CompleteStructHeader header_Type48; - header_Type48 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type48); - CompleteStructMemberSeq member_seq_Type48; - { - return_code_Type48 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type48); - - if (return_code_Type48 != 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_Type48.type_identifier1()._d() || TK_NONE == type_ids_Type48.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type48.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type48.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type48.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type48.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type48.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type48.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type48.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type48.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type48.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type48.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type48.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type48.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type48.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type48.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type48.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type48.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type48.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type48.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type48.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type48.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type48.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type48.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type48.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type48.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_Type48.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type48); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type48, member_index); - } - CompleteStructType struct_type_Type48 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type48, header_Type48, member_seq_Type48); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type48, type_name_Type48.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type48 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type48 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type48", type_ids_Type48); - if (return_code_Type48 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type48: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep48 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type48", type_ids_dep48); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep48) + { + ::register_Type48_type_identifier(type_ids_dep48); + } + StructMemberFlag member_flags_dep48 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep48; MemberId member_id_dep48 = 0x00000030; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep48 = TypeObjectUtils::build_common_struct_member(member_id_dep48, member_flags_dep48, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep48 = TypeObjectUtils::build_common_struct_member(member_id_dep48, member_flags_dep48, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep48_ec {false}; + CommonStructMember common_dep48 {TypeObjectUtils::build_common_struct_member(member_id_dep48, member_flags_dep48, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep48, common_dep48_ec))}; + if (!common_dep48_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep48 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep48 member TypeIdentifier inconsistent."); return; } MemberName name_dep48 = "dep48"; @@ -17034,150 +7159,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep48); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep49; + ReturnCode_t return_code_dep49 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep49 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type49", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type49 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type49; - TypeIdentifierPair type_ids_Type49; - QualifiedTypeName type_name_Type49 = "Type49"; - eprosima::fastcdr::optional type_ann_builtin_Type49; - eprosima::fastcdr::optional ann_custom_Type49; - CompleteTypeDetail detail_Type49 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type49, ann_custom_Type49, type_name_Type49.to_string()); - CompleteStructHeader header_Type49; - header_Type49 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type49); - CompleteStructMemberSeq member_seq_Type49; - { - return_code_Type49 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type49); - - if (return_code_Type49 != 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_Type49.type_identifier1()._d() || TK_NONE == type_ids_Type49.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type49.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type49.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type49.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type49.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type49.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type49.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type49.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type49.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type49.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type49.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type49.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type49.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type49.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type49.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type49.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type49.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type49.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type49.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type49.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type49.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type49.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type49.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type49.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type49.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_Type49.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type49); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type49, member_index); - } - CompleteStructType struct_type_Type49 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type49, header_Type49, member_seq_Type49); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type49, type_name_Type49.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type49 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type49 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type49", type_ids_Type49); - if (return_code_Type49 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type49: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep49 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type49", type_ids_dep49); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep49) + { + ::register_Type49_type_identifier(type_ids_dep49); + } + StructMemberFlag member_flags_dep49 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep49; MemberId member_id_dep49 = 0x00000031; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep49 = TypeObjectUtils::build_common_struct_member(member_id_dep49, member_flags_dep49, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep49 = TypeObjectUtils::build_common_struct_member(member_id_dep49, member_flags_dep49, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep49_ec {false}; + CommonStructMember common_dep49 {TypeObjectUtils::build_common_struct_member(member_id_dep49, member_flags_dep49, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep49, common_dep49_ec))}; + if (!common_dep49_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep49 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep49 member TypeIdentifier inconsistent."); return; } MemberName name_dep49 = "dep49"; @@ -17188,150 +7187,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep49); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep50; + ReturnCode_t return_code_dep50 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep50 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type50", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type50 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type50; - TypeIdentifierPair type_ids_Type50; - QualifiedTypeName type_name_Type50 = "Type50"; - eprosima::fastcdr::optional type_ann_builtin_Type50; - eprosima::fastcdr::optional ann_custom_Type50; - CompleteTypeDetail detail_Type50 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type50, ann_custom_Type50, type_name_Type50.to_string()); - CompleteStructHeader header_Type50; - header_Type50 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type50); - CompleteStructMemberSeq member_seq_Type50; - { - return_code_Type50 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type50); - - if (return_code_Type50 != 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_Type50.type_identifier1()._d() || TK_NONE == type_ids_Type50.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type50.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type50.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type50.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type50.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type50.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type50.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type50.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type50.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type50.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type50.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type50.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type50.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type50.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type50.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type50.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type50.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type50.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type50.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type50.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type50.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type50.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type50.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type50.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type50.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_Type50.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type50); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type50, member_index); - } - CompleteStructType struct_type_Type50 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type50, header_Type50, member_seq_Type50); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type50, type_name_Type50.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type50 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type50 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type50", type_ids_Type50); - if (return_code_Type50 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type50: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep50 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type50", type_ids_dep50); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep50) + { + ::register_Type50_type_identifier(type_ids_dep50); + } + StructMemberFlag member_flags_dep50 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep50; MemberId member_id_dep50 = 0x00000032; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep50 = TypeObjectUtils::build_common_struct_member(member_id_dep50, member_flags_dep50, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep50 = TypeObjectUtils::build_common_struct_member(member_id_dep50, member_flags_dep50, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep50_ec {false}; + CommonStructMember common_dep50 {TypeObjectUtils::build_common_struct_member(member_id_dep50, member_flags_dep50, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep50, common_dep50_ec))}; + if (!common_dep50_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep50 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep50 member TypeIdentifier inconsistent."); return; } MemberName name_dep50 = "dep50"; @@ -17342,150 +7215,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep50); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep51; + ReturnCode_t return_code_dep51 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep51 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type51", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type51 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type51; - TypeIdentifierPair type_ids_Type51; - QualifiedTypeName type_name_Type51 = "Type51"; - eprosima::fastcdr::optional type_ann_builtin_Type51; - eprosima::fastcdr::optional ann_custom_Type51; - CompleteTypeDetail detail_Type51 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type51, ann_custom_Type51, type_name_Type51.to_string()); - CompleteStructHeader header_Type51; - header_Type51 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type51); - CompleteStructMemberSeq member_seq_Type51; - { - return_code_Type51 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type51); - - if (return_code_Type51 != 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_Type51.type_identifier1()._d() || TK_NONE == type_ids_Type51.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type51.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type51.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type51.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type51.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type51.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type51.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type51.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type51.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type51.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type51.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type51.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type51.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type51.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type51.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type51.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type51.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type51.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type51.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type51.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type51.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type51.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type51.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type51.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type51.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_Type51.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type51); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type51, member_index); - } - CompleteStructType struct_type_Type51 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type51, header_Type51, member_seq_Type51); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type51, type_name_Type51.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type51 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type51 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type51", type_ids_Type51); - if (return_code_Type51 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type51: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep51 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type51", type_ids_dep51); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep51) + { + ::register_Type51_type_identifier(type_ids_dep51); + } + StructMemberFlag member_flags_dep51 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep51; MemberId member_id_dep51 = 0x00000033; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep51 = TypeObjectUtils::build_common_struct_member(member_id_dep51, member_flags_dep51, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep51 = TypeObjectUtils::build_common_struct_member(member_id_dep51, member_flags_dep51, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep51_ec {false}; + CommonStructMember common_dep51 {TypeObjectUtils::build_common_struct_member(member_id_dep51, member_flags_dep51, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep51, common_dep51_ec))}; + if (!common_dep51_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep51 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep51 member TypeIdentifier inconsistent."); return; } MemberName name_dep51 = "dep51"; @@ -17496,150 +7243,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep51); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep52; + ReturnCode_t return_code_dep52 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep52 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type52", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type52 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type52; - TypeIdentifierPair type_ids_Type52; - QualifiedTypeName type_name_Type52 = "Type52"; - eprosima::fastcdr::optional type_ann_builtin_Type52; - eprosima::fastcdr::optional ann_custom_Type52; - CompleteTypeDetail detail_Type52 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type52, ann_custom_Type52, type_name_Type52.to_string()); - CompleteStructHeader header_Type52; - header_Type52 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type52); - CompleteStructMemberSeq member_seq_Type52; - { - return_code_Type52 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type52); - - if (return_code_Type52 != 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_Type52.type_identifier1()._d() || TK_NONE == type_ids_Type52.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type52.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type52.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type52.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type52.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type52.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type52.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type52.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type52.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type52.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type52.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type52.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type52.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type52.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type52.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type52.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type52.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type52.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type52.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type52.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type52.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type52.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type52.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type52.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type52.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_Type52.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type52); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type52, member_index); - } - CompleteStructType struct_type_Type52 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type52, header_Type52, member_seq_Type52); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type52, type_name_Type52.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type52 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type52 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type52", type_ids_Type52); - if (return_code_Type52 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type52: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep52 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type52", type_ids_dep52); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep52) + { + ::register_Type52_type_identifier(type_ids_dep52); + } + StructMemberFlag member_flags_dep52 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep52; MemberId member_id_dep52 = 0x00000034; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep52 = TypeObjectUtils::build_common_struct_member(member_id_dep52, member_flags_dep52, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep52 = TypeObjectUtils::build_common_struct_member(member_id_dep52, member_flags_dep52, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep52_ec {false}; + CommonStructMember common_dep52 {TypeObjectUtils::build_common_struct_member(member_id_dep52, member_flags_dep52, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep52, common_dep52_ec))}; + if (!common_dep52_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep52 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep52 member TypeIdentifier inconsistent."); return; } MemberName name_dep52 = "dep52"; @@ -17650,150 +7271,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep52); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep53; + ReturnCode_t return_code_dep53 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep53 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type53", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type53 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type53; - TypeIdentifierPair type_ids_Type53; - QualifiedTypeName type_name_Type53 = "Type53"; - eprosima::fastcdr::optional type_ann_builtin_Type53; - eprosima::fastcdr::optional ann_custom_Type53; - CompleteTypeDetail detail_Type53 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type53, ann_custom_Type53, type_name_Type53.to_string()); - CompleteStructHeader header_Type53; - header_Type53 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type53); - CompleteStructMemberSeq member_seq_Type53; - { - return_code_Type53 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type53); - - if (return_code_Type53 != 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_Type53.type_identifier1()._d() || TK_NONE == type_ids_Type53.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type53.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type53.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type53.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type53.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type53.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type53.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type53.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type53.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type53.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type53.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type53.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type53.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type53.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type53.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type53.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type53.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type53.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type53.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type53.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type53.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type53.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type53.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type53.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type53.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_Type53.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type53); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type53, member_index); - } - CompleteStructType struct_type_Type53 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type53, header_Type53, member_seq_Type53); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type53, type_name_Type53.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type53 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type53 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type53", type_ids_Type53); - if (return_code_Type53 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type53: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep53 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type53", type_ids_dep53); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep53) + { + ::register_Type53_type_identifier(type_ids_dep53); + } + StructMemberFlag member_flags_dep53 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep53; MemberId member_id_dep53 = 0x00000035; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep53 = TypeObjectUtils::build_common_struct_member(member_id_dep53, member_flags_dep53, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep53 = TypeObjectUtils::build_common_struct_member(member_id_dep53, member_flags_dep53, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep53_ec {false}; + CommonStructMember common_dep53 {TypeObjectUtils::build_common_struct_member(member_id_dep53, member_flags_dep53, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep53, common_dep53_ec))}; + if (!common_dep53_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep53 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep53 member TypeIdentifier inconsistent."); return; } MemberName name_dep53 = "dep53"; @@ -17804,150 +7299,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep53); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep54; + ReturnCode_t return_code_dep54 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep54 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type54", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type54 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type54; - TypeIdentifierPair type_ids_Type54; - QualifiedTypeName type_name_Type54 = "Type54"; - eprosima::fastcdr::optional type_ann_builtin_Type54; - eprosima::fastcdr::optional ann_custom_Type54; - CompleteTypeDetail detail_Type54 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type54, ann_custom_Type54, type_name_Type54.to_string()); - CompleteStructHeader header_Type54; - header_Type54 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type54); - CompleteStructMemberSeq member_seq_Type54; - { - return_code_Type54 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type54); - - if (return_code_Type54 != 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_Type54.type_identifier1()._d() || TK_NONE == type_ids_Type54.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type54.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type54.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type54.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type54.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type54.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type54.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type54.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type54.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type54.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type54.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type54.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type54.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type54.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type54.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type54.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type54.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type54.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type54.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type54.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type54.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type54.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type54.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type54.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type54.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_Type54.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type54); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type54, member_index); - } - CompleteStructType struct_type_Type54 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type54, header_Type54, member_seq_Type54); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type54, type_name_Type54.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type54 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type54 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type54", type_ids_Type54); - if (return_code_Type54 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type54: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep54 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type54", type_ids_dep54); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep54) + { + ::register_Type54_type_identifier(type_ids_dep54); + } + StructMemberFlag member_flags_dep54 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep54; MemberId member_id_dep54 = 0x00000036; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep54 = TypeObjectUtils::build_common_struct_member(member_id_dep54, member_flags_dep54, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep54 = TypeObjectUtils::build_common_struct_member(member_id_dep54, member_flags_dep54, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep54_ec {false}; + CommonStructMember common_dep54 {TypeObjectUtils::build_common_struct_member(member_id_dep54, member_flags_dep54, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep54, common_dep54_ec))}; + if (!common_dep54_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep54 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep54 member TypeIdentifier inconsistent."); return; } MemberName name_dep54 = "dep54"; @@ -17958,150 +7327,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep54); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep55; + ReturnCode_t return_code_dep55 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep55 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type55", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type55 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type55; - TypeIdentifierPair type_ids_Type55; - QualifiedTypeName type_name_Type55 = "Type55"; - eprosima::fastcdr::optional type_ann_builtin_Type55; - eprosima::fastcdr::optional ann_custom_Type55; - CompleteTypeDetail detail_Type55 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type55, ann_custom_Type55, type_name_Type55.to_string()); - CompleteStructHeader header_Type55; - header_Type55 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type55); - CompleteStructMemberSeq member_seq_Type55; - { - return_code_Type55 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type55); - - if (return_code_Type55 != 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_Type55.type_identifier1()._d() || TK_NONE == type_ids_Type55.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type55.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type55.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type55.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type55.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type55.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type55.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type55.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type55.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type55.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type55.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type55.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type55.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type55.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type55.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type55.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type55.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type55.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type55.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type55.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type55.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type55.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type55.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type55.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type55.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_Type55.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type55); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type55, member_index); - } - CompleteStructType struct_type_Type55 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type55, header_Type55, member_seq_Type55); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type55, type_name_Type55.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type55 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type55 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type55", type_ids_Type55); - if (return_code_Type55 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type55: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep55 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type55", type_ids_dep55); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep55) + { + ::register_Type55_type_identifier(type_ids_dep55); + } + StructMemberFlag member_flags_dep55 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep55; MemberId member_id_dep55 = 0x00000037; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep55 = TypeObjectUtils::build_common_struct_member(member_id_dep55, member_flags_dep55, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep55 = TypeObjectUtils::build_common_struct_member(member_id_dep55, member_flags_dep55, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep55_ec {false}; + CommonStructMember common_dep55 {TypeObjectUtils::build_common_struct_member(member_id_dep55, member_flags_dep55, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep55, common_dep55_ec))}; + if (!common_dep55_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep55 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep55 member TypeIdentifier inconsistent."); return; } MemberName name_dep55 = "dep55"; @@ -18112,150 +7355,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep55); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep56; + ReturnCode_t return_code_dep56 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep56 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type56", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type56 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type56; - TypeIdentifierPair type_ids_Type56; - QualifiedTypeName type_name_Type56 = "Type56"; - eprosima::fastcdr::optional type_ann_builtin_Type56; - eprosima::fastcdr::optional ann_custom_Type56; - CompleteTypeDetail detail_Type56 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type56, ann_custom_Type56, type_name_Type56.to_string()); - CompleteStructHeader header_Type56; - header_Type56 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type56); - CompleteStructMemberSeq member_seq_Type56; - { - return_code_Type56 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type56); - - if (return_code_Type56 != 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_Type56.type_identifier1()._d() || TK_NONE == type_ids_Type56.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type56.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type56.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type56.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type56.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type56.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type56.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type56.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type56.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type56.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type56.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type56.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type56.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type56.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type56.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type56.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type56.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type56.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type56.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type56.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type56.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type56.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type56.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type56.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type56.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_Type56.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type56); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type56, member_index); - } - CompleteStructType struct_type_Type56 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type56, header_Type56, member_seq_Type56); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type56, type_name_Type56.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type56 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type56 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type56", type_ids_Type56); - if (return_code_Type56 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type56: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep56 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type56", type_ids_dep56); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep56) + { + ::register_Type56_type_identifier(type_ids_dep56); + } + StructMemberFlag member_flags_dep56 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep56; MemberId member_id_dep56 = 0x00000038; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep56 = TypeObjectUtils::build_common_struct_member(member_id_dep56, member_flags_dep56, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep56 = TypeObjectUtils::build_common_struct_member(member_id_dep56, member_flags_dep56, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep56_ec {false}; + CommonStructMember common_dep56 {TypeObjectUtils::build_common_struct_member(member_id_dep56, member_flags_dep56, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep56, common_dep56_ec))}; + if (!common_dep56_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep56 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep56 member TypeIdentifier inconsistent."); return; } MemberName name_dep56 = "dep56"; @@ -18266,150 +7383,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep56); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep57; + ReturnCode_t return_code_dep57 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep57 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type57", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type57 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type57; - TypeIdentifierPair type_ids_Type57; - QualifiedTypeName type_name_Type57 = "Type57"; - eprosima::fastcdr::optional type_ann_builtin_Type57; - eprosima::fastcdr::optional ann_custom_Type57; - CompleteTypeDetail detail_Type57 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type57, ann_custom_Type57, type_name_Type57.to_string()); - CompleteStructHeader header_Type57; - header_Type57 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type57); - CompleteStructMemberSeq member_seq_Type57; - { - return_code_Type57 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type57); - - if (return_code_Type57 != 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_Type57.type_identifier1()._d() || TK_NONE == type_ids_Type57.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type57.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type57.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type57.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type57.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type57.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type57.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type57.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type57.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type57.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type57.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type57.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type57.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type57.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type57.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type57.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type57.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type57.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type57.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type57.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type57.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type57.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type57.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type57.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type57.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_Type57.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type57); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type57, member_index); - } - CompleteStructType struct_type_Type57 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type57, header_Type57, member_seq_Type57); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type57, type_name_Type57.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type57 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type57 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type57", type_ids_Type57); - if (return_code_Type57 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type57: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep57 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type57", type_ids_dep57); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep57) + { + ::register_Type57_type_identifier(type_ids_dep57); + } + StructMemberFlag member_flags_dep57 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep57; MemberId member_id_dep57 = 0x00000039; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep57 = TypeObjectUtils::build_common_struct_member(member_id_dep57, member_flags_dep57, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep57 = TypeObjectUtils::build_common_struct_member(member_id_dep57, member_flags_dep57, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep57_ec {false}; + CommonStructMember common_dep57 {TypeObjectUtils::build_common_struct_member(member_id_dep57, member_flags_dep57, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep57, common_dep57_ec))}; + if (!common_dep57_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep57 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep57 member TypeIdentifier inconsistent."); return; } MemberName name_dep57 = "dep57"; @@ -18420,150 +7411,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep57); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep58; + ReturnCode_t return_code_dep58 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep58 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type58", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type58 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type58; - TypeIdentifierPair type_ids_Type58; - QualifiedTypeName type_name_Type58 = "Type58"; - eprosima::fastcdr::optional type_ann_builtin_Type58; - eprosima::fastcdr::optional ann_custom_Type58; - CompleteTypeDetail detail_Type58 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type58, ann_custom_Type58, type_name_Type58.to_string()); - CompleteStructHeader header_Type58; - header_Type58 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type58); - CompleteStructMemberSeq member_seq_Type58; - { - return_code_Type58 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type58); - - if (return_code_Type58 != 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_Type58.type_identifier1()._d() || TK_NONE == type_ids_Type58.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type58.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type58.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type58.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type58.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type58.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type58.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type58.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type58.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type58.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type58.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type58.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type58.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type58.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type58.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type58.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type58.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type58.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type58.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type58.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type58.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type58.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type58.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type58.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type58.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_Type58.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type58); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type58, member_index); - } - CompleteStructType struct_type_Type58 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type58, header_Type58, member_seq_Type58); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type58, type_name_Type58.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type58 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type58 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type58", type_ids_Type58); - if (return_code_Type58 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type58: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep58 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type58", type_ids_dep58); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep58) + { + ::register_Type58_type_identifier(type_ids_dep58); + } + StructMemberFlag member_flags_dep58 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep58; MemberId member_id_dep58 = 0x0000003a; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep58 = TypeObjectUtils::build_common_struct_member(member_id_dep58, member_flags_dep58, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep58 = TypeObjectUtils::build_common_struct_member(member_id_dep58, member_flags_dep58, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep58_ec {false}; + CommonStructMember common_dep58 {TypeObjectUtils::build_common_struct_member(member_id_dep58, member_flags_dep58, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep58, common_dep58_ec))}; + if (!common_dep58_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep58 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep58 member TypeIdentifier inconsistent."); return; } MemberName name_dep58 = "dep58"; @@ -18574,150 +7439,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep58); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep59; + ReturnCode_t return_code_dep59 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep59 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type59", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type59 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type59; - TypeIdentifierPair type_ids_Type59; - QualifiedTypeName type_name_Type59 = "Type59"; - eprosima::fastcdr::optional type_ann_builtin_Type59; - eprosima::fastcdr::optional ann_custom_Type59; - CompleteTypeDetail detail_Type59 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type59, ann_custom_Type59, type_name_Type59.to_string()); - CompleteStructHeader header_Type59; - header_Type59 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type59); - CompleteStructMemberSeq member_seq_Type59; - { - return_code_Type59 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type59); - - if (return_code_Type59 != 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_Type59.type_identifier1()._d() || TK_NONE == type_ids_Type59.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type59.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type59.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type59.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type59.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type59.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type59.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type59.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type59.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type59.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type59.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type59.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type59.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type59.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type59.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type59.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type59.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type59.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type59.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type59.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type59.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type59.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type59.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type59.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type59.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_Type59.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type59); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type59, member_index); - } - CompleteStructType struct_type_Type59 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type59, header_Type59, member_seq_Type59); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type59, type_name_Type59.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type59 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type59 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type59", type_ids_Type59); - if (return_code_Type59 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type59: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep59 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type59", type_ids_dep59); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep59) + { + ::register_Type59_type_identifier(type_ids_dep59); + } + StructMemberFlag member_flags_dep59 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep59; MemberId member_id_dep59 = 0x0000003b; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep59 = TypeObjectUtils::build_common_struct_member(member_id_dep59, member_flags_dep59, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep59 = TypeObjectUtils::build_common_struct_member(member_id_dep59, member_flags_dep59, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep59_ec {false}; + CommonStructMember common_dep59 {TypeObjectUtils::build_common_struct_member(member_id_dep59, member_flags_dep59, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep59, common_dep59_ec))}; + if (!common_dep59_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep59 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep59 member TypeIdentifier inconsistent."); return; } MemberName name_dep59 = "dep59"; @@ -18728,150 +7467,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep59); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep60; + ReturnCode_t return_code_dep60 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep60 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type60", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type60 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type60; - TypeIdentifierPair type_ids_Type60; - QualifiedTypeName type_name_Type60 = "Type60"; - eprosima::fastcdr::optional type_ann_builtin_Type60; - eprosima::fastcdr::optional ann_custom_Type60; - CompleteTypeDetail detail_Type60 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type60, ann_custom_Type60, type_name_Type60.to_string()); - CompleteStructHeader header_Type60; - header_Type60 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type60); - CompleteStructMemberSeq member_seq_Type60; - { - return_code_Type60 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type60); - - if (return_code_Type60 != 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_Type60.type_identifier1()._d() || TK_NONE == type_ids_Type60.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type60.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type60.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type60.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type60.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type60.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type60.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type60.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type60.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type60.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type60.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type60.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type60.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type60.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type60.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type60.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type60.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type60.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type60.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type60.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type60.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type60.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type60.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type60.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type60.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_Type60.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type60); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type60, member_index); - } - CompleteStructType struct_type_Type60 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type60, header_Type60, member_seq_Type60); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type60, type_name_Type60.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type60 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type60 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type60", type_ids_Type60); - if (return_code_Type60 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type60: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep60 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type60", type_ids_dep60); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep60) + { + ::register_Type60_type_identifier(type_ids_dep60); + } + StructMemberFlag member_flags_dep60 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep60; MemberId member_id_dep60 = 0x0000003c; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep60 = TypeObjectUtils::build_common_struct_member(member_id_dep60, member_flags_dep60, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep60 = TypeObjectUtils::build_common_struct_member(member_id_dep60, member_flags_dep60, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep60_ec {false}; + CommonStructMember common_dep60 {TypeObjectUtils::build_common_struct_member(member_id_dep60, member_flags_dep60, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep60, common_dep60_ec))}; + if (!common_dep60_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep60 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep60 member TypeIdentifier inconsistent."); return; } MemberName name_dep60 = "dep60"; @@ -18882,150 +7495,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep60); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep61; + ReturnCode_t return_code_dep61 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep61 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type61", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type61 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type61; - TypeIdentifierPair type_ids_Type61; - QualifiedTypeName type_name_Type61 = "Type61"; - eprosima::fastcdr::optional type_ann_builtin_Type61; - eprosima::fastcdr::optional ann_custom_Type61; - CompleteTypeDetail detail_Type61 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type61, ann_custom_Type61, type_name_Type61.to_string()); - CompleteStructHeader header_Type61; - header_Type61 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type61); - CompleteStructMemberSeq member_seq_Type61; - { - return_code_Type61 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type61); - - if (return_code_Type61 != 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_Type61.type_identifier1()._d() || TK_NONE == type_ids_Type61.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type61.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type61.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type61.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type61.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type61.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type61.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type61.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type61.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type61.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type61.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type61.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type61.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type61.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type61.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type61.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type61.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type61.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type61.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type61.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type61.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type61.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type61.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type61.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type61.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_Type61.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type61); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type61, member_index); - } - CompleteStructType struct_type_Type61 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type61, header_Type61, member_seq_Type61); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type61, type_name_Type61.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type61 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type61 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type61", type_ids_Type61); - if (return_code_Type61 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type61: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep61 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type61", type_ids_dep61); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep61) + { + ::register_Type61_type_identifier(type_ids_dep61); + } + StructMemberFlag member_flags_dep61 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep61; MemberId member_id_dep61 = 0x0000003d; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep61 = TypeObjectUtils::build_common_struct_member(member_id_dep61, member_flags_dep61, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep61 = TypeObjectUtils::build_common_struct_member(member_id_dep61, member_flags_dep61, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep61_ec {false}; + CommonStructMember common_dep61 {TypeObjectUtils::build_common_struct_member(member_id_dep61, member_flags_dep61, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep61, common_dep61_ec))}; + if (!common_dep61_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep61 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep61 member TypeIdentifier inconsistent."); return; } MemberName name_dep61 = "dep61"; @@ -19036,150 +7523,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep61); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep62; + ReturnCode_t return_code_dep62 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep62 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type62", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type62 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type62; - TypeIdentifierPair type_ids_Type62; - QualifiedTypeName type_name_Type62 = "Type62"; - eprosima::fastcdr::optional type_ann_builtin_Type62; - eprosima::fastcdr::optional ann_custom_Type62; - CompleteTypeDetail detail_Type62 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type62, ann_custom_Type62, type_name_Type62.to_string()); - CompleteStructHeader header_Type62; - header_Type62 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type62); - CompleteStructMemberSeq member_seq_Type62; - { - return_code_Type62 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type62); - - if (return_code_Type62 != 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_Type62.type_identifier1()._d() || TK_NONE == type_ids_Type62.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type62.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type62.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type62.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type62.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type62.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type62.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type62.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type62.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type62.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type62.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type62.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type62.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type62.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type62.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type62.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type62.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type62.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type62.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type62.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type62.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type62.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type62.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type62.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type62.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_Type62.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type62); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type62, member_index); - } - CompleteStructType struct_type_Type62 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type62, header_Type62, member_seq_Type62); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type62, type_name_Type62.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type62 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type62 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type62", type_ids_Type62); - if (return_code_Type62 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type62: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep62 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type62", type_ids_dep62); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep62) + { + ::register_Type62_type_identifier(type_ids_dep62); + } + StructMemberFlag member_flags_dep62 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep62; MemberId member_id_dep62 = 0x0000003e; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep62 = TypeObjectUtils::build_common_struct_member(member_id_dep62, member_flags_dep62, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep62 = TypeObjectUtils::build_common_struct_member(member_id_dep62, member_flags_dep62, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep62_ec {false}; + CommonStructMember common_dep62 {TypeObjectUtils::build_common_struct_member(member_id_dep62, member_flags_dep62, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep62, common_dep62_ec))}; + if (!common_dep62_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep62 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep62 member TypeIdentifier inconsistent."); return; } MemberName name_dep62 = "dep62"; @@ -19190,150 +7551,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep62); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep63; + ReturnCode_t return_code_dep63 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep63 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type63", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type63 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type63; - TypeIdentifierPair type_ids_Type63; - QualifiedTypeName type_name_Type63 = "Type63"; - eprosima::fastcdr::optional type_ann_builtin_Type63; - eprosima::fastcdr::optional ann_custom_Type63; - CompleteTypeDetail detail_Type63 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type63, ann_custom_Type63, type_name_Type63.to_string()); - CompleteStructHeader header_Type63; - header_Type63 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type63); - CompleteStructMemberSeq member_seq_Type63; - { - return_code_Type63 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type63); - - if (return_code_Type63 != 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_Type63.type_identifier1()._d() || TK_NONE == type_ids_Type63.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type63.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type63.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type63.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type63.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type63.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type63.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type63.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type63.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type63.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type63.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type63.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type63.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type63.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type63.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type63.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type63.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type63.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type63.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type63.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type63.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type63.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type63.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type63.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type63.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_Type63.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type63); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type63, member_index); - } - CompleteStructType struct_type_Type63 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type63, header_Type63, member_seq_Type63); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type63, type_name_Type63.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type63 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type63 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type63", type_ids_Type63); - if (return_code_Type63 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type63: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep63 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type63", type_ids_dep63); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep63) + { + ::register_Type63_type_identifier(type_ids_dep63); + } + StructMemberFlag member_flags_dep63 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep63; MemberId member_id_dep63 = 0x0000003f; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep63 = TypeObjectUtils::build_common_struct_member(member_id_dep63, member_flags_dep63, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep63 = TypeObjectUtils::build_common_struct_member(member_id_dep63, member_flags_dep63, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep63_ec {false}; + CommonStructMember common_dep63 {TypeObjectUtils::build_common_struct_member(member_id_dep63, member_flags_dep63, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep63, common_dep63_ec))}; + if (!common_dep63_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep63 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep63 member TypeIdentifier inconsistent."); return; } MemberName name_dep63 = "dep63"; @@ -19344,150 +7579,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep63); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep64; + ReturnCode_t return_code_dep64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep64 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type64", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type64; - TypeIdentifierPair type_ids_Type64; - QualifiedTypeName type_name_Type64 = "Type64"; - eprosima::fastcdr::optional type_ann_builtin_Type64; - eprosima::fastcdr::optional ann_custom_Type64; - CompleteTypeDetail detail_Type64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type64, ann_custom_Type64, type_name_Type64.to_string()); - CompleteStructHeader header_Type64; - header_Type64 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type64); - CompleteStructMemberSeq member_seq_Type64; - { - return_code_Type64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type64); - - if (return_code_Type64 != 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_Type64.type_identifier1()._d() || TK_NONE == type_ids_Type64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type64.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type64.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type64.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type64.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type64.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type64.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type64.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type64.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type64.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type64.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type64.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type64.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type64.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type64.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type64.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type64.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type64.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type64.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type64.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_Type64.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type64); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type64, member_index); - } - CompleteStructType struct_type_Type64 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type64, header_Type64, member_seq_Type64); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type64, type_name_Type64.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type64 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type64", type_ids_Type64); - if (return_code_Type64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type64: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type64", type_ids_dep64); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep64) + { + ::register_Type64_type_identifier(type_ids_dep64); + } + StructMemberFlag member_flags_dep64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep64; MemberId member_id_dep64 = 0x00000040; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep64 = TypeObjectUtils::build_common_struct_member(member_id_dep64, member_flags_dep64, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep64 = TypeObjectUtils::build_common_struct_member(member_id_dep64, member_flags_dep64, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep64_ec {false}; + CommonStructMember common_dep64 {TypeObjectUtils::build_common_struct_member(member_id_dep64, member_flags_dep64, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep64, common_dep64_ec))}; + if (!common_dep64_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep64 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep64 member TypeIdentifier inconsistent."); return; } MemberName name_dep64 = "dep64"; @@ -19498,150 +7607,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep64); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep65; + ReturnCode_t return_code_dep65 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep65 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type65", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type65 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type65; - TypeIdentifierPair type_ids_Type65; - QualifiedTypeName type_name_Type65 = "Type65"; - eprosima::fastcdr::optional type_ann_builtin_Type65; - eprosima::fastcdr::optional ann_custom_Type65; - CompleteTypeDetail detail_Type65 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type65, ann_custom_Type65, type_name_Type65.to_string()); - CompleteStructHeader header_Type65; - header_Type65 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type65); - CompleteStructMemberSeq member_seq_Type65; - { - return_code_Type65 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type65); - - if (return_code_Type65 != 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_Type65.type_identifier1()._d() || TK_NONE == type_ids_Type65.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type65.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type65.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type65.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type65.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type65.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type65.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type65.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type65.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type65.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type65.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type65.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type65.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type65.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type65.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type65.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type65.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type65.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type65.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type65.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type65.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type65.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type65.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type65.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type65.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_Type65.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type65); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type65, member_index); - } - CompleteStructType struct_type_Type65 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type65, header_Type65, member_seq_Type65); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type65, type_name_Type65.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type65 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type65 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type65", type_ids_Type65); - if (return_code_Type65 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type65: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep65 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type65", type_ids_dep65); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep65) + { + ::register_Type65_type_identifier(type_ids_dep65); + } + StructMemberFlag member_flags_dep65 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep65; MemberId member_id_dep65 = 0x00000041; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep65 = TypeObjectUtils::build_common_struct_member(member_id_dep65, member_flags_dep65, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep65 = TypeObjectUtils::build_common_struct_member(member_id_dep65, member_flags_dep65, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep65_ec {false}; + CommonStructMember common_dep65 {TypeObjectUtils::build_common_struct_member(member_id_dep65, member_flags_dep65, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep65, common_dep65_ec))}; + if (!common_dep65_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep65 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep65 member TypeIdentifier inconsistent."); return; } MemberName name_dep65 = "dep65"; @@ -19652,150 +7635,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep65); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep66; + ReturnCode_t return_code_dep66 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep66 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type66", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type66 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type66; - TypeIdentifierPair type_ids_Type66; - QualifiedTypeName type_name_Type66 = "Type66"; - eprosima::fastcdr::optional type_ann_builtin_Type66; - eprosima::fastcdr::optional ann_custom_Type66; - CompleteTypeDetail detail_Type66 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type66, ann_custom_Type66, type_name_Type66.to_string()); - CompleteStructHeader header_Type66; - header_Type66 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type66); - CompleteStructMemberSeq member_seq_Type66; - { - return_code_Type66 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type66); - - if (return_code_Type66 != 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_Type66.type_identifier1()._d() || TK_NONE == type_ids_Type66.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type66.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type66.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type66.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type66.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type66.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type66.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type66.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type66.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type66.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type66.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type66.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type66.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type66.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type66.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type66.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type66.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type66.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type66.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type66.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type66.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type66.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type66.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type66.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type66.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_Type66.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type66); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type66, member_index); - } - CompleteStructType struct_type_Type66 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type66, header_Type66, member_seq_Type66); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type66, type_name_Type66.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type66 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type66 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type66", type_ids_Type66); - if (return_code_Type66 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type66: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep66 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type66", type_ids_dep66); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep66) + { + ::register_Type66_type_identifier(type_ids_dep66); + } + StructMemberFlag member_flags_dep66 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep66; MemberId member_id_dep66 = 0x00000042; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep66 = TypeObjectUtils::build_common_struct_member(member_id_dep66, member_flags_dep66, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep66 = TypeObjectUtils::build_common_struct_member(member_id_dep66, member_flags_dep66, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep66_ec {false}; + CommonStructMember common_dep66 {TypeObjectUtils::build_common_struct_member(member_id_dep66, member_flags_dep66, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep66, common_dep66_ec))}; + if (!common_dep66_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep66 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep66 member TypeIdentifier inconsistent."); return; } MemberName name_dep66 = "dep66"; @@ -19806,150 +7663,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep66); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep67; + ReturnCode_t return_code_dep67 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep67 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type67", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type67 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type67; - TypeIdentifierPair type_ids_Type67; - QualifiedTypeName type_name_Type67 = "Type67"; - eprosima::fastcdr::optional type_ann_builtin_Type67; - eprosima::fastcdr::optional ann_custom_Type67; - CompleteTypeDetail detail_Type67 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type67, ann_custom_Type67, type_name_Type67.to_string()); - CompleteStructHeader header_Type67; - header_Type67 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type67); - CompleteStructMemberSeq member_seq_Type67; - { - return_code_Type67 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type67); - - if (return_code_Type67 != 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_Type67.type_identifier1()._d() || TK_NONE == type_ids_Type67.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type67.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type67.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type67.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type67.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type67.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type67.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type67.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type67.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type67.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type67.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type67.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type67.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type67.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type67.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type67.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type67.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type67.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type67.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type67.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type67.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type67.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type67.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type67.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type67.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_Type67.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type67); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type67, member_index); - } - CompleteStructType struct_type_Type67 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type67, header_Type67, member_seq_Type67); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type67, type_name_Type67.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type67 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type67 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type67", type_ids_Type67); - if (return_code_Type67 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type67: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep67 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type67", type_ids_dep67); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep67) + { + ::register_Type67_type_identifier(type_ids_dep67); + } + StructMemberFlag member_flags_dep67 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep67; MemberId member_id_dep67 = 0x00000043; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep67 = TypeObjectUtils::build_common_struct_member(member_id_dep67, member_flags_dep67, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep67 = TypeObjectUtils::build_common_struct_member(member_id_dep67, member_flags_dep67, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep67_ec {false}; + CommonStructMember common_dep67 {TypeObjectUtils::build_common_struct_member(member_id_dep67, member_flags_dep67, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep67, common_dep67_ec))}; + if (!common_dep67_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep67 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep67 member TypeIdentifier inconsistent."); return; } MemberName name_dep67 = "dep67"; @@ -19960,150 +7691,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep67); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep68; + ReturnCode_t return_code_dep68 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep68 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type68", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type68 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type68; - TypeIdentifierPair type_ids_Type68; - QualifiedTypeName type_name_Type68 = "Type68"; - eprosima::fastcdr::optional type_ann_builtin_Type68; - eprosima::fastcdr::optional ann_custom_Type68; - CompleteTypeDetail detail_Type68 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type68, ann_custom_Type68, type_name_Type68.to_string()); - CompleteStructHeader header_Type68; - header_Type68 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type68); - CompleteStructMemberSeq member_seq_Type68; - { - return_code_Type68 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type68); - - if (return_code_Type68 != 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_Type68.type_identifier1()._d() || TK_NONE == type_ids_Type68.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type68.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type68.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type68.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type68.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type68.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type68.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type68.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type68.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type68.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type68.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type68.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type68.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type68.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type68.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type68.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type68.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type68.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type68.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type68.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type68.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type68.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type68.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type68.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type68.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_Type68.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type68); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type68, member_index); - } - CompleteStructType struct_type_Type68 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type68, header_Type68, member_seq_Type68); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type68, type_name_Type68.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type68 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type68 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type68", type_ids_Type68); - if (return_code_Type68 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type68: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep68 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type68", type_ids_dep68); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep68) + { + ::register_Type68_type_identifier(type_ids_dep68); + } + StructMemberFlag member_flags_dep68 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep68; MemberId member_id_dep68 = 0x00000044; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep68 = TypeObjectUtils::build_common_struct_member(member_id_dep68, member_flags_dep68, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep68 = TypeObjectUtils::build_common_struct_member(member_id_dep68, member_flags_dep68, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep68_ec {false}; + CommonStructMember common_dep68 {TypeObjectUtils::build_common_struct_member(member_id_dep68, member_flags_dep68, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep68, common_dep68_ec))}; + if (!common_dep68_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep68 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep68 member TypeIdentifier inconsistent."); return; } MemberName name_dep68 = "dep68"; @@ -20114,150 +7719,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep68); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep69; + ReturnCode_t return_code_dep69 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep69 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type69", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type69 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type69; - TypeIdentifierPair type_ids_Type69; - QualifiedTypeName type_name_Type69 = "Type69"; - eprosima::fastcdr::optional type_ann_builtin_Type69; - eprosima::fastcdr::optional ann_custom_Type69; - CompleteTypeDetail detail_Type69 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type69, ann_custom_Type69, type_name_Type69.to_string()); - CompleteStructHeader header_Type69; - header_Type69 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type69); - CompleteStructMemberSeq member_seq_Type69; - { - return_code_Type69 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type69); - - if (return_code_Type69 != 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_Type69.type_identifier1()._d() || TK_NONE == type_ids_Type69.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type69.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type69.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type69.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type69.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type69.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type69.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type69.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type69.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type69.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type69.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type69.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type69.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type69.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type69.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type69.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type69.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type69.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type69.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type69.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type69.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type69.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type69.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type69.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type69.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_Type69.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type69); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type69, member_index); - } - CompleteStructType struct_type_Type69 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type69, header_Type69, member_seq_Type69); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type69, type_name_Type69.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type69 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type69 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type69", type_ids_Type69); - if (return_code_Type69 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type69: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep69 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type69", type_ids_dep69); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep69) + { + ::register_Type69_type_identifier(type_ids_dep69); + } + StructMemberFlag member_flags_dep69 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep69; MemberId member_id_dep69 = 0x00000045; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep69 = TypeObjectUtils::build_common_struct_member(member_id_dep69, member_flags_dep69, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep69 = TypeObjectUtils::build_common_struct_member(member_id_dep69, member_flags_dep69, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep69_ec {false}; + CommonStructMember common_dep69 {TypeObjectUtils::build_common_struct_member(member_id_dep69, member_flags_dep69, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep69, common_dep69_ec))}; + if (!common_dep69_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep69 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep69 member TypeIdentifier inconsistent."); return; } MemberName name_dep69 = "dep69"; @@ -20268,150 +7747,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep69); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep70; + ReturnCode_t return_code_dep70 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep70 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type70", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type70 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type70; - TypeIdentifierPair type_ids_Type70; - QualifiedTypeName type_name_Type70 = "Type70"; - eprosima::fastcdr::optional type_ann_builtin_Type70; - eprosima::fastcdr::optional ann_custom_Type70; - CompleteTypeDetail detail_Type70 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type70, ann_custom_Type70, type_name_Type70.to_string()); - CompleteStructHeader header_Type70; - header_Type70 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type70); - CompleteStructMemberSeq member_seq_Type70; - { - return_code_Type70 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type70); - - if (return_code_Type70 != 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_Type70.type_identifier1()._d() || TK_NONE == type_ids_Type70.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type70.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type70.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type70.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type70.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type70.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type70.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type70.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type70.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type70.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type70.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type70.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type70.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type70.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type70.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type70.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type70.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type70.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type70.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type70.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type70.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type70.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type70.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type70.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type70.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_Type70.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type70); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type70, member_index); - } - CompleteStructType struct_type_Type70 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type70, header_Type70, member_seq_Type70); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type70, type_name_Type70.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type70 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type70 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type70", type_ids_Type70); - if (return_code_Type70 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type70: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep70 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type70", type_ids_dep70); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep70) + { + ::register_Type70_type_identifier(type_ids_dep70); + } + StructMemberFlag member_flags_dep70 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep70; MemberId member_id_dep70 = 0x00000046; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep70 = TypeObjectUtils::build_common_struct_member(member_id_dep70, member_flags_dep70, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep70 = TypeObjectUtils::build_common_struct_member(member_id_dep70, member_flags_dep70, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep70_ec {false}; + CommonStructMember common_dep70 {TypeObjectUtils::build_common_struct_member(member_id_dep70, member_flags_dep70, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep70, common_dep70_ec))}; + if (!common_dep70_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep70 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep70 member TypeIdentifier inconsistent."); return; } MemberName name_dep70 = "dep70"; @@ -20422,150 +7775,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep70); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep71; + ReturnCode_t return_code_dep71 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep71 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type71", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type71 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type71; - TypeIdentifierPair type_ids_Type71; - QualifiedTypeName type_name_Type71 = "Type71"; - eprosima::fastcdr::optional type_ann_builtin_Type71; - eprosima::fastcdr::optional ann_custom_Type71; - CompleteTypeDetail detail_Type71 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type71, ann_custom_Type71, type_name_Type71.to_string()); - CompleteStructHeader header_Type71; - header_Type71 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type71); - CompleteStructMemberSeq member_seq_Type71; - { - return_code_Type71 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type71); - - if (return_code_Type71 != 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_Type71.type_identifier1()._d() || TK_NONE == type_ids_Type71.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type71.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type71.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type71.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type71.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type71.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type71.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type71.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type71.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type71.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type71.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type71.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type71.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type71.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type71.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type71.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type71.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type71.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type71.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type71.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type71.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type71.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type71.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type71.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type71.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_Type71.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type71); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type71, member_index); - } - CompleteStructType struct_type_Type71 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type71, header_Type71, member_seq_Type71); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type71, type_name_Type71.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type71 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type71 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type71", type_ids_Type71); - if (return_code_Type71 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type71: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep71 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type71", type_ids_dep71); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep71) + { + ::register_Type71_type_identifier(type_ids_dep71); + } + StructMemberFlag member_flags_dep71 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep71; MemberId member_id_dep71 = 0x00000047; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep71 = TypeObjectUtils::build_common_struct_member(member_id_dep71, member_flags_dep71, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep71 = TypeObjectUtils::build_common_struct_member(member_id_dep71, member_flags_dep71, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep71_ec {false}; + CommonStructMember common_dep71 {TypeObjectUtils::build_common_struct_member(member_id_dep71, member_flags_dep71, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep71, common_dep71_ec))}; + if (!common_dep71_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep71 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep71 member TypeIdentifier inconsistent."); return; } MemberName name_dep71 = "dep71"; @@ -20576,150 +7803,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep71); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep72; + ReturnCode_t return_code_dep72 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep72 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type72", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type72 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type72; - TypeIdentifierPair type_ids_Type72; - QualifiedTypeName type_name_Type72 = "Type72"; - eprosima::fastcdr::optional type_ann_builtin_Type72; - eprosima::fastcdr::optional ann_custom_Type72; - CompleteTypeDetail detail_Type72 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type72, ann_custom_Type72, type_name_Type72.to_string()); - CompleteStructHeader header_Type72; - header_Type72 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type72); - CompleteStructMemberSeq member_seq_Type72; - { - return_code_Type72 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type72); - - if (return_code_Type72 != 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_Type72.type_identifier1()._d() || TK_NONE == type_ids_Type72.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type72.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type72.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type72.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type72.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type72.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type72.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type72.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type72.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type72.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type72.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type72.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type72.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type72.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type72.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type72.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type72.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type72.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type72.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type72.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type72.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type72.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type72.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type72.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type72.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_Type72.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type72); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type72, member_index); - } - CompleteStructType struct_type_Type72 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type72, header_Type72, member_seq_Type72); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type72, type_name_Type72.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type72 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type72 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type72", type_ids_Type72); - if (return_code_Type72 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type72: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep72 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type72", type_ids_dep72); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep72) + { + ::register_Type72_type_identifier(type_ids_dep72); + } + StructMemberFlag member_flags_dep72 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep72; MemberId member_id_dep72 = 0x00000048; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep72 = TypeObjectUtils::build_common_struct_member(member_id_dep72, member_flags_dep72, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep72 = TypeObjectUtils::build_common_struct_member(member_id_dep72, member_flags_dep72, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep72_ec {false}; + CommonStructMember common_dep72 {TypeObjectUtils::build_common_struct_member(member_id_dep72, member_flags_dep72, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep72, common_dep72_ec))}; + if (!common_dep72_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep72 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep72 member TypeIdentifier inconsistent."); return; } MemberName name_dep72 = "dep72"; @@ -20730,150 +7831,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep72); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep73; + ReturnCode_t return_code_dep73 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep73 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type73", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type73 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type73; - TypeIdentifierPair type_ids_Type73; - QualifiedTypeName type_name_Type73 = "Type73"; - eprosima::fastcdr::optional type_ann_builtin_Type73; - eprosima::fastcdr::optional ann_custom_Type73; - CompleteTypeDetail detail_Type73 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type73, ann_custom_Type73, type_name_Type73.to_string()); - CompleteStructHeader header_Type73; - header_Type73 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type73); - CompleteStructMemberSeq member_seq_Type73; - { - return_code_Type73 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type73); - - if (return_code_Type73 != 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_Type73.type_identifier1()._d() || TK_NONE == type_ids_Type73.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type73.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type73.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type73.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type73.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type73.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type73.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type73.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type73.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type73.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type73.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type73.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type73.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type73.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type73.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type73.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type73.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type73.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type73.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type73.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type73.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type73.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type73.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type73.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type73.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_Type73.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type73); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type73, member_index); - } - CompleteStructType struct_type_Type73 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type73, header_Type73, member_seq_Type73); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type73, type_name_Type73.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type73 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type73 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type73", type_ids_Type73); - if (return_code_Type73 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type73: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep73 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type73", type_ids_dep73); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep73) + { + ::register_Type73_type_identifier(type_ids_dep73); + } + StructMemberFlag member_flags_dep73 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep73; MemberId member_id_dep73 = 0x00000049; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep73 = TypeObjectUtils::build_common_struct_member(member_id_dep73, member_flags_dep73, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep73 = TypeObjectUtils::build_common_struct_member(member_id_dep73, member_flags_dep73, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep73_ec {false}; + CommonStructMember common_dep73 {TypeObjectUtils::build_common_struct_member(member_id_dep73, member_flags_dep73, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep73, common_dep73_ec))}; + if (!common_dep73_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep73 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep73 member TypeIdentifier inconsistent."); return; } MemberName name_dep73 = "dep73"; @@ -20884,150 +7859,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep73); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep74; + ReturnCode_t return_code_dep74 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep74 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type74", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type74 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type74; - TypeIdentifierPair type_ids_Type74; - QualifiedTypeName type_name_Type74 = "Type74"; - eprosima::fastcdr::optional type_ann_builtin_Type74; - eprosima::fastcdr::optional ann_custom_Type74; - CompleteTypeDetail detail_Type74 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type74, ann_custom_Type74, type_name_Type74.to_string()); - CompleteStructHeader header_Type74; - header_Type74 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type74); - CompleteStructMemberSeq member_seq_Type74; - { - return_code_Type74 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type74); - - if (return_code_Type74 != 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_Type74.type_identifier1()._d() || TK_NONE == type_ids_Type74.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type74.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type74.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type74.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type74.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type74.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type74.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type74.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type74.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type74.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type74.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type74.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type74.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type74.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type74.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type74.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type74.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type74.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type74.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type74.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type74.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type74.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type74.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type74.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type74.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_Type74.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type74); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type74, member_index); - } - CompleteStructType struct_type_Type74 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type74, header_Type74, member_seq_Type74); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type74, type_name_Type74.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type74 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type74 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type74", type_ids_Type74); - if (return_code_Type74 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type74: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep74 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type74", type_ids_dep74); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep74) + { + ::register_Type74_type_identifier(type_ids_dep74); + } + StructMemberFlag member_flags_dep74 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep74; MemberId member_id_dep74 = 0x0000004a; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep74 = TypeObjectUtils::build_common_struct_member(member_id_dep74, member_flags_dep74, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep74 = TypeObjectUtils::build_common_struct_member(member_id_dep74, member_flags_dep74, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep74_ec {false}; + CommonStructMember common_dep74 {TypeObjectUtils::build_common_struct_member(member_id_dep74, member_flags_dep74, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep74, common_dep74_ec))}; + if (!common_dep74_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep74 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep74 member TypeIdentifier inconsistent."); return; } MemberName name_dep74 = "dep74"; @@ -21038,150 +7887,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep74); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep75; + ReturnCode_t return_code_dep75 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep75 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type75", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type75 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type75; - TypeIdentifierPair type_ids_Type75; - QualifiedTypeName type_name_Type75 = "Type75"; - eprosima::fastcdr::optional type_ann_builtin_Type75; - eprosima::fastcdr::optional ann_custom_Type75; - CompleteTypeDetail detail_Type75 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type75, ann_custom_Type75, type_name_Type75.to_string()); - CompleteStructHeader header_Type75; - header_Type75 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type75); - CompleteStructMemberSeq member_seq_Type75; - { - return_code_Type75 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type75); - - if (return_code_Type75 != 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_Type75.type_identifier1()._d() || TK_NONE == type_ids_Type75.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type75.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type75.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type75.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type75.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type75.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type75.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type75.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type75.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type75.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type75.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type75.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type75.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type75.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type75.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type75.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type75.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type75.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type75.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type75.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type75.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type75.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type75.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type75.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type75.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_Type75.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type75); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type75, member_index); - } - CompleteStructType struct_type_Type75 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type75, header_Type75, member_seq_Type75); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type75, type_name_Type75.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type75 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type75 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type75", type_ids_Type75); - if (return_code_Type75 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type75: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep75 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type75", type_ids_dep75); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep75) + { + ::register_Type75_type_identifier(type_ids_dep75); + } + StructMemberFlag member_flags_dep75 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep75; MemberId member_id_dep75 = 0x0000004b; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep75 = TypeObjectUtils::build_common_struct_member(member_id_dep75, member_flags_dep75, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep75 = TypeObjectUtils::build_common_struct_member(member_id_dep75, member_flags_dep75, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep75_ec {false}; + CommonStructMember common_dep75 {TypeObjectUtils::build_common_struct_member(member_id_dep75, member_flags_dep75, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep75, common_dep75_ec))}; + if (!common_dep75_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep75 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep75 member TypeIdentifier inconsistent."); return; } MemberName name_dep75 = "dep75"; @@ -21192,150 +7915,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep75); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep76; + ReturnCode_t return_code_dep76 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep76 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type76", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type76 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type76; - TypeIdentifierPair type_ids_Type76; - QualifiedTypeName type_name_Type76 = "Type76"; - eprosima::fastcdr::optional type_ann_builtin_Type76; - eprosima::fastcdr::optional ann_custom_Type76; - CompleteTypeDetail detail_Type76 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type76, ann_custom_Type76, type_name_Type76.to_string()); - CompleteStructHeader header_Type76; - header_Type76 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type76); - CompleteStructMemberSeq member_seq_Type76; - { - return_code_Type76 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type76); - - if (return_code_Type76 != 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_Type76.type_identifier1()._d() || TK_NONE == type_ids_Type76.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type76.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type76.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type76.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type76.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type76.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type76.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type76.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type76.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type76.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type76.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type76.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type76.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type76.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type76.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type76.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type76.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type76.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type76.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type76.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type76.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type76.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type76.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type76.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type76.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_Type76.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type76); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type76, member_index); - } - CompleteStructType struct_type_Type76 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type76, header_Type76, member_seq_Type76); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type76, type_name_Type76.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type76 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type76 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type76", type_ids_Type76); - if (return_code_Type76 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type76: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep76 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type76", type_ids_dep76); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep76) + { + ::register_Type76_type_identifier(type_ids_dep76); + } + StructMemberFlag member_flags_dep76 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep76; MemberId member_id_dep76 = 0x0000004c; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep76 = TypeObjectUtils::build_common_struct_member(member_id_dep76, member_flags_dep76, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep76 = TypeObjectUtils::build_common_struct_member(member_id_dep76, member_flags_dep76, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep76_ec {false}; + CommonStructMember common_dep76 {TypeObjectUtils::build_common_struct_member(member_id_dep76, member_flags_dep76, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep76, common_dep76_ec))}; + if (!common_dep76_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep76 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep76 member TypeIdentifier inconsistent."); return; } MemberName name_dep76 = "dep76"; @@ -21346,150 +7943,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep76); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep77; + ReturnCode_t return_code_dep77 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep77 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type77", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type77 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type77; - TypeIdentifierPair type_ids_Type77; - QualifiedTypeName type_name_Type77 = "Type77"; - eprosima::fastcdr::optional type_ann_builtin_Type77; - eprosima::fastcdr::optional ann_custom_Type77; - CompleteTypeDetail detail_Type77 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type77, ann_custom_Type77, type_name_Type77.to_string()); - CompleteStructHeader header_Type77; - header_Type77 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type77); - CompleteStructMemberSeq member_seq_Type77; - { - return_code_Type77 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type77); - - if (return_code_Type77 != 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_Type77.type_identifier1()._d() || TK_NONE == type_ids_Type77.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type77.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type77.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type77.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type77.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type77.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type77.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type77.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type77.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type77.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type77.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type77.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type77.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type77.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type77.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type77.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type77.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type77.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type77.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type77.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type77.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type77.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type77.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type77.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type77.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_Type77.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type77); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type77, member_index); - } - CompleteStructType struct_type_Type77 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type77, header_Type77, member_seq_Type77); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type77, type_name_Type77.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type77 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type77 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type77", type_ids_Type77); - if (return_code_Type77 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type77: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep77 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type77", type_ids_dep77); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep77) + { + ::register_Type77_type_identifier(type_ids_dep77); + } + StructMemberFlag member_flags_dep77 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep77; MemberId member_id_dep77 = 0x0000004d; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep77 = TypeObjectUtils::build_common_struct_member(member_id_dep77, member_flags_dep77, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep77 = TypeObjectUtils::build_common_struct_member(member_id_dep77, member_flags_dep77, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep77_ec {false}; + CommonStructMember common_dep77 {TypeObjectUtils::build_common_struct_member(member_id_dep77, member_flags_dep77, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep77, common_dep77_ec))}; + if (!common_dep77_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep77 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep77 member TypeIdentifier inconsistent."); return; } MemberName name_dep77 = "dep77"; @@ -21500,150 +7971,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep77); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep78; + ReturnCode_t return_code_dep78 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep78 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type78", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type78 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type78; - TypeIdentifierPair type_ids_Type78; - QualifiedTypeName type_name_Type78 = "Type78"; - eprosima::fastcdr::optional type_ann_builtin_Type78; - eprosima::fastcdr::optional ann_custom_Type78; - CompleteTypeDetail detail_Type78 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type78, ann_custom_Type78, type_name_Type78.to_string()); - CompleteStructHeader header_Type78; - header_Type78 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type78); - CompleteStructMemberSeq member_seq_Type78; - { - return_code_Type78 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type78); - - if (return_code_Type78 != 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_Type78.type_identifier1()._d() || TK_NONE == type_ids_Type78.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type78.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type78.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type78.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type78.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type78.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type78.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type78.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type78.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type78.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type78.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type78.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type78.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type78.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type78.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type78.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type78.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type78.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type78.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type78.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type78.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type78.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type78.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type78.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type78.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_Type78.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type78); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type78, member_index); - } - CompleteStructType struct_type_Type78 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type78, header_Type78, member_seq_Type78); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type78, type_name_Type78.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type78 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type78 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type78", type_ids_Type78); - if (return_code_Type78 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type78: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep78 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type78", type_ids_dep78); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep78) + { + ::register_Type78_type_identifier(type_ids_dep78); + } + StructMemberFlag member_flags_dep78 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep78; MemberId member_id_dep78 = 0x0000004e; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep78 = TypeObjectUtils::build_common_struct_member(member_id_dep78, member_flags_dep78, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep78 = TypeObjectUtils::build_common_struct_member(member_id_dep78, member_flags_dep78, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep78_ec {false}; + CommonStructMember common_dep78 {TypeObjectUtils::build_common_struct_member(member_id_dep78, member_flags_dep78, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep78, common_dep78_ec))}; + if (!common_dep78_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep78 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep78 member TypeIdentifier inconsistent."); return; } MemberName name_dep78 = "dep78"; @@ -21654,150 +7999,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep78); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep79; + ReturnCode_t return_code_dep79 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep79 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type79", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type79 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type79; - TypeIdentifierPair type_ids_Type79; - QualifiedTypeName type_name_Type79 = "Type79"; - eprosima::fastcdr::optional type_ann_builtin_Type79; - eprosima::fastcdr::optional ann_custom_Type79; - CompleteTypeDetail detail_Type79 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type79, ann_custom_Type79, type_name_Type79.to_string()); - CompleteStructHeader header_Type79; - header_Type79 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type79); - CompleteStructMemberSeq member_seq_Type79; - { - return_code_Type79 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type79); - - if (return_code_Type79 != 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_Type79.type_identifier1()._d() || TK_NONE == type_ids_Type79.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type79.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type79.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type79.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type79.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type79.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type79.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type79.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type79.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type79.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type79.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type79.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type79.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type79.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type79.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type79.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type79.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type79.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type79.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type79.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type79.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type79.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type79.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type79.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type79.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_Type79.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type79); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type79, member_index); - } - CompleteStructType struct_type_Type79 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type79, header_Type79, member_seq_Type79); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type79, type_name_Type79.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type79 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type79 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type79", type_ids_Type79); - if (return_code_Type79 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type79: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep79 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type79", type_ids_dep79); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep79) + { + ::register_Type79_type_identifier(type_ids_dep79); + } + StructMemberFlag member_flags_dep79 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep79; MemberId member_id_dep79 = 0x0000004f; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep79 = TypeObjectUtils::build_common_struct_member(member_id_dep79, member_flags_dep79, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep79 = TypeObjectUtils::build_common_struct_member(member_id_dep79, member_flags_dep79, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep79_ec {false}; + CommonStructMember common_dep79 {TypeObjectUtils::build_common_struct_member(member_id_dep79, member_flags_dep79, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep79, common_dep79_ec))}; + if (!common_dep79_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep79 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep79 member TypeIdentifier inconsistent."); return; } MemberName name_dep79 = "dep79"; @@ -21808,150 +8027,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep79); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep80; + ReturnCode_t return_code_dep80 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep80 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type80", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type80 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type80; - TypeIdentifierPair type_ids_Type80; - QualifiedTypeName type_name_Type80 = "Type80"; - eprosima::fastcdr::optional type_ann_builtin_Type80; - eprosima::fastcdr::optional ann_custom_Type80; - CompleteTypeDetail detail_Type80 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type80, ann_custom_Type80, type_name_Type80.to_string()); - CompleteStructHeader header_Type80; - header_Type80 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type80); - CompleteStructMemberSeq member_seq_Type80; - { - return_code_Type80 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type80); - - if (return_code_Type80 != 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_Type80.type_identifier1()._d() || TK_NONE == type_ids_Type80.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type80.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type80.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type80.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type80.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type80.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type80.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type80.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type80.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type80.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type80.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type80.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type80.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type80.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type80.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type80.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type80.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type80.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type80.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type80.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type80.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type80.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type80.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type80.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type80.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_Type80.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type80); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type80, member_index); - } - CompleteStructType struct_type_Type80 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type80, header_Type80, member_seq_Type80); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type80, type_name_Type80.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type80 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type80 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type80", type_ids_Type80); - if (return_code_Type80 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type80: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep80 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type80", type_ids_dep80); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep80) + { + ::register_Type80_type_identifier(type_ids_dep80); + } + StructMemberFlag member_flags_dep80 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep80; MemberId member_id_dep80 = 0x00000050; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep80 = TypeObjectUtils::build_common_struct_member(member_id_dep80, member_flags_dep80, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep80 = TypeObjectUtils::build_common_struct_member(member_id_dep80, member_flags_dep80, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep80_ec {false}; + CommonStructMember common_dep80 {TypeObjectUtils::build_common_struct_member(member_id_dep80, member_flags_dep80, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep80, common_dep80_ec))}; + if (!common_dep80_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep80 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep80 member TypeIdentifier inconsistent."); return; } MemberName name_dep80 = "dep80"; @@ -21962,150 +8055,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep80); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep81; + ReturnCode_t return_code_dep81 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep81 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type81", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type81 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type81; - TypeIdentifierPair type_ids_Type81; - QualifiedTypeName type_name_Type81 = "Type81"; - eprosima::fastcdr::optional type_ann_builtin_Type81; - eprosima::fastcdr::optional ann_custom_Type81; - CompleteTypeDetail detail_Type81 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type81, ann_custom_Type81, type_name_Type81.to_string()); - CompleteStructHeader header_Type81; - header_Type81 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type81); - CompleteStructMemberSeq member_seq_Type81; - { - return_code_Type81 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type81); - - if (return_code_Type81 != 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_Type81.type_identifier1()._d() || TK_NONE == type_ids_Type81.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type81.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type81.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type81.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type81.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type81.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type81.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type81.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type81.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type81.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type81.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type81.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type81.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type81.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type81.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type81.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type81.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type81.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type81.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type81.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type81.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type81.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type81.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type81.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type81.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_Type81.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type81); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type81, member_index); - } - CompleteStructType struct_type_Type81 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type81, header_Type81, member_seq_Type81); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type81, type_name_Type81.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type81 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type81 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type81", type_ids_Type81); - if (return_code_Type81 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type81: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep81 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type81", type_ids_dep81); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep81) + { + ::register_Type81_type_identifier(type_ids_dep81); + } + StructMemberFlag member_flags_dep81 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep81; MemberId member_id_dep81 = 0x00000051; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep81 = TypeObjectUtils::build_common_struct_member(member_id_dep81, member_flags_dep81, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep81 = TypeObjectUtils::build_common_struct_member(member_id_dep81, member_flags_dep81, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep81_ec {false}; + CommonStructMember common_dep81 {TypeObjectUtils::build_common_struct_member(member_id_dep81, member_flags_dep81, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep81, common_dep81_ec))}; + if (!common_dep81_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep81 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep81 member TypeIdentifier inconsistent."); return; } MemberName name_dep81 = "dep81"; @@ -22116,150 +8083,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep81); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep82; + ReturnCode_t return_code_dep82 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep82 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type82", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type82 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type82; - TypeIdentifierPair type_ids_Type82; - QualifiedTypeName type_name_Type82 = "Type82"; - eprosima::fastcdr::optional type_ann_builtin_Type82; - eprosima::fastcdr::optional ann_custom_Type82; - CompleteTypeDetail detail_Type82 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type82, ann_custom_Type82, type_name_Type82.to_string()); - CompleteStructHeader header_Type82; - header_Type82 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type82); - CompleteStructMemberSeq member_seq_Type82; - { - return_code_Type82 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type82); - - if (return_code_Type82 != 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_Type82.type_identifier1()._d() || TK_NONE == type_ids_Type82.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type82.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type82.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type82.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type82.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type82.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type82.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type82.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type82.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type82.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type82.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type82.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type82.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type82.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type82.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type82.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type82.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type82.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type82.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type82.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type82.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type82.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type82.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type82.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type82.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_Type82.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type82); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type82, member_index); - } - CompleteStructType struct_type_Type82 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type82, header_Type82, member_seq_Type82); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type82, type_name_Type82.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type82 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type82 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type82", type_ids_Type82); - if (return_code_Type82 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type82: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep82 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type82", type_ids_dep82); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep82) + { + ::register_Type82_type_identifier(type_ids_dep82); + } + StructMemberFlag member_flags_dep82 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep82; MemberId member_id_dep82 = 0x00000052; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep82 = TypeObjectUtils::build_common_struct_member(member_id_dep82, member_flags_dep82, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep82 = TypeObjectUtils::build_common_struct_member(member_id_dep82, member_flags_dep82, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep82_ec {false}; + CommonStructMember common_dep82 {TypeObjectUtils::build_common_struct_member(member_id_dep82, member_flags_dep82, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep82, common_dep82_ec))}; + if (!common_dep82_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep82 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep82 member TypeIdentifier inconsistent."); return; } MemberName name_dep82 = "dep82"; @@ -22270,150 +8111,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep82); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep83; + ReturnCode_t return_code_dep83 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep83 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type83", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type83 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type83; - TypeIdentifierPair type_ids_Type83; - QualifiedTypeName type_name_Type83 = "Type83"; - eprosima::fastcdr::optional type_ann_builtin_Type83; - eprosima::fastcdr::optional ann_custom_Type83; - CompleteTypeDetail detail_Type83 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type83, ann_custom_Type83, type_name_Type83.to_string()); - CompleteStructHeader header_Type83; - header_Type83 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type83); - CompleteStructMemberSeq member_seq_Type83; - { - return_code_Type83 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type83); - - if (return_code_Type83 != 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_Type83.type_identifier1()._d() || TK_NONE == type_ids_Type83.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type83.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type83.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type83.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type83.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type83.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type83.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type83.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type83.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type83.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type83.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type83.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type83.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type83.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type83.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type83.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type83.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type83.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type83.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type83.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type83.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type83.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type83.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type83.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type83.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_Type83.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type83); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type83, member_index); - } - CompleteStructType struct_type_Type83 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type83, header_Type83, member_seq_Type83); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type83, type_name_Type83.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type83 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type83 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type83", type_ids_Type83); - if (return_code_Type83 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type83: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep83 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type83", type_ids_dep83); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep83) + { + ::register_Type83_type_identifier(type_ids_dep83); + } + StructMemberFlag member_flags_dep83 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep83; MemberId member_id_dep83 = 0x00000053; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep83 = TypeObjectUtils::build_common_struct_member(member_id_dep83, member_flags_dep83, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep83 = TypeObjectUtils::build_common_struct_member(member_id_dep83, member_flags_dep83, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep83_ec {false}; + CommonStructMember common_dep83 {TypeObjectUtils::build_common_struct_member(member_id_dep83, member_flags_dep83, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep83, common_dep83_ec))}; + if (!common_dep83_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep83 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep83 member TypeIdentifier inconsistent."); return; } MemberName name_dep83 = "dep83"; @@ -22424,150 +8139,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep83); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep84; + ReturnCode_t return_code_dep84 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep84 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type84", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type84 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type84; - TypeIdentifierPair type_ids_Type84; - QualifiedTypeName type_name_Type84 = "Type84"; - eprosima::fastcdr::optional type_ann_builtin_Type84; - eprosima::fastcdr::optional ann_custom_Type84; - CompleteTypeDetail detail_Type84 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type84, ann_custom_Type84, type_name_Type84.to_string()); - CompleteStructHeader header_Type84; - header_Type84 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type84); - CompleteStructMemberSeq member_seq_Type84; - { - return_code_Type84 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type84); - - if (return_code_Type84 != 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_Type84.type_identifier1()._d() || TK_NONE == type_ids_Type84.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type84.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type84.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type84.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type84.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type84.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type84.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type84.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type84.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type84.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type84.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type84.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type84.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type84.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type84.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type84.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type84.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type84.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type84.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type84.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type84.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type84.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type84.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type84.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type84.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_Type84.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type84); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type84, member_index); - } - CompleteStructType struct_type_Type84 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type84, header_Type84, member_seq_Type84); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type84, type_name_Type84.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type84 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type84 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type84", type_ids_Type84); - if (return_code_Type84 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type84: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep84 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type84", type_ids_dep84); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep84) + { + ::register_Type84_type_identifier(type_ids_dep84); + } + StructMemberFlag member_flags_dep84 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep84; MemberId member_id_dep84 = 0x00000054; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep84 = TypeObjectUtils::build_common_struct_member(member_id_dep84, member_flags_dep84, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep84 = TypeObjectUtils::build_common_struct_member(member_id_dep84, member_flags_dep84, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep84_ec {false}; + CommonStructMember common_dep84 {TypeObjectUtils::build_common_struct_member(member_id_dep84, member_flags_dep84, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep84, common_dep84_ec))}; + if (!common_dep84_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep84 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep84 member TypeIdentifier inconsistent."); return; } MemberName name_dep84 = "dep84"; @@ -22578,150 +8167,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep84); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep85; + ReturnCode_t return_code_dep85 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep85 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type85", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type85 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type85; - TypeIdentifierPair type_ids_Type85; - QualifiedTypeName type_name_Type85 = "Type85"; - eprosima::fastcdr::optional type_ann_builtin_Type85; - eprosima::fastcdr::optional ann_custom_Type85; - CompleteTypeDetail detail_Type85 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type85, ann_custom_Type85, type_name_Type85.to_string()); - CompleteStructHeader header_Type85; - header_Type85 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type85); - CompleteStructMemberSeq member_seq_Type85; - { - return_code_Type85 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type85); - - if (return_code_Type85 != 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_Type85.type_identifier1()._d() || TK_NONE == type_ids_Type85.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type85.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type85.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type85.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type85.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type85.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type85.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type85.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type85.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type85.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type85.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type85.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type85.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type85.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type85.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type85.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type85.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type85.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type85.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type85.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type85.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type85.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type85.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type85.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type85.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_Type85.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type85); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type85, member_index); - } - CompleteStructType struct_type_Type85 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type85, header_Type85, member_seq_Type85); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type85, type_name_Type85.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type85 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type85 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type85", type_ids_Type85); - if (return_code_Type85 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type85: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep85 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type85", type_ids_dep85); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep85) + { + ::register_Type85_type_identifier(type_ids_dep85); + } + StructMemberFlag member_flags_dep85 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep85; MemberId member_id_dep85 = 0x00000055; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep85 = TypeObjectUtils::build_common_struct_member(member_id_dep85, member_flags_dep85, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep85 = TypeObjectUtils::build_common_struct_member(member_id_dep85, member_flags_dep85, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep85_ec {false}; + CommonStructMember common_dep85 {TypeObjectUtils::build_common_struct_member(member_id_dep85, member_flags_dep85, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep85, common_dep85_ec))}; + if (!common_dep85_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep85 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep85 member TypeIdentifier inconsistent."); return; } MemberName name_dep85 = "dep85"; @@ -22732,150 +8195,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep85); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep86; + ReturnCode_t return_code_dep86 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep86 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type86", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type86 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type86; - TypeIdentifierPair type_ids_Type86; - QualifiedTypeName type_name_Type86 = "Type86"; - eprosima::fastcdr::optional type_ann_builtin_Type86; - eprosima::fastcdr::optional ann_custom_Type86; - CompleteTypeDetail detail_Type86 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type86, ann_custom_Type86, type_name_Type86.to_string()); - CompleteStructHeader header_Type86; - header_Type86 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type86); - CompleteStructMemberSeq member_seq_Type86; - { - return_code_Type86 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type86); - - if (return_code_Type86 != 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_Type86.type_identifier1()._d() || TK_NONE == type_ids_Type86.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type86.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type86.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type86.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type86.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type86.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type86.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type86.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type86.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type86.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type86.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type86.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type86.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type86.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type86.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type86.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type86.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type86.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type86.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type86.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type86.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type86.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type86.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type86.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type86.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_Type86.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type86); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type86, member_index); - } - CompleteStructType struct_type_Type86 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type86, header_Type86, member_seq_Type86); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type86, type_name_Type86.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type86 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type86 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type86", type_ids_Type86); - if (return_code_Type86 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type86: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep86 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type86", type_ids_dep86); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep86) + { + ::register_Type86_type_identifier(type_ids_dep86); + } + StructMemberFlag member_flags_dep86 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep86; MemberId member_id_dep86 = 0x00000056; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep86 = TypeObjectUtils::build_common_struct_member(member_id_dep86, member_flags_dep86, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep86 = TypeObjectUtils::build_common_struct_member(member_id_dep86, member_flags_dep86, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep86_ec {false}; + CommonStructMember common_dep86 {TypeObjectUtils::build_common_struct_member(member_id_dep86, member_flags_dep86, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep86, common_dep86_ec))}; + if (!common_dep86_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep86 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep86 member TypeIdentifier inconsistent."); return; } MemberName name_dep86 = "dep86"; @@ -22886,150 +8223,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep86); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep87; + ReturnCode_t return_code_dep87 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep87 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type87", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type87 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type87; - TypeIdentifierPair type_ids_Type87; - QualifiedTypeName type_name_Type87 = "Type87"; - eprosima::fastcdr::optional type_ann_builtin_Type87; - eprosima::fastcdr::optional ann_custom_Type87; - CompleteTypeDetail detail_Type87 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type87, ann_custom_Type87, type_name_Type87.to_string()); - CompleteStructHeader header_Type87; - header_Type87 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type87); - CompleteStructMemberSeq member_seq_Type87; - { - return_code_Type87 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type87); - - if (return_code_Type87 != 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_Type87.type_identifier1()._d() || TK_NONE == type_ids_Type87.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type87.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type87.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type87.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type87.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type87.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type87.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type87.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type87.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type87.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type87.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type87.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type87.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type87.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type87.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type87.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type87.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type87.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type87.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type87.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type87.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type87.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type87.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type87.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type87.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_Type87.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type87); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type87, member_index); - } - CompleteStructType struct_type_Type87 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type87, header_Type87, member_seq_Type87); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type87, type_name_Type87.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type87 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type87 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type87", type_ids_Type87); - if (return_code_Type87 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type87: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep87 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type87", type_ids_dep87); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep87) + { + ::register_Type87_type_identifier(type_ids_dep87); + } + StructMemberFlag member_flags_dep87 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep87; MemberId member_id_dep87 = 0x00000057; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep87 = TypeObjectUtils::build_common_struct_member(member_id_dep87, member_flags_dep87, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep87 = TypeObjectUtils::build_common_struct_member(member_id_dep87, member_flags_dep87, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep87_ec {false}; + CommonStructMember common_dep87 {TypeObjectUtils::build_common_struct_member(member_id_dep87, member_flags_dep87, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep87, common_dep87_ec))}; + if (!common_dep87_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep87 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep87 member TypeIdentifier inconsistent."); return; } MemberName name_dep87 = "dep87"; @@ -23040,150 +8251,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep87); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep88; + ReturnCode_t return_code_dep88 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep88 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type88", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type88 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type88; - TypeIdentifierPair type_ids_Type88; - QualifiedTypeName type_name_Type88 = "Type88"; - eprosima::fastcdr::optional type_ann_builtin_Type88; - eprosima::fastcdr::optional ann_custom_Type88; - CompleteTypeDetail detail_Type88 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type88, ann_custom_Type88, type_name_Type88.to_string()); - CompleteStructHeader header_Type88; - header_Type88 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type88); - CompleteStructMemberSeq member_seq_Type88; - { - return_code_Type88 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type88); - - if (return_code_Type88 != 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_Type88.type_identifier1()._d() || TK_NONE == type_ids_Type88.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type88.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type88.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type88.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type88.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type88.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type88.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type88.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type88.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type88.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type88.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type88.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type88.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type88.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type88.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type88.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type88.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type88.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type88.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type88.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type88.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type88.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type88.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type88.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type88.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_Type88.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type88); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type88, member_index); - } - CompleteStructType struct_type_Type88 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type88, header_Type88, member_seq_Type88); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type88, type_name_Type88.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type88 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type88 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type88", type_ids_Type88); - if (return_code_Type88 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type88: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep88 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type88", type_ids_dep88); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep88) + { + ::register_Type88_type_identifier(type_ids_dep88); + } + StructMemberFlag member_flags_dep88 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep88; MemberId member_id_dep88 = 0x00000058; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep88 = TypeObjectUtils::build_common_struct_member(member_id_dep88, member_flags_dep88, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep88 = TypeObjectUtils::build_common_struct_member(member_id_dep88, member_flags_dep88, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep88_ec {false}; + CommonStructMember common_dep88 {TypeObjectUtils::build_common_struct_member(member_id_dep88, member_flags_dep88, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep88, common_dep88_ec))}; + if (!common_dep88_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep88 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep88 member TypeIdentifier inconsistent."); return; } MemberName name_dep88 = "dep88"; @@ -23194,150 +8279,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep88); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep89; + ReturnCode_t return_code_dep89 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep89 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type89", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type89 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type89; - TypeIdentifierPair type_ids_Type89; - QualifiedTypeName type_name_Type89 = "Type89"; - eprosima::fastcdr::optional type_ann_builtin_Type89; - eprosima::fastcdr::optional ann_custom_Type89; - CompleteTypeDetail detail_Type89 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type89, ann_custom_Type89, type_name_Type89.to_string()); - CompleteStructHeader header_Type89; - header_Type89 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type89); - CompleteStructMemberSeq member_seq_Type89; - { - return_code_Type89 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type89); - - if (return_code_Type89 != 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_Type89.type_identifier1()._d() || TK_NONE == type_ids_Type89.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type89.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type89.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type89.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type89.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type89.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type89.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type89.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type89.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type89.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type89.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type89.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type89.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type89.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type89.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type89.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type89.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type89.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type89.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type89.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type89.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type89.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type89.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type89.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type89.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_Type89.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type89); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type89, member_index); - } - CompleteStructType struct_type_Type89 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type89, header_Type89, member_seq_Type89); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type89, type_name_Type89.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type89 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type89 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type89", type_ids_Type89); - if (return_code_Type89 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type89: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep89 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type89", type_ids_dep89); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep89) + { + ::register_Type89_type_identifier(type_ids_dep89); + } + StructMemberFlag member_flags_dep89 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep89; MemberId member_id_dep89 = 0x00000059; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep89 = TypeObjectUtils::build_common_struct_member(member_id_dep89, member_flags_dep89, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep89 = TypeObjectUtils::build_common_struct_member(member_id_dep89, member_flags_dep89, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep89_ec {false}; + CommonStructMember common_dep89 {TypeObjectUtils::build_common_struct_member(member_id_dep89, member_flags_dep89, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep89, common_dep89_ec))}; + if (!common_dep89_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep89 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep89 member TypeIdentifier inconsistent."); return; } MemberName name_dep89 = "dep89"; @@ -23348,150 +8307,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep89); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep90; + ReturnCode_t return_code_dep90 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep90 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type90", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type90 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type90; - TypeIdentifierPair type_ids_Type90; - QualifiedTypeName type_name_Type90 = "Type90"; - eprosima::fastcdr::optional type_ann_builtin_Type90; - eprosima::fastcdr::optional ann_custom_Type90; - CompleteTypeDetail detail_Type90 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type90, ann_custom_Type90, type_name_Type90.to_string()); - CompleteStructHeader header_Type90; - header_Type90 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type90); - CompleteStructMemberSeq member_seq_Type90; - { - return_code_Type90 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type90); - - if (return_code_Type90 != 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_Type90.type_identifier1()._d() || TK_NONE == type_ids_Type90.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type90.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type90.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type90.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type90.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type90.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type90.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type90.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type90.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type90.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type90.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type90.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type90.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type90.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type90.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type90.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type90.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type90.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type90.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type90.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type90.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type90.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type90.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type90.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type90.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_Type90.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type90); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type90, member_index); - } - CompleteStructType struct_type_Type90 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type90, header_Type90, member_seq_Type90); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type90, type_name_Type90.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type90 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type90 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type90", type_ids_Type90); - if (return_code_Type90 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type90: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep90 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type90", type_ids_dep90); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep90) + { + ::register_Type90_type_identifier(type_ids_dep90); + } + StructMemberFlag member_flags_dep90 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep90; MemberId member_id_dep90 = 0x0000005a; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep90 = TypeObjectUtils::build_common_struct_member(member_id_dep90, member_flags_dep90, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep90 = TypeObjectUtils::build_common_struct_member(member_id_dep90, member_flags_dep90, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep90_ec {false}; + CommonStructMember common_dep90 {TypeObjectUtils::build_common_struct_member(member_id_dep90, member_flags_dep90, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep90, common_dep90_ec))}; + if (!common_dep90_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep90 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep90 member TypeIdentifier inconsistent."); return; } MemberName name_dep90 = "dep90"; @@ -23502,150 +8335,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep90); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep91; + ReturnCode_t return_code_dep91 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep91 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type91", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type91 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type91; - TypeIdentifierPair type_ids_Type91; - QualifiedTypeName type_name_Type91 = "Type91"; - eprosima::fastcdr::optional type_ann_builtin_Type91; - eprosima::fastcdr::optional ann_custom_Type91; - CompleteTypeDetail detail_Type91 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type91, ann_custom_Type91, type_name_Type91.to_string()); - CompleteStructHeader header_Type91; - header_Type91 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type91); - CompleteStructMemberSeq member_seq_Type91; - { - return_code_Type91 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type91); - - if (return_code_Type91 != 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_Type91.type_identifier1()._d() || TK_NONE == type_ids_Type91.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type91.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type91.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type91.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type91.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type91.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type91.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type91.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type91.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type91.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type91.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type91.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type91.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type91.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type91.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type91.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type91.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type91.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type91.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type91.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type91.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type91.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type91.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type91.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type91.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_Type91.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type91); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type91, member_index); - } - CompleteStructType struct_type_Type91 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type91, header_Type91, member_seq_Type91); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type91, type_name_Type91.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type91 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type91 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type91", type_ids_Type91); - if (return_code_Type91 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type91: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep91 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type91", type_ids_dep91); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep91) + { + ::register_Type91_type_identifier(type_ids_dep91); + } + StructMemberFlag member_flags_dep91 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep91; MemberId member_id_dep91 = 0x0000005b; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep91 = TypeObjectUtils::build_common_struct_member(member_id_dep91, member_flags_dep91, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep91 = TypeObjectUtils::build_common_struct_member(member_id_dep91, member_flags_dep91, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep91_ec {false}; + CommonStructMember common_dep91 {TypeObjectUtils::build_common_struct_member(member_id_dep91, member_flags_dep91, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep91, common_dep91_ec))}; + if (!common_dep91_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep91 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep91 member TypeIdentifier inconsistent."); return; } MemberName name_dep91 = "dep91"; @@ -23656,150 +8363,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep91); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep92; + ReturnCode_t return_code_dep92 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep92 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type92", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type92 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type92; - TypeIdentifierPair type_ids_Type92; - QualifiedTypeName type_name_Type92 = "Type92"; - eprosima::fastcdr::optional type_ann_builtin_Type92; - eprosima::fastcdr::optional ann_custom_Type92; - CompleteTypeDetail detail_Type92 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type92, ann_custom_Type92, type_name_Type92.to_string()); - CompleteStructHeader header_Type92; - header_Type92 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type92); - CompleteStructMemberSeq member_seq_Type92; - { - return_code_Type92 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type92); - - if (return_code_Type92 != 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_Type92.type_identifier1()._d() || TK_NONE == type_ids_Type92.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type92.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type92.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type92.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type92.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type92.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type92.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type92.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type92.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type92.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type92.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type92.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type92.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type92.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type92.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type92.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type92.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type92.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type92.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type92.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type92.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type92.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type92.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type92.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type92.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_Type92.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type92); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type92, member_index); - } - CompleteStructType struct_type_Type92 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type92, header_Type92, member_seq_Type92); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type92, type_name_Type92.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type92 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type92 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type92", type_ids_Type92); - if (return_code_Type92 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type92: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep92 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type92", type_ids_dep92); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep92) + { + ::register_Type92_type_identifier(type_ids_dep92); + } + StructMemberFlag member_flags_dep92 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep92; MemberId member_id_dep92 = 0x0000005c; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep92 = TypeObjectUtils::build_common_struct_member(member_id_dep92, member_flags_dep92, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep92 = TypeObjectUtils::build_common_struct_member(member_id_dep92, member_flags_dep92, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep92_ec {false}; + CommonStructMember common_dep92 {TypeObjectUtils::build_common_struct_member(member_id_dep92, member_flags_dep92, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep92, common_dep92_ec))}; + if (!common_dep92_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep92 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep92 member TypeIdentifier inconsistent."); return; } MemberName name_dep92 = "dep92"; @@ -23810,150 +8391,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep92); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep93; + ReturnCode_t return_code_dep93 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep93 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type93", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type93 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type93; - TypeIdentifierPair type_ids_Type93; - QualifiedTypeName type_name_Type93 = "Type93"; - eprosima::fastcdr::optional type_ann_builtin_Type93; - eprosima::fastcdr::optional ann_custom_Type93; - CompleteTypeDetail detail_Type93 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type93, ann_custom_Type93, type_name_Type93.to_string()); - CompleteStructHeader header_Type93; - header_Type93 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type93); - CompleteStructMemberSeq member_seq_Type93; - { - return_code_Type93 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type93); - - if (return_code_Type93 != 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_Type93.type_identifier1()._d() || TK_NONE == type_ids_Type93.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type93.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type93.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type93.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type93.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type93.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type93.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type93.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type93.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type93.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type93.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type93.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type93.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type93.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type93.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type93.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type93.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type93.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type93.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type93.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type93.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type93.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type93.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type93.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type93.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_Type93.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type93); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type93, member_index); - } - CompleteStructType struct_type_Type93 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type93, header_Type93, member_seq_Type93); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type93, type_name_Type93.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type93 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type93 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type93", type_ids_Type93); - if (return_code_Type93 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type93: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep93 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type93", type_ids_dep93); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep93) + { + ::register_Type93_type_identifier(type_ids_dep93); + } + StructMemberFlag member_flags_dep93 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep93; MemberId member_id_dep93 = 0x0000005d; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep93 = TypeObjectUtils::build_common_struct_member(member_id_dep93, member_flags_dep93, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep93 = TypeObjectUtils::build_common_struct_member(member_id_dep93, member_flags_dep93, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep93_ec {false}; + CommonStructMember common_dep93 {TypeObjectUtils::build_common_struct_member(member_id_dep93, member_flags_dep93, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep93, common_dep93_ec))}; + if (!common_dep93_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep93 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep93 member TypeIdentifier inconsistent."); return; } MemberName name_dep93 = "dep93"; @@ -23964,150 +8419,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep93); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep94; + ReturnCode_t return_code_dep94 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep94 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type94", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type94 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type94; - TypeIdentifierPair type_ids_Type94; - QualifiedTypeName type_name_Type94 = "Type94"; - eprosima::fastcdr::optional type_ann_builtin_Type94; - eprosima::fastcdr::optional ann_custom_Type94; - CompleteTypeDetail detail_Type94 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type94, ann_custom_Type94, type_name_Type94.to_string()); - CompleteStructHeader header_Type94; - header_Type94 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type94); - CompleteStructMemberSeq member_seq_Type94; - { - return_code_Type94 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type94); - - if (return_code_Type94 != 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_Type94.type_identifier1()._d() || TK_NONE == type_ids_Type94.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type94.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type94.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type94.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type94.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type94.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type94.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type94.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type94.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type94.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type94.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type94.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type94.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type94.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type94.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type94.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type94.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type94.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type94.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type94.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type94.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type94.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type94.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type94.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type94.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_Type94.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type94); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type94, member_index); - } - CompleteStructType struct_type_Type94 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type94, header_Type94, member_seq_Type94); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type94, type_name_Type94.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type94 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type94 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type94", type_ids_Type94); - if (return_code_Type94 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type94: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep94 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type94", type_ids_dep94); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep94) + { + ::register_Type94_type_identifier(type_ids_dep94); + } + StructMemberFlag member_flags_dep94 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep94; MemberId member_id_dep94 = 0x0000005e; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep94 = TypeObjectUtils::build_common_struct_member(member_id_dep94, member_flags_dep94, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep94 = TypeObjectUtils::build_common_struct_member(member_id_dep94, member_flags_dep94, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep94_ec {false}; + CommonStructMember common_dep94 {TypeObjectUtils::build_common_struct_member(member_id_dep94, member_flags_dep94, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep94, common_dep94_ec))}; + if (!common_dep94_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep94 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep94 member TypeIdentifier inconsistent."); return; } MemberName name_dep94 = "dep94"; @@ -24118,150 +8447,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep94); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep95; + ReturnCode_t return_code_dep95 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep95 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type95", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type95 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type95; - TypeIdentifierPair type_ids_Type95; - QualifiedTypeName type_name_Type95 = "Type95"; - eprosima::fastcdr::optional type_ann_builtin_Type95; - eprosima::fastcdr::optional ann_custom_Type95; - CompleteTypeDetail detail_Type95 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type95, ann_custom_Type95, type_name_Type95.to_string()); - CompleteStructHeader header_Type95; - header_Type95 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type95); - CompleteStructMemberSeq member_seq_Type95; - { - return_code_Type95 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type95); - - if (return_code_Type95 != 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_Type95.type_identifier1()._d() || TK_NONE == type_ids_Type95.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type95.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type95.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type95.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type95.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type95.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type95.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type95.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type95.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type95.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type95.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type95.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type95.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type95.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type95.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type95.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type95.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type95.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type95.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type95.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type95.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type95.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type95.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type95.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type95.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_Type95.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type95); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type95, member_index); - } - CompleteStructType struct_type_Type95 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type95, header_Type95, member_seq_Type95); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type95, type_name_Type95.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type95 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type95 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type95", type_ids_Type95); - if (return_code_Type95 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type95: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep95 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type95", type_ids_dep95); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep95) + { + ::register_Type95_type_identifier(type_ids_dep95); + } + StructMemberFlag member_flags_dep95 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep95; MemberId member_id_dep95 = 0x0000005f; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep95 = TypeObjectUtils::build_common_struct_member(member_id_dep95, member_flags_dep95, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep95 = TypeObjectUtils::build_common_struct_member(member_id_dep95, member_flags_dep95, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep95_ec {false}; + CommonStructMember common_dep95 {TypeObjectUtils::build_common_struct_member(member_id_dep95, member_flags_dep95, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep95, common_dep95_ec))}; + if (!common_dep95_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep95 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep95 member TypeIdentifier inconsistent."); return; } MemberName name_dep95 = "dep95"; @@ -24272,150 +8475,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep95); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep96; + ReturnCode_t return_code_dep96 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep96 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type96", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type96 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type96; - TypeIdentifierPair type_ids_Type96; - QualifiedTypeName type_name_Type96 = "Type96"; - eprosima::fastcdr::optional type_ann_builtin_Type96; - eprosima::fastcdr::optional ann_custom_Type96; - CompleteTypeDetail detail_Type96 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type96, ann_custom_Type96, type_name_Type96.to_string()); - CompleteStructHeader header_Type96; - header_Type96 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type96); - CompleteStructMemberSeq member_seq_Type96; - { - return_code_Type96 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type96); - - if (return_code_Type96 != 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_Type96.type_identifier1()._d() || TK_NONE == type_ids_Type96.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type96.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type96.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type96.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type96.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type96.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type96.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type96.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type96.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type96.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type96.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type96.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type96.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type96.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type96.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type96.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type96.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type96.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type96.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type96.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type96.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type96.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type96.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type96.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type96.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_Type96.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type96); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type96, member_index); - } - CompleteStructType struct_type_Type96 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type96, header_Type96, member_seq_Type96); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type96, type_name_Type96.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type96 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type96 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type96", type_ids_Type96); - if (return_code_Type96 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type96: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep96 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type96", type_ids_dep96); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep96) + { + ::register_Type96_type_identifier(type_ids_dep96); + } + StructMemberFlag member_flags_dep96 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep96; MemberId member_id_dep96 = 0x00000060; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep96 = TypeObjectUtils::build_common_struct_member(member_id_dep96, member_flags_dep96, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep96 = TypeObjectUtils::build_common_struct_member(member_id_dep96, member_flags_dep96, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep96_ec {false}; + CommonStructMember common_dep96 {TypeObjectUtils::build_common_struct_member(member_id_dep96, member_flags_dep96, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep96, common_dep96_ec))}; + if (!common_dep96_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep96 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep96 member TypeIdentifier inconsistent."); return; } MemberName name_dep96 = "dep96"; @@ -24426,150 +8503,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep96); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep97; + ReturnCode_t return_code_dep97 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep97 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type97", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type97 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type97; - TypeIdentifierPair type_ids_Type97; - QualifiedTypeName type_name_Type97 = "Type97"; - eprosima::fastcdr::optional type_ann_builtin_Type97; - eprosima::fastcdr::optional ann_custom_Type97; - CompleteTypeDetail detail_Type97 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type97, ann_custom_Type97, type_name_Type97.to_string()); - CompleteStructHeader header_Type97; - header_Type97 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type97); - CompleteStructMemberSeq member_seq_Type97; - { - return_code_Type97 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type97); - - if (return_code_Type97 != 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_Type97.type_identifier1()._d() || TK_NONE == type_ids_Type97.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type97.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type97.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type97.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type97.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type97.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type97.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type97.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type97.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type97.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type97.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type97.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type97.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type97.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type97.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type97.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type97.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type97.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type97.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type97.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type97.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type97.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type97.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type97.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type97.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_Type97.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type97); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type97, member_index); - } - CompleteStructType struct_type_Type97 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type97, header_Type97, member_seq_Type97); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type97, type_name_Type97.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type97 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type97 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type97", type_ids_Type97); - if (return_code_Type97 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type97: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep97 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type97", type_ids_dep97); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep97) + { + ::register_Type97_type_identifier(type_ids_dep97); + } + StructMemberFlag member_flags_dep97 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep97; MemberId member_id_dep97 = 0x00000061; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep97 = TypeObjectUtils::build_common_struct_member(member_id_dep97, member_flags_dep97, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep97 = TypeObjectUtils::build_common_struct_member(member_id_dep97, member_flags_dep97, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep97_ec {false}; + CommonStructMember common_dep97 {TypeObjectUtils::build_common_struct_member(member_id_dep97, member_flags_dep97, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep97, common_dep97_ec))}; + if (!common_dep97_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep97 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep97 member TypeIdentifier inconsistent."); return; } MemberName name_dep97 = "dep97"; @@ -24580,150 +8531,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep97); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep98; + ReturnCode_t return_code_dep98 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep98 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type98", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type98 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type98; - TypeIdentifierPair type_ids_Type98; - QualifiedTypeName type_name_Type98 = "Type98"; - eprosima::fastcdr::optional type_ann_builtin_Type98; - eprosima::fastcdr::optional ann_custom_Type98; - CompleteTypeDetail detail_Type98 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type98, ann_custom_Type98, type_name_Type98.to_string()); - CompleteStructHeader header_Type98; - header_Type98 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type98); - CompleteStructMemberSeq member_seq_Type98; - { - return_code_Type98 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type98); - - if (return_code_Type98 != 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_Type98.type_identifier1()._d() || TK_NONE == type_ids_Type98.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type98.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type98.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type98.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type98.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type98.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type98.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type98.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type98.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type98.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type98.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type98.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type98.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type98.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type98.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type98.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type98.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type98.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type98.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type98.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type98.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type98.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type98.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type98.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type98.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_Type98.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type98); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type98, member_index); - } - CompleteStructType struct_type_Type98 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type98, header_Type98, member_seq_Type98); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type98, type_name_Type98.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type98 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type98 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type98", type_ids_Type98); - if (return_code_Type98 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type98: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep98 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type98", type_ids_dep98); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep98) + { + ::register_Type98_type_identifier(type_ids_dep98); + } + StructMemberFlag member_flags_dep98 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep98; MemberId member_id_dep98 = 0x00000062; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep98 = TypeObjectUtils::build_common_struct_member(member_id_dep98, member_flags_dep98, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep98 = TypeObjectUtils::build_common_struct_member(member_id_dep98, member_flags_dep98, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep98_ec {false}; + CommonStructMember common_dep98 {TypeObjectUtils::build_common_struct_member(member_id_dep98, member_flags_dep98, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep98, common_dep98_ec))}; + if (!common_dep98_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep98 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep98 member TypeIdentifier inconsistent."); return; } MemberName name_dep98 = "dep98"; @@ -24734,150 +8559,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep98); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep99; + ReturnCode_t return_code_dep99 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep99 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type99", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type99 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type99; - TypeIdentifierPair type_ids_Type99; - QualifiedTypeName type_name_Type99 = "Type99"; - eprosima::fastcdr::optional type_ann_builtin_Type99; - eprosima::fastcdr::optional ann_custom_Type99; - CompleteTypeDetail detail_Type99 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type99, ann_custom_Type99, type_name_Type99.to_string()); - CompleteStructHeader header_Type99; - header_Type99 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type99); - CompleteStructMemberSeq member_seq_Type99; - { - return_code_Type99 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type99); - - if (return_code_Type99 != 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_Type99.type_identifier1()._d() || TK_NONE == type_ids_Type99.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type99.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type99.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type99.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type99.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type99.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type99.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type99.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type99.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type99.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type99.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type99.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type99.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type99.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type99.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type99.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type99.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type99.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type99.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type99.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type99.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type99.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type99.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type99.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type99.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_Type99.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type99); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type99, member_index); - } - CompleteStructType struct_type_Type99 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type99, header_Type99, member_seq_Type99); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type99, type_name_Type99.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type99 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type99 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type99", type_ids_Type99); - if (return_code_Type99 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type99: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep99 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type99", type_ids_dep99); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep99) + { + ::register_Type99_type_identifier(type_ids_dep99); + } + StructMemberFlag member_flags_dep99 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep99; MemberId member_id_dep99 = 0x00000063; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep99 = TypeObjectUtils::build_common_struct_member(member_id_dep99, member_flags_dep99, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep99 = TypeObjectUtils::build_common_struct_member(member_id_dep99, member_flags_dep99, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep99_ec {false}; + CommonStructMember common_dep99 {TypeObjectUtils::build_common_struct_member(member_id_dep99, member_flags_dep99, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep99, common_dep99_ec))}; + if (!common_dep99_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep99 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep99 member TypeIdentifier inconsistent."); return; } MemberName name_dep99 = "dep99"; @@ -24888,150 +8587,24 @@ void register_TypeBig_type_identifier() TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_dep99); } { - return_code_TypeBig = + TypeIdentifierPair type_ids_dep100; + ReturnCode_t return_code_dep100 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dep100 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type100", type_ids_TypeBig); - - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Type100 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type100; - TypeIdentifierPair type_ids_Type100; - QualifiedTypeName type_name_Type100 = "Type100"; - eprosima::fastcdr::optional type_ann_builtin_Type100; - eprosima::fastcdr::optional ann_custom_Type100; - CompleteTypeDetail detail_Type100 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Type100, ann_custom_Type100, type_name_Type100.to_string()); - CompleteStructHeader header_Type100; - header_Type100 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type100); - CompleteStructMemberSeq member_seq_Type100; - { - return_code_Type100 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Type100); - - if (return_code_Type100 != 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_Type100.type_identifier1()._d() || TK_NONE == type_ids_Type100.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type100.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type100.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type100.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type100.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type100.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type100.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type100.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type100.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type100.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type100.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type100.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type100.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type100.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type100.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type100.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type100.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type100.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type100.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type100.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type100.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type100.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type100.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type100.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Type100.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_Type100.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type100); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type100, member_index); - } - CompleteStructType struct_type_Type100 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type100, header_Type100, member_seq_Type100); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type100, type_name_Type100.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type100 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type100 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Type100", type_ids_Type100); - if (return_code_Type100 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type100: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } - } - StructMemberFlag member_flags_dep100 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + "Type100", type_ids_dep100); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dep100) + { + ::register_Type100_type_identifier(type_ids_dep100); + } + StructMemberFlag member_flags_dep100 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_dep100; MemberId member_id_dep100 = 0x00000064; - if (EK_COMPLETE == type_ids_TypeBig.type_identifier1()._d() || TK_NONE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dep100 = TypeObjectUtils::build_common_struct_member(member_id_dep100, member_flags_dep100, type_ids_TypeBig.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeBig.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeBig.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeBig.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeBig.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeBig.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dep100 = TypeObjectUtils::build_common_struct_member(member_id_dep100, member_flags_dep100, type_ids_TypeBig.type_identifier2()); - } - else + bool common_dep100_ec {false}; + CommonStructMember common_dep100 {TypeObjectUtils::build_common_struct_member(member_id_dep100, member_flags_dep100, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dep100, common_dep100_ec))}; + if (!common_dep100_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dep100 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dep100 member TypeIdentifier inconsistent."); return; } MemberName name_dep100 = "dep100"; @@ -25043,20 +8616,11 @@ void register_TypeBig_type_identifier() } CompleteStructType struct_type_TypeBig = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeBig, header_TypeBig, member_seq_TypeBig); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeBig, type_name_TypeBig.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeBig, type_name_TypeBig.to_string(), type_ids_TypeBig)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "TypeBig already registered in TypeObjectRegistry for a different type."); } - return_code_TypeBig = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "TypeBig", type_ids_TypeBig); - if (return_code_TypeBig != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "TypeBig: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp index b21427bac11..cdf88cde24e 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp @@ -19,8 +19,10 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP + +#include #include "XtypesTestsType1TypeObjectSupport.hpp" #include "XtypesTestsType2TypeObjectSupport.hpp" @@ -36,11 +38,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_XtypesTestsTypeBig_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -48,689 +45,1179 @@ eProsima_user_DllExport void register_XtypesTestsTypeBig_type_objects(); * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type4_type_identifier(); +eProsima_user_DllExport void register_Type4_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type5 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type5_type_identifier(); +eProsima_user_DllExport void register_Type5_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type6 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type6_type_identifier(); +eProsima_user_DllExport void register_Type6_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type7 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type7_type_identifier(); +eProsima_user_DllExport void register_Type7_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type8 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type8_type_identifier(); +eProsima_user_DllExport void register_Type8_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type9 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type9_type_identifier(); +eProsima_user_DllExport void register_Type9_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type10 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type10_type_identifier(); +eProsima_user_DllExport void register_Type10_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type11 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type11_type_identifier(); +eProsima_user_DllExport void register_Type11_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type12 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type12_type_identifier(); +eProsima_user_DllExport void register_Type12_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type13 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type13_type_identifier(); +eProsima_user_DllExport void register_Type13_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type14 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type14_type_identifier(); +eProsima_user_DllExport void register_Type14_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type15 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type15_type_identifier(); +eProsima_user_DllExport void register_Type15_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type16 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type16_type_identifier(); +eProsima_user_DllExport void register_Type16_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type17 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type17_type_identifier(); +eProsima_user_DllExport void register_Type17_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type18 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type18_type_identifier(); +eProsima_user_DllExport void register_Type18_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type19 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type19_type_identifier(); +eProsima_user_DllExport void register_Type19_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type20 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type20_type_identifier(); +eProsima_user_DllExport void register_Type20_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type21 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type21_type_identifier(); +eProsima_user_DllExport void register_Type21_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type22 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type22_type_identifier(); +eProsima_user_DllExport void register_Type22_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type23 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type23_type_identifier(); +eProsima_user_DllExport void register_Type23_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type24 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type24_type_identifier(); +eProsima_user_DllExport void register_Type24_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type25 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type25_type_identifier(); +eProsima_user_DllExport void register_Type25_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type26 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type26_type_identifier(); +eProsima_user_DllExport void register_Type26_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type27 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type27_type_identifier(); +eProsima_user_DllExport void register_Type27_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type28 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type28_type_identifier(); +eProsima_user_DllExport void register_Type28_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type29 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type29_type_identifier(); +eProsima_user_DllExport void register_Type29_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type30 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type30_type_identifier(); +eProsima_user_DllExport void register_Type30_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type31 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type31_type_identifier(); +eProsima_user_DllExport void register_Type31_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type32 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type32_type_identifier(); +eProsima_user_DllExport void register_Type32_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type33 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type33_type_identifier(); +eProsima_user_DllExport void register_Type33_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type34 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type34_type_identifier(); +eProsima_user_DllExport void register_Type34_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type35 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type35_type_identifier(); +eProsima_user_DllExport void register_Type35_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type36 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type36_type_identifier(); +eProsima_user_DllExport void register_Type36_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type37 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type37_type_identifier(); +eProsima_user_DllExport void register_Type37_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type38 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type38_type_identifier(); +eProsima_user_DllExport void register_Type38_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type39 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type39_type_identifier(); +eProsima_user_DllExport void register_Type39_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type40 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type40_type_identifier(); +eProsima_user_DllExport void register_Type40_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type41 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type41_type_identifier(); +eProsima_user_DllExport void register_Type41_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type42 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type42_type_identifier(); +eProsima_user_DllExport void register_Type42_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type43 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type43_type_identifier(); +eProsima_user_DllExport void register_Type43_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type44 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type44_type_identifier(); +eProsima_user_DllExport void register_Type44_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type45 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type45_type_identifier(); +eProsima_user_DllExport void register_Type45_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type46 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type46_type_identifier(); +eProsima_user_DllExport void register_Type46_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type47 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type47_type_identifier(); +eProsima_user_DllExport void register_Type47_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type48 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type48_type_identifier(); +eProsima_user_DllExport void register_Type48_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type49 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type49_type_identifier(); +eProsima_user_DllExport void register_Type49_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type50 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type50_type_identifier(); +eProsima_user_DllExport void register_Type50_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type51 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type51_type_identifier(); +eProsima_user_DllExport void register_Type51_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type52 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type52_type_identifier(); +eProsima_user_DllExport void register_Type52_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type53 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type53_type_identifier(); +eProsima_user_DllExport void register_Type53_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type54 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type54_type_identifier(); +eProsima_user_DllExport void register_Type54_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type55 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type55_type_identifier(); +eProsima_user_DllExport void register_Type55_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type56 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type56_type_identifier(); +eProsima_user_DllExport void register_Type56_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type57 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type57_type_identifier(); +eProsima_user_DllExport void register_Type57_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type58 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type58_type_identifier(); +eProsima_user_DllExport void register_Type58_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type59 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type59_type_identifier(); +eProsima_user_DllExport void register_Type59_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type60 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type60_type_identifier(); +eProsima_user_DllExport void register_Type60_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type61 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type61_type_identifier(); +eProsima_user_DllExport void register_Type61_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type62 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type62_type_identifier(); +eProsima_user_DllExport void register_Type62_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type63 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type63_type_identifier(); +eProsima_user_DllExport void register_Type63_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type64 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type64_type_identifier(); +eProsima_user_DllExport void register_Type64_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type65 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type65_type_identifier(); +eProsima_user_DllExport void register_Type65_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type66 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type66_type_identifier(); +eProsima_user_DllExport void register_Type66_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type67 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type67_type_identifier(); +eProsima_user_DllExport void register_Type67_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type68 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type68_type_identifier(); +eProsima_user_DllExport void register_Type68_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type69 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type69_type_identifier(); +eProsima_user_DllExport void register_Type69_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type70 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type70_type_identifier(); +eProsima_user_DllExport void register_Type70_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type71 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type71_type_identifier(); +eProsima_user_DllExport void register_Type71_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type72 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type72_type_identifier(); +eProsima_user_DllExport void register_Type72_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type73 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type73_type_identifier(); +eProsima_user_DllExport void register_Type73_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type74 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type74_type_identifier(); +eProsima_user_DllExport void register_Type74_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type75 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type75_type_identifier(); +eProsima_user_DllExport void register_Type75_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type76 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type76_type_identifier(); +eProsima_user_DllExport void register_Type76_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type77 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type77_type_identifier(); +eProsima_user_DllExport void register_Type77_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type78 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type78_type_identifier(); +eProsima_user_DllExport void register_Type78_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type79 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type79_type_identifier(); +eProsima_user_DllExport void register_Type79_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type80 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type80_type_identifier(); +eProsima_user_DllExport void register_Type80_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type81 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type81_type_identifier(); +eProsima_user_DllExport void register_Type81_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type82 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type82_type_identifier(); +eProsima_user_DllExport void register_Type82_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type83 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type83_type_identifier(); +eProsima_user_DllExport void register_Type83_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type84 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type84_type_identifier(); +eProsima_user_DllExport void register_Type84_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type85 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type85_type_identifier(); +eProsima_user_DllExport void register_Type85_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type86 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type86_type_identifier(); +eProsima_user_DllExport void register_Type86_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type87 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type87_type_identifier(); +eProsima_user_DllExport void register_Type87_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type88 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type88_type_identifier(); +eProsima_user_DllExport void register_Type88_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type89 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type89_type_identifier(); +eProsima_user_DllExport void register_Type89_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type90 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type90_type_identifier(); +eProsima_user_DllExport void register_Type90_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type91 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type91_type_identifier(); +eProsima_user_DllExport void register_Type91_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type92 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type92_type_identifier(); +eProsima_user_DllExport void register_Type92_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type93 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type93_type_identifier(); +eProsima_user_DllExport void register_Type93_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type94 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type94_type_identifier(); +eProsima_user_DllExport void register_Type94_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type95 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type95_type_identifier(); +eProsima_user_DllExport void register_Type95_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type96 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type96_type_identifier(); +eProsima_user_DllExport void register_Type96_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type97 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type97_type_identifier(); +eProsima_user_DllExport void register_Type97_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type98 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type98_type_identifier(); +eProsima_user_DllExport void register_Type98_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type99 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type99_type_identifier(); +eProsima_user_DllExport void register_Type99_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Type100 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_Type100_type_identifier(); +eProsima_user_DllExport void register_Type100_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register TypeBig related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_TypeBig_type_identifier(); +eProsima_user_DllExport void register_TypeBig_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp index 439257aa363..931d3df1e46 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_HPP #include #include diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp index 7ad5a304e87..3a5ddd34e94 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_HPP #include "XtypesTestsTypeDep.hpp" @@ -43,5 +43,5 @@ eProsima_user_DllExport void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp index e6f323ba9f0..d0e29adb477 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp @@ -19,8 +19,8 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_IPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_IPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_IPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_IPP #include "XtypesTestsTypeDepCdrAux.hpp" @@ -129,8 +129,29 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const TypeDep& data) { + extern void serialize_key( + Cdr& scdr, + const Type1& data); + + extern void serialize_key( + Cdr& scdr, + const Type2& data); + + extern void serialize_key( + Cdr& scdr, + const Type3& data); + + static_cast(scdr); static_cast(data); + scdr << data.index(); + + serialize_key(scdr, data.var_type1()); + + serialize_key(scdr, data.var_type2()); + + serialize_key(scdr, data.var_type3()); + } @@ -138,5 +159,5 @@ void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEPCDRAUX_IPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_IPP diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx index d23260a8be3..c457073f595 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx @@ -19,7 +19,7 @@ * This file was generated by the tool fastddsgen. */ -#include "XtypesTestsTypeDepPubSubTypes.h" +#include "XtypesTestsTypeDepPubSubTypes.hpp" #include #include @@ -27,55 +27,48 @@ #include "XtypesTestsTypeDepCdrAux.hpp" #include "XtypesTestsTypeDepTypeObjectSupport.hpp" -using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; -using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; TypeDepPubSubType::TypeDepPubSubType() { - setName("TypeDep"); - uint32_t type_size = -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(TypeDep::getMaxCdrSerializedSize()); -#else - TypeDep_max_cdr_typesize; -#endif + set_name("TypeDep"); + uint32_t type_size = TypeDep_max_cdr_typesize; type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - m_typeSize = type_size + 4; /*encapsulation*/ - m_isGetKeyDefined = false; - uint32_t keyLength = TypeDep_max_key_cdr_typesize > 16 ? TypeDep_max_key_cdr_typesize : 16; - m_keyBuffer = reinterpret_cast(malloc(keyLength)); - memset(m_keyBuffer, 0, keyLength); + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = TypeDep_max_key_cdr_typesize > 16 ? TypeDep_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); } TypeDepPubSubType::~TypeDepPubSubType() { - if (m_keyBuffer != nullptr) + if (key_buffer_ != nullptr) { - free(m_keyBuffer); + free(key_buffer_); } } bool TypeDepPubSubType::serialize( - void* data, - SerializedPayload_t* payload, + const void* const data, + SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - TypeDep* p_type = static_cast(data); + const TypeDep* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); // Object that serializes the data. eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; -#if FASTCDR_VERSION_MAJOR > 1 + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); -#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -90,16 +83,12 @@ bool TypeDepPubSubType::serialize( } // Get the serialized length -#if FASTCDR_VERSION_MAJOR == 1 - payload->length = static_cast(ser.getSerializedDataLength()); -#else - payload->length = static_cast(ser.get_serialized_data_length()); -#endif // FASTCDR_VERSION_MAJOR == 1 + payload.length = static_cast(ser.get_serialized_data_length()); return true; } bool TypeDepPubSubType::deserialize( - SerializedPayload_t* payload, + SerializedPayload_t& payload, void* data) { try @@ -108,18 +97,14 @@ bool TypeDepPubSubType::deserialize( TypeDep* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN -#if FASTCDR_VERSION_MAJOR == 1 - , eprosima::fastcdr::Cdr::CdrType::DDS_CDR -#endif // FASTCDR_VERSION_MAJOR == 1 - ); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); // Deserialize encapsulation. deser.read_encapsulation(); - payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Deserialize the object. deser >> *p_type; @@ -132,96 +117,99 @@ bool TypeDepPubSubType::deserialize( return true; } -std::function TypeDepPubSubType::getSerializedSizeProvider( - void* data, +uint32_t TypeDepPubSubType::calculate_serialized_size( + const void* const data, DataRepresentationId_t data_representation) { - return [data, data_representation]() -> uint32_t - { -#if FASTCDR_VERSION_MAJOR == 1 - static_cast(data_representation); - return static_cast(type::getCdrSerializedSize(*static_cast(data))) + - 4u /*encapsulation*/; -#else - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -#endif // FASTCDR_VERSION_MAJOR == 1 - }; + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } } -void* TypeDepPubSubType::createData() +void* TypeDepPubSubType::create_data() { return reinterpret_cast(new TypeDep()); } -void TypeDepPubSubType::deleteData( +void TypeDepPubSubType::delete_data( void* data) { delete(reinterpret_cast(data)); } -bool TypeDepPubSubType::getKey( - void* data, - InstanceHandle_t* handle, +bool TypeDepPubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + TypeDep data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool TypeDepPubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, bool force_md5) { - if (!m_isGetKeyDefined) + if (!is_compute_key_provided) { return false; } - TypeDep* p_type = static_cast(data); + const TypeDep* p_type = static_cast(data); // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), TypeDep_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); -#if FASTCDR_VERSION_MAJOR == 1 - p_type->serializeKey(ser); -#else + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); eprosima::fastcdr::serialize_key(ser, *p_type); -#endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || TypeDep_max_key_cdr_typesize > 16) { - m_md5.init(); -#if FASTCDR_VERSION_MAJOR == 1 - m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); -#else - m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); -#endif // FASTCDR_VERSION_MAJOR == 1 - m_md5.finalize(); + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_md5.digest[i]; + handle.value[i] = md5_.digest[i]; } } else { for (uint8_t i = 0; i < 16; ++i) { - handle->value[i] = m_keyBuffer[i]; + handle.value[i] = key_buffer_[i]; } } return true; } -void TypeDepPubSubType::register_type_object_representation() const +void TypeDepPubSubType::register_type_object_representation() { - register_XtypesTestsTypeDep_type_objects(); + register_TypeDep_type_identifier(type_identifiers_); } diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp similarity index 59% rename from test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.h rename to test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp index 046e5a76652..f7c6b4893ad 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.h +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp @@ -13,32 +13,32 @@ // limitations under the License. /*! - * @file XtypesTestsTypeDepPubSubTypes.h + * @file XtypesTestsTypeDepPubSubTypes.hpp * This header file contains the declaration of the serialization functions. * * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_PUBSUBTYPES_H_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_PUBSUBTYPES_H_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_PUBSUBTYPES_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_PUBSUBTYPES_HPP #include #include -#include -#include -#include +#include +#include +#include #include "XtypesTestsTypeDep.hpp" -#include "XtypesTestsType1PubSubTypes.h" -#include "XtypesTestsType2PubSubTypes.h" -#include "XtypesTestsType3PubSubTypes.h" +#include "XtypesTestsType1PubSubTypes.hpp" +#include "XtypesTestsType2PubSubTypes.hpp" +#include "XtypesTestsType3PubSubTypes.hpp" -#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#if !defined(FASTDDS_GEN_API_VER) || (FASTDDS_GEN_API_VER != 3) #error \ Generated XtypesTestsTypeDep is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. -#endif // GEN_API_VER +#endif // FASTDDS_GEN_API_VER /*! @@ -56,43 +56,35 @@ class TypeDepPubSubType : public eprosima::fastdds::dds::TopicDataType eProsima_user_DllExport ~TypeDepPubSubType() override; eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload) override - { - return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport bool serialize( - void* data, - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; eProsima_user_DllExport bool deserialize( - eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::rtps::SerializedPayload_t& payload, void* data) override; - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data) override - { - return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); - } - - eProsima_user_DllExport std::function getSerializedSizeProvider( - void* data, + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - eProsima_user_DllExport bool getKey( - void* data, - eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, bool force_md5 = false) override; - eProsima_user_DllExport void* createData() override; + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; - eProsima_user_DllExport void deleteData( + eProsima_user_DllExport void delete_data( void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -103,13 +95,9 @@ class TypeDepPubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain() const override - { - return false; - } eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override { static_cast(data_representation); return false; @@ -127,10 +115,12 @@ class TypeDepPubSubType : public eprosima::fastdds::dds::TopicDataType #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - MD5 m_md5; - unsigned char* m_keyBuffer; +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; }; -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_PUBSUBTYPES_H_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_PUBSUBTYPES_HPP diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx index c7d22336fdb..8110620c9b1 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx @@ -41,667 +41,147 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_XtypesTestsTypeDep_type_objects() +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_TypeDep_type_identifier( + TypeIdentifierPair& type_ids_TypeDep) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - register_Type1_type_identifier(); - - register_Type2_type_identifier(); - - register_Type3_type_identifier(); - register_TypeDep_type_identifier(); - - }); -} - -void register_TypeDep_type_identifier() -{ + ReturnCode_t return_code_TypeDep {eprosima::fastdds::dds::RETCODE_OK}; + return_code_TypeDep = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "TypeDep", type_ids_TypeDep); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_TypeDep) { - StructTypeFlag struct_flags_TypeDep = TypeObjectUtils::build_struct_type_flag( - eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_TypeDep; - TypeIdentifierPair type_ids_TypeDep; + StructTypeFlag struct_flags_TypeDep = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); QualifiedTypeName type_name_TypeDep = "TypeDep"; eprosima::fastcdr::optional type_ann_builtin_TypeDep; eprosima::fastcdr::optional ann_custom_TypeDep; - CompleteTypeDetail detail_TypeDep = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeDep, - ann_custom_TypeDep, - type_name_TypeDep.to_string()); + CompleteTypeDetail detail_TypeDep = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeDep, ann_custom_TypeDep, type_name_TypeDep.to_string()); CompleteStructHeader header_TypeDep; header_TypeDep = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeDep); CompleteStructMemberSeq member_seq_TypeDep; { - return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). - get_type_identifiers( - "_uint16_t", type_ids_TypeDep); + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_index); - if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_index; + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || - TK_NONE == type_ids_TypeDep.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, - type_ids_TypeDep.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, - type_ids_TypeDep.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); + 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_TypeDep.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, - member_ann_builtin_index, - ann_custom_TypeDep); - CompleteStructMember member_index = - TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_TypeDep); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_index); } { - return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). - get_type_identifiers( - "Type1", type_ids_TypeDep); + TypeIdentifierPair type_ids_var_type1; + ReturnCode_t return_code_var_type1 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_type1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type1", type_ids_var_type1); - if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_type1) { - { - StructTypeFlag struct_flags_Type1 = TypeObjectUtils::build_struct_type_flag( - eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type1; - TypeIdentifierPair type_ids_Type1; - QualifiedTypeName type_name_Type1 = "Type1"; - eprosima::fastcdr::optional type_ann_builtin_Type1; - eprosima::fastcdr::optional ann_custom_Type1; - CompleteTypeDetail detail_Type1 = TypeObjectUtils::build_complete_type_detail( - type_ann_builtin_Type1, ann_custom_Type1, type_name_Type1.to_string()); - CompleteStructHeader header_Type1; - header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); - CompleteStructMemberSeq member_seq_Type1; - { - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() - .get_type_identifiers( - "_uint16_t", type_ids_Type1); - - if (return_code_Type1 != 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_Type1.type_identifier1()._d() || - TK_NONE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, - member_flags_index, - type_ids_Type1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type1.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type1.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, - member_flags_index, - type_ids_Type1.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_Type1.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, - member_ann_builtin_index, - ann_custom_Type1); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, - detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); - } - CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type( - struct_flags_Type1, header_Type1, member_seq_Type1); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type1, - type_name_Type1.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). - get_type_identifiers( - "Type1", type_ids_Type1); - if (return_code_Type1 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } + ::register_Type1_type_identifier(type_ids_var_type1); } - StructMemberFlag member_flags_var_type1 = TypeObjectUtils::build_struct_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_type1; + StructMemberFlag member_flags_var_type1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); MemberId member_id_var_type1 = 0x00000001; - if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || - TK_NONE == type_ids_TypeDep.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_type1 = TypeObjectUtils::build_common_struct_member(member_id_var_type1, - member_flags_var_type1, - type_ids_TypeDep.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_type1 = TypeObjectUtils::build_common_struct_member(member_id_var_type1, - member_flags_var_type1, - type_ids_TypeDep.type_identifier2()); - } - else + bool common_var_type1_ec {false}; + CommonStructMember common_var_type1 {TypeObjectUtils::build_common_struct_member(member_id_var_type1, member_flags_var_type1, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_type1, common_var_type1_ec))}; + if (!common_var_type1_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_type1 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_type1 member TypeIdentifier inconsistent."); return; } MemberName name_var_type1 = "var_type1"; eprosima::fastcdr::optional member_ann_builtin_var_type1; ann_custom_TypeDep.reset(); - CompleteMemberDetail detail_var_type1 = TypeObjectUtils::build_complete_member_detail(name_var_type1, - member_ann_builtin_var_type1, - ann_custom_TypeDep); - CompleteStructMember member_var_type1 = TypeObjectUtils::build_complete_struct_member(common_var_type1, - detail_var_type1); + CompleteMemberDetail detail_var_type1 = TypeObjectUtils::build_complete_member_detail(name_var_type1, member_ann_builtin_var_type1, ann_custom_TypeDep); + CompleteStructMember member_var_type1 = TypeObjectUtils::build_complete_struct_member(common_var_type1, detail_var_type1); TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type1); } { - return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). - get_type_identifiers( - "Type2", type_ids_TypeDep); + TypeIdentifierPair type_ids_var_type2; + ReturnCode_t return_code_var_type2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_type2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type2", type_ids_var_type2); - if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_type2) { - { - StructTypeFlag struct_flags_Type2 = TypeObjectUtils::build_struct_type_flag( - eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type2; - TypeIdentifierPair type_ids_Type2; - QualifiedTypeName type_name_Type2 = "Type2"; - eprosima::fastcdr::optional type_ann_builtin_Type2; - eprosima::fastcdr::optional ann_custom_Type2; - CompleteTypeDetail detail_Type2 = TypeObjectUtils::build_complete_type_detail( - type_ann_builtin_Type2, ann_custom_Type2, type_name_Type2.to_string()); - CompleteStructHeader header_Type2; - header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); - CompleteStructMemberSeq member_seq_Type2; - { - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() - .get_type_identifiers( - "_int16_t", type_ids_Type2); - - if (return_code_Type2 != 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_Type2.type_identifier1()._d() || - TK_NONE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, - member_flags_index, - type_ids_Type2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type2.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type2.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, - member_flags_index, - type_ids_Type2.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_Type2.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, - member_ann_builtin_index, - ann_custom_Type2); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, - detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); - } - CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type( - struct_flags_Type2, header_Type2, member_seq_Type2); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type2, - type_name_Type2.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). - get_type_identifiers( - "Type2", type_ids_Type2); - if (return_code_Type2 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } + ::register_Type2_type_identifier(type_ids_var_type2); } - StructMemberFlag member_flags_var_type2 = TypeObjectUtils::build_struct_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_type2; + StructMemberFlag member_flags_var_type2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); MemberId member_id_var_type2 = 0x00000002; - if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || - TK_NONE == type_ids_TypeDep.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_type2_ec {false}; + CommonStructMember common_var_type2 {TypeObjectUtils::build_common_struct_member(member_id_var_type2, member_flags_var_type2, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_type2, common_var_type2_ec))}; + if (!common_var_type2_ec) { - common_var_type2 = TypeObjectUtils::build_common_struct_member(member_id_var_type2, - member_flags_var_type2, - type_ids_TypeDep.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_type2 = TypeObjectUtils::build_common_struct_member(member_id_var_type2, - member_flags_var_type2, - type_ids_TypeDep.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_type2 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_type2 member TypeIdentifier inconsistent."); return; } MemberName name_var_type2 = "var_type2"; eprosima::fastcdr::optional member_ann_builtin_var_type2; ann_custom_TypeDep.reset(); - CompleteMemberDetail detail_var_type2 = TypeObjectUtils::build_complete_member_detail(name_var_type2, - member_ann_builtin_var_type2, - ann_custom_TypeDep); - CompleteStructMember member_var_type2 = TypeObjectUtils::build_complete_struct_member(common_var_type2, - detail_var_type2); + CompleteMemberDetail detail_var_type2 = TypeObjectUtils::build_complete_member_detail(name_var_type2, member_ann_builtin_var_type2, ann_custom_TypeDep); + CompleteStructMember member_var_type2 = TypeObjectUtils::build_complete_struct_member(common_var_type2, detail_var_type2); TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type2); } { - return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). - get_type_identifiers( - "Type3", type_ids_TypeDep); + TypeIdentifierPair type_ids_var_type3; + ReturnCode_t return_code_var_type3 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_type3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Type3", type_ids_var_type3); - if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_type3) { - { - StructTypeFlag struct_flags_Type3 = TypeObjectUtils::build_struct_type_flag( - eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Type3; - TypeIdentifierPair type_ids_Type3; - QualifiedTypeName type_name_Type3 = "Type3"; - eprosima::fastcdr::optional type_ann_builtin_Type3; - eprosima::fastcdr::optional ann_custom_Type3; - CompleteTypeDetail detail_Type3 = TypeObjectUtils::build_complete_type_detail( - type_ann_builtin_Type3, ann_custom_Type3, type_name_Type3.to_string()); - CompleteStructHeader header_Type3; - header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); - CompleteStructMemberSeq member_seq_Type3; - { - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry() - .get_type_identifiers( - "_int32_t", type_ids_Type3); - - if (return_code_Type3 != 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_Type3.type_identifier1()._d() || - TK_NONE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier1()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, - member_flags_index, - type_ids_Type3.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Type3.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Type3.type_identifier2()._d() && - EK_COMPLETE == type_ids_Type3.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Type3.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Type3.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, - member_flags_index, - type_ids_Type3.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_Type3.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, - member_ann_builtin_index, - ann_custom_Type3); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, - detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); - } - CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type( - struct_flags_Type3, header_Type3, member_seq_Type3); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Type3, - type_name_Type3.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3 already registered in TypeObjectRegistry for a different type."); - } - return_code_Type3 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). - get_type_identifiers( - "Type3", type_ids_Type3); - if (return_code_Type3 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Type3: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } - } + ::register_Type3_type_identifier(type_ids_var_type3); } - StructMemberFlag member_flags_var_type3 = TypeObjectUtils::build_struct_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_type3; + StructMemberFlag member_flags_var_type3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); MemberId member_id_var_type3 = 0x00000003; - if (EK_COMPLETE == type_ids_TypeDep.type_identifier1()._d() || - TK_NONE == type_ids_TypeDep.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier1()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_type3_ec {false}; + CommonStructMember common_var_type3 {TypeObjectUtils::build_common_struct_member(member_id_var_type3, member_flags_var_type3, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_type3, common_var_type3_ec))}; + if (!common_var_type3_ec) { - common_var_type3 = TypeObjectUtils::build_common_struct_member(member_id_var_type3, - member_flags_var_type3, - type_ids_TypeDep.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TypeDep.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TypeDep.type_identifier2()._d() && - EK_COMPLETE == type_ids_TypeDep.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TypeDep.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TypeDep.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TypeDep.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_type3 = TypeObjectUtils::build_common_struct_member(member_id_var_type3, - member_flags_var_type3, - type_ids_TypeDep.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_type3 member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_type3 member TypeIdentifier inconsistent."); return; } MemberName name_var_type3 = "var_type3"; eprosima::fastcdr::optional member_ann_builtin_var_type3; ann_custom_TypeDep.reset(); - CompleteMemberDetail detail_var_type3 = TypeObjectUtils::build_complete_member_detail(name_var_type3, - member_ann_builtin_var_type3, - ann_custom_TypeDep); - CompleteStructMember member_var_type3 = TypeObjectUtils::build_complete_struct_member(common_var_type3, - detail_var_type3); + CompleteMemberDetail detail_var_type3 = TypeObjectUtils::build_complete_member_detail(name_var_type3, member_ann_builtin_var_type3, ann_custom_TypeDep); + CompleteStructMember member_var_type3 = TypeObjectUtils::build_complete_struct_member(common_var_type3, detail_var_type3); TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_var_type3); } - CompleteStructType struct_type_TypeDep = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeDep, - header_TypeDep, - member_seq_TypeDep); + CompleteStructType struct_type_TypeDep = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeDep, header_TypeDep, member_seq_TypeDep); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeDep, - type_name_TypeDep.to_string())) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeDep, type_name_TypeDep.to_string(), type_ids_TypeDep)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "TypeDep already registered in TypeObjectRegistry for a different type."); } - return_code_TypeDep = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry(). - get_type_identifiers( - "TypeDep", type_ids_TypeDep); - if (return_code_TypeDep != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "TypeDep: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - return; - } } } + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp index aaebaf3fe99..cfddf40b078 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp @@ -19,8 +19,10 @@ * This file was generated by the tool fastddsgen. */ -#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP_ -#define _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP_ +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP + +#include #include "XtypesTestsType1TypeObjectSupport.hpp" #include "XtypesTestsType2TypeObjectSupport.hpp" @@ -36,11 +38,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_XtypesTestsTypeDep_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -48,10 +45,15 @@ eProsima_user_DllExport void register_XtypesTestsTypeDep_type_objects(); * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_TypeDep_type_identifier(); +eProsima_user_DllExport void register_TypeDep_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP_ +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h b/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h index 8518507ba18..bc67c0070ae 100644 --- a/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h +++ b/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h @@ -25,6 +25,7 @@ #include #include #include +#include namespace eprosima { namespace fastdds { @@ -34,6 +35,18 @@ class EDP { public: + EDP() + { + } + + EDP( + PDP* p, + RTPSParticipantImpl* part) + { + mp_PDP = p; + mp_RTPSParticipant = part; + } + virtual ~EDP() { @@ -99,6 +112,14 @@ class EDP const GUID_t& participant_guid, const GUID_t& reader_guid)); + MOCK_METHOD0(get_temporary_writer_proxies_pool, ProxyPool& ()); + + MOCK_METHOD0(get_temporary_reader_proxies_pool, ProxyPool& ()); + + MOCK_METHOD2(pairing_writer_proxy_with_any_local_reader, bool(const GUID_t&, WriterProxyData*)); + + MOCK_METHOD2(pairing_reader_proxy_with_any_local_writer, bool(const GUID_t&, ReaderProxyData*)); + #if HAVE_SECURITY MOCK_METHOD3(pairing_reader_proxy_with_local_writer, bool(const GUID_t& local_writer, const GUID_t& remote_participant_guid, ReaderProxyData & rdata)); @@ -127,6 +148,9 @@ class EDP } #endif // if HAVE_SECURITY + + eprosima::fastdds::rtps::RTPSParticipantImpl* mp_RTPSParticipant; + eprosima::fastdds::rtps::PDP* mp_PDP; }; } //namespace rtps diff --git a/test/mock/rtps/EDPSimpleListeners/rtps/builtin/discovery/endpoint/EDPSimpleListeners.h b/test/mock/rtps/EDPSimpleListeners/rtps/builtin/discovery/endpoint/EDPSimpleListeners.h new file mode 100644 index 00000000000..3c3a02da246 --- /dev/null +++ b/test/mock/rtps/EDPSimpleListeners/rtps/builtin/discovery/endpoint/EDPSimpleListeners.h @@ -0,0 +1,465 @@ +// 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 EDPSimpleListeners.h + * + */ + +#ifndef EDPSIMPLELISTENER_H_ +#define EDPSIMPLELISTENER_H_ +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#include +#include + +#include + +#include +#include + +#include + +#include + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +using ParameterList = eprosima::fastdds::dds::ParameterList; + +// Release reader lock to avoid ABBA lock. PDP mutex should always be first. +// Keep change information on local variables to check consistency later +#define PREVENT_PDP_DEADLOCK(reader, change, pdp) \ + GUID_t writer_guid = (change)->writerGUID; \ + SequenceNumber_t seq_num = (change)->sequenceNumber; \ + (reader)->getMutex().unlock(); \ + std::unique_lock lock(*((pdp)->getMutex())); \ + (reader)->getMutex().lock(); \ + \ + if ((ALIVE != (change)->kind) || \ + (seq_num != (change)->sequenceNumber) || \ + (writer_guid != (change)->writerGUID)) \ + { \ + return; \ + } \ + (void)seq_num + +namespace eprosima { +namespace fastrtps { +namespace rtps { + +class RTPSReader; +struct CacheChange_t; + +class EDPListener : public ReaderListener, public WriterListener +{ +public: + + bool computeKey( + CacheChange_t* change) + { + return ParameterList::readInstanceHandleFromCDRMsg(change, fastdds::dds::PID_ENDPOINT_GUID); + } + +}; + +class EDPBasePUBListener : public EDPListener +{ +public: + + EDPBasePUBListener() = default; + + virtual ~EDPBasePUBListener() = default; + +protected: + + void add_writer_from_change( + RTPSReader* reader, + ReaderHistory* reader_history, + CacheChange_t* change, + EDP* edp, + bool release_change = true) + { + std::cout << "EDPBasePUBListener::add_writer_from_change" << std::endl; + //LOAD INFORMATION IN DESTINATION WRITER PROXY DATA + const NetworkFactory& network = edp->mp_RTPSParticipant->network_factory(); + CDRMessage_t tempMsg(change->serializedPayload); + auto temp_writer_data = edp->get_temporary_writer_proxies_pool().get(); + + if (temp_writer_data->readFromCDRMessage(&tempMsg, network, + edp->mp_RTPSParticipant->has_shm_transport(), true)) + { + if (temp_writer_data->guid().guidPrefix == edp->mp_RTPSParticipant->getGuid().guidPrefix) + { + EPROSIMA_LOG_INFO(RTPS_EDP, "Message from own RTPSParticipant, ignoring"); + return; + } + + // Callback function to continue after typelookup is complete + fastdds::dds::builtin::AsyncGetTypeWriterCallback after_typelookup_callback = + [change, edp, release_change, &network] + (eprosima::ProxyPool::smart_ptr& temp_writer_data) + { + //LOAD INFORMATION IN DESTINATION WRITER PROXY DATA + auto copy_data_fun = [&temp_writer_data, &network]( + WriterProxyData* data, + bool updating, + const ParticipantProxyData& participant_data) + { + if (!temp_writer_data->has_locators()) + { + temp_writer_data->set_remote_locators(participant_data.default_locators, + network, + true); + } + + if (updating && !data->is_update_allowed(*temp_writer_data)) + { + EPROSIMA_LOG_WARNING(RTPS_EDP, + "Received incompatible update for WriterQos. writer_guid = " << + data->guid()); + } + *data = *temp_writer_data; + return true; + }; + + GUID_t participant_guid; + WriterProxyData* writer_data = + edp->mp_PDP->addWriterProxyData( + temp_writer_data->guid(), participant_guid, copy_data_fun); + + // release temporary proxy + temp_writer_data.reset(); + + if (writer_data != nullptr) + { + edp->pairing_writer_proxy_with_any_local_reader(participant_guid, writer_data); + } + else + { + EPROSIMA_LOG_WARNING(RTPS_EDP, "Received message from UNKNOWN RTPSParticipant, removing"); + } + }; + + // Remove change from history. + reader_history->remove_change(reader_history->find_change(change), release_change); + + // At this point, we can release the reader lock because the change is not used + reader->getMutex().unlock(); + + // Check if TypeInformation exists to start the typelookup service + if (temp_writer_data->type_information().assigned()) + { + edp->mp_RTPSParticipant->typelookup_manager()->async_get_type( + temp_writer_data, + after_typelookup_callback); + } + // If TypeInformation does not exists, try fallbacks + else + { + EPROSIMA_LOG_WARNING(RTPS_EDP, "EDPBasePUBListener: No TypeInformation. Using fallbacks"); + after_typelookup_callback(temp_writer_data); + } + + // Take the reader lock again if needed. + reader->getMutex().lock(); + } + } + +}; + +class EDPBaseSUBListener : public EDPListener +{ +public: + + EDPBaseSUBListener() = default; + + virtual ~EDPBaseSUBListener() = default; + +protected: + + void add_reader_from_change( + RTPSReader* reader, + ReaderHistory* reader_history, + CacheChange_t* change, + EDP* edp, + bool release_change = true) + { + std::cout << "EDPBaseSUBListener::add_reader_from_change" << std::endl; + //LOAD INFORMATION IN TEMPORAL READER PROXY DATA + const NetworkFactory& network = edp->mp_RTPSParticipant->network_factory(); + CDRMessage_t tempMsg(change->serializedPayload); + auto temp_reader_data = edp->get_temporary_reader_proxies_pool().get(); + + if (temp_reader_data->readFromCDRMessage(&tempMsg, network, + edp->mp_RTPSParticipant->has_shm_transport(), true)) + { + if (temp_reader_data->guid().guidPrefix == edp->mp_RTPSParticipant->getGuid().guidPrefix) + { + EPROSIMA_LOG_INFO(RTPS_EDP, "From own RTPSParticipant, ignoring"); + return; + } + + // Callback function to continue after typelookup is complete + fastdds::dds::builtin::AsyncGetTypeReaderCallback after_typelookup_callback = + [change, edp, release_change, &network] + (eprosima::ProxyPool::smart_ptr& temp_reader_data) + { + auto copy_data_fun = [&temp_reader_data, &network]( + ReaderProxyData* data, + bool updating, + const ParticipantProxyData& participant_data) + { + if (!temp_reader_data->has_locators()) + { + temp_reader_data->set_remote_locators(participant_data.default_locators, + network, + true); + } + + if (updating && !data->is_update_allowed(*temp_reader_data)) + { + EPROSIMA_LOG_WARNING(RTPS_EDP, + "Received incompatible update for ReaderQos. reader_guid = " << + data->guid()); + } + *data = *temp_reader_data; + return true; + }; + + //LOOK IF IS AN UPDATED INFORMATION + GUID_t participant_guid; + ReaderProxyData* reader_data = + edp->mp_PDP->addReaderProxyData( + temp_reader_data->guid(), participant_guid, copy_data_fun); + + // Release the temporary proxy + temp_reader_data.reset(); + + if (reader_data != nullptr) //ADDED NEW DATA + { + edp->pairing_reader_proxy_with_any_local_writer(participant_guid, reader_data); + } + else + { + EPROSIMA_LOG_WARNING(RTPS_EDP, "From UNKNOWN RTPSParticipant, removing"); + } + }; + + // Remove change from history. + reader_history->remove_change(reader_history->find_change(change), release_change); + + // At this point, we can release the reader lock because the change is not used + reader->getMutex().unlock(); + + // Check if TypeInformation exists to start the typelookup service + if (temp_reader_data->type_information().assigned()) + { + edp->mp_RTPSParticipant->typelookup_manager()->async_get_type( + temp_reader_data, + after_typelookup_callback); + } + // If TypeInformation does not exists, try fallbacks + else + { + EPROSIMA_LOG_WARNING(RTPS_EDP, "EDPBasePUBListener: No TypeInformation. Using fallbacks"); + after_typelookup_callback(temp_reader_data); + } + + // Take the reader lock again if needed. + reader->getMutex().lock(); + } + } + +}; + + +class EDPSimplePUBListener : public EDPBasePUBListener +{ +public: + + EDPSimplePUBListener( + EDPSimple* sedp) + : sedp_(sedp) + { + } + + virtual ~EDPSimplePUBListener() = default; + + void onNewCacheChangeAdded( + RTPSReader* reader, + const CacheChange_t* const change_in) override + { + CacheChange_t* change = (CacheChange_t*)change_in; + //std::lock_guard guard(*this->sedp_->publications_reader_.first->getMutex()); + EPROSIMA_LOG_INFO(RTPS_EDP, ""); + if (!computeKey(change)) + { + EPROSIMA_LOG_WARNING(RTPS_EDP, "Received change with no Key"); + } + + ReaderHistory* reader_history = +#if HAVE_SECURITY + reader == sedp_->publications_secure_reader_.first ? + sedp_->publications_secure_reader_.second : +#endif // if HAVE_SECURITY + sedp_->publications_reader_.second; + + if (change->kind == ALIVE) + { + PREVENT_PDP_DEADLOCK(reader, change, sedp_->mp_PDP); + + // Note: change is removed from history inside this method. + + + std::cout << "EERRORERRORERRORERRORERRORERRORERRORERROR" << std::endl; + + + add_writer_from_change(reader, reader_history, change, sedp_); + } + else + { + //REMOVE WRITER FROM OUR READERS: + EPROSIMA_LOG_INFO(RTPS_EDP, "Disposed Remote Writer, removing..."); + GUID_t writer_guid = iHandle2GUID(change->instanceHandle); + //Removing change from history + reader_history->remove_change(change); + reader->getMutex().unlock(); + this->sedp_->mp_PDP->removeWriterProxyData(writer_guid); + reader->getMutex().lock(); + } + } + + void onWriterChangeReceivedByAll( + RTPSWriter* writer, + CacheChange_t* change) override + { + (void)writer; + + if (ChangeKind_t::NOT_ALIVE_DISPOSED_UNREGISTERED == change->kind) + { + WriterHistory* writer_history = +#if HAVE_SECURITY + writer == sedp_->publications_secure_writer_.first ? + sedp_->publications_secure_writer_.second : +#endif // if HAVE_SECURITY + sedp_->publications_writer_.second; + + writer_history->remove_change(change); + } + } + +protected: + + EDPSimple* sedp_; +}; + +class EDPSimpleSUBListener : public EDPBaseSUBListener +{ +public: + + EDPSimpleSUBListener( + EDPSimple* sedp) + : sedp_(sedp) + { + } + + virtual ~EDPSimpleSUBListener() = default; + + void onNewCacheChangeAdded( + RTPSReader* reader, + const CacheChange_t* const change_in) override + { + CacheChange_t* change = (CacheChange_t*)change_in; + //std::lock_guard guard(*this->sedp_->subscriptions_reader_.first->getMutex()); + EPROSIMA_LOG_INFO(RTPS_EDP, ""); + if (!computeKey(change)) + { + EPROSIMA_LOG_WARNING(RTPS_EDP, "Received change with no Key"); + } + + ReaderHistory* reader_history = +#if HAVE_SECURITY + reader == sedp_->subscriptions_secure_reader_.first ? + sedp_->subscriptions_secure_reader_.second : +#endif // if HAVE_SECURITY + sedp_->subscriptions_reader_.second; + + if (change->kind == ALIVE) + { + PREVENT_PDP_DEADLOCK(reader, change, sedp_->mp_PDP); + + // Note: change is removed from history inside this method. + add_reader_from_change(reader, reader_history, change, sedp_); + } + else + { + //REMOVE WRITER FROM OUR READERS: + EPROSIMA_LOG_INFO(RTPS_EDP, "Disposed Remote Reader, removing..."); + + GUID_t reader_guid = iHandle2GUID(change->instanceHandle); + //Removing change from history + reader_history->remove_change(change); + reader->getMutex().unlock(); + this->sedp_->mp_PDP->removeReaderProxyData(reader_guid); + reader->getMutex().lock(); + } + } + + void onWriterChangeReceivedByAll( + RTPSWriter* writer, + CacheChange_t* change) override + { + (void)writer; + + if (ChangeKind_t::NOT_ALIVE_DISPOSED_UNREGISTERED == change->kind) + { + WriterHistory* writer_history = +#if HAVE_SECURITY + writer == sedp_->subscriptions_secure_writer_.first ? + sedp_->subscriptions_secure_writer_.second : +#endif // if HAVE_SECURITY + sedp_->subscriptions_writer_.second; + + writer_history->remove_change(change); + } + + } + +private: + + EDPSimple* sedp_; +}; + +} /* namespace rtps */ +} /* namespace fastrtps */ +} /* namespace eprosima */ + +#endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC +#endif /* EDPSIMPLELISTENER_H_ */ diff --git a/test/mock/rtps/PDP/rtps/builtin/discovery/participant/PDP.h b/test/mock/rtps/PDP/rtps/builtin/discovery/participant/PDP.h index 242e938ac05..6dbe89e6a9b 100644 --- a/test/mock/rtps/PDP/rtps/builtin/discovery/participant/PDP.h +++ b/test/mock/rtps/PDP/rtps/builtin/discovery/participant/PDP.h @@ -21,6 +21,10 @@ #include +#include +#include +#include + #include #include #include @@ -103,6 +107,16 @@ class PDP MOCK_METHOD(RTPSParticipantImpl*, getRTPSParticipant, (), (const)); + MOCK_METHOD1(removeReaderProxyData, bool(const GUID_t&)); + + MOCK_METHOD1(removeWriterProxyData, bool(const GUID_t&)); + + MOCK_CONST_METHOD0(builtin_attributes, const BuiltinAttributes&()); + + MOCK_CONST_METHOD0(create_builtin_reader_attributes, ReaderAttributes()); + + MOCK_CONST_METHOD0(create_builtin_writer_attributes, WriterAttributes()); + ProxyPool& get_temporary_reader_proxies_pool() { return temp_proxy_readers; @@ -115,11 +129,18 @@ class PDP // *INDENT-ON* + ParticipantProxyData* getLocalParticipantProxyData() const + { + return participant_proxies_.empty() ? nullptr : participant_proxies_.front(); + } + std::recursive_mutex* mutex_; // temporary proxies pools ProxyPool temp_proxy_readers = {{4, 1}}; ProxyPool temp_proxy_writers = {{4, 1}}; + + ResourceLimitedVector participant_proxies_; }; } //namespace rtps diff --git a/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h b/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h index 8008681d102..2953ed7b4cb 100644 --- a/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h +++ b/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h @@ -46,6 +46,15 @@ namespace eprosima { namespace fastdds { + +namespace dds { +namespace builtin { + +class TypeLookupManager; + +} // namespace builtin +} // namespace dds + namespace rtps { class Endpoint; @@ -351,6 +360,10 @@ class RTPSParticipantImpl MOCK_METHOD(bool, update_removed_participant, (rtps::LocatorList_t&)); + MOCK_METHOD0(has_shm_transport, bool()); + + MOCK_METHOD0(typelookup_manager, fastdds::dds::builtin::TypeLookupManager* ()); + uint32_t getRTPSParticipantID() const { return 0; diff --git a/test/mock/rtps/ReaderHistory/fastdds/rtps/history/ReaderHistory.hpp b/test/mock/rtps/ReaderHistory/fastdds/rtps/history/ReaderHistory.hpp index 69c085d4be3..10b40c5a33f 100644 --- a/test/mock/rtps/ReaderHistory/fastdds/rtps/history/ReaderHistory.hpp +++ b/test/mock/rtps/ReaderHistory/fastdds/rtps/history/ReaderHistory.hpp @@ -67,6 +67,11 @@ class ReaderHistory CacheChange_t** change)); MOCK_METHOD1(add_change_mock, bool(CacheChange_t*)); + + MOCK_METHOD1(find_change, const_iterator(CacheChange_t*)); + + MOCK_METHOD2(remove_change, iterator(const_iterator, bool)); + // *INDENT-ON* bool add_change( diff --git a/test/mock/rtps/StatefulReader/rtps/reader/StatefulReader.hpp b/test/mock/rtps/StatefulReader/rtps/reader/StatefulReader.hpp index cdbfa110c84..b29da4c29d5 100644 --- a/test/mock/rtps/StatefulReader/rtps/reader/StatefulReader.hpp +++ b/test/mock/rtps/StatefulReader/rtps/reader/StatefulReader.hpp @@ -61,17 +61,20 @@ class StatefulReader : public fastdds::rtps::BaseReader // *INDENT-OFF* Uncrustify makes a mess with MOCK_METHOD macros MOCK_METHOD1(matched_writer_add_edp, bool(const WriterProxyData&)); + MOCK_METHOD1(matched_writer_remove, bool(const GUID_t&)); + MOCK_METHOD2(matched_writer_remove, bool(const GUID_t&, bool)); MOCK_METHOD1(liveliness_expired, bool(const GUID_t&)); - MOCK_METHOD2(change_received, bool(CacheChange_t* a_change, WriterProxy* prox)); + MOCK_METHOD3(change_received, bool(CacheChange_t* a_change, WriterProxy* prox, size_t)); MOCK_METHOD1 (matched_writer_is_matched, bool(const GUID_t& writer_guid)); MOCK_METHOD1 (assert_writer_liveliness, void(const GUID_t& writer_guid)); MOCK_METHOD0 (is_in_clean_state, bool()); + // *INDENT-ON* ReaderTimes& getTimes() diff --git a/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp b/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp index 1ebacf1af87..b843f41bcd7 100644 --- a/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp +++ b/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp @@ -20,13 +20,72 @@ #ifndef FASTDDS_FASTDDS_BUILTIN_TYPE_LOOKUP_SERVICE__TYPELOOKUPMANAGER_HPP #define FASTDDS_FASTDDS_BUILTIN_TYPE_LOOKUP_SERVICE__TYPELOOKUPMANAGER_HPP -#include - #include -#include +#include +#include +#include #include +#include +#include +#include +#include + +#include +#include + +#include + +namespace std { + +template<> +struct hash +{ + std::size_t operator ()( + const eprosima::fastdds::dds::xtypes::TypeInformation& k) const + { + return (static_cast(k.complete().typeid_with_size().type_id().equivalence_hash()[0]) << 16) | + (static_cast(k.complete().typeid_with_size().type_id().equivalence_hash()[1]) << 8) | + (static_cast(k.complete().typeid_with_size().type_id().equivalence_hash()[2])); + } + +}; + +template <> +struct hash +{ + std::size_t operator ()( + const eprosima::fastdds::dds::SampleIdentity& k) const + { + std::size_t hash_value = 0; + + // Hash m_writer_guid + for (const auto& byte : k.writer_guid().guidPrefix()) + { + hash_value ^= std::hash{}(byte); + } + + hash_value ^= std::hash{}(k.writer_guid().entityId().entityKind()); + + // Hash m_entityKey of m_writer_guid's EntityId_t + for (const auto& byte : k.writer_guid().entityId().entityKey()) + { + hash_value ^= std::hash{}(byte); + } + + // Hash m_sequence_number + hash_value ^= std::hash{}(k.sequence_number().high()); + hash_value ^= std::hash{}(k.sequence_number().low()); + + return hash_value; + } + +}; + + +} // std + namespace eprosima { @@ -48,18 +107,18 @@ namespace builtin { extern const fastdds::rtps::SampleIdentity INVALID_SAMPLE_IDENTITY; -/** - * Class TypeLookupManager that implements the TypeLookup Service described in the DDS-XTYPES 1.2 specification. - * @ingroup XTYPES - */ +using AsyncGetTypeWriterCallback = std::function< + void (eprosima::ProxyPool::smart_ptr&)>; +using AsyncGetTypeReaderCallback = std::function< + void (eprosima::ProxyPool::smart_ptr&)>; + class TypeLookupManager { + friend class TypeLookupRequestListener; + friend class TypeLookupReplyListener; public: - /** - * Constructor - */ TypeLookupManager() { } @@ -68,22 +127,69 @@ class TypeLookupManager { } - MOCK_CONST_METHOD1(get_type_dependencies, fastdds::rtps::SampleIdentity( - const fastdds::dds::xtypes::TypeIdentifierSeq&)); + // *INDENT-OFF* - MOCK_CONST_METHOD1(get_types, fastdds::rtps::SampleIdentity( - const fastdds::dds::xtypes::TypeIdentifierSeq&)); + MOCK_CONST_METHOD2(get_type_dependencies, SampleIdentity( + const xtypes::TypeIdentifierSeq&, + const fastdds::rtps::GuidPrefix_t&)); - void remove_remote_endpoints( - fastdds::rtps::ParticipantProxyData* pdata) - { - static_cast(pdata); - } + MOCK_CONST_METHOD3(get_type_dependencies, SampleIdentity( + const xtypes::TypeIdentifierSeq&, + const fastdds::rtps::GuidPrefix_t&, + const std::vector&)); + + MOCK_CONST_METHOD2(get_types, SampleIdentity( + const xtypes::TypeIdentifierSeq&, + const fastdds::rtps::GuidPrefix_t&)); + + MOCK_METHOD2(async_get_type, ReturnCode_t( + eprosima::ProxyPool::smart_ptr&, + const AsyncGetTypeWriterCallback&)); + + MOCK_METHOD2(async_get_type, ReturnCode_t( + eprosima::ProxyPool::smart_ptr&, + const AsyncGetTypeReaderCallback&)); + + MOCK_METHOD1(notify_callbacks, void( + const xtypes::TypeIdentfierWithSize&)); + + MOCK_METHOD2(add_async_get_type_request, bool( + const SampleIdentity&, + const xtypes::TypeIdentfierWithSize&)); + + MOCK_METHOD1(remove_async_get_type_callback, bool( + const xtypes::TypeIdentfierWithSize&)); + + MOCK_METHOD1(remove_async_get_type_request, bool( + SampleIdentity)); + + MOCK_CONST_METHOD1(send, bool(TypeLookup_Reply&)); + + MOCK_CONST_METHOD1(send, bool(TypeLookup_Request&)); + + MOCK_CONST_METHOD2(receive, bool( + fastdds::rtps::CacheChange_t&, + TypeLookup_Reply&)); + + MOCK_CONST_METHOD2(receive, bool( + fastdds::rtps::CacheChange_t&, + TypeLookup_Request&)); + + MOCK_METHOD1(remove_remote_endpoints, void( + fastdds::rtps::ParticipantProxyData*)); + + // *INDENT-ON* + + fastdds::rtps::RTPSParticipantImpl* participant_ = nullptr; + + std::unordered_map async_get_type_requests_; + + mutable TypeLookup_ReplyPubSubType reply_type_; }; -} // namespace builtin -} // namespace dds -} // namespace fastdds -} // namespace eprosima +} /* namespace builtin */ +} /* namespace dds */ +} /* namespace fastdds */ +} /* namespace eprosima */ #endif // FASTDDS_FASTDDS_BUILTIN_TYPE_LOOKUP_SERVICE__TYPELOOKUPMANAGER_HPP diff --git a/test/mock/rtps/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/test/mock/rtps/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp new file mode 100644 index 00000000000..1c44a3b8031 --- /dev/null +++ b/test/mock/rtps/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp @@ -0,0 +1,122 @@ +// Copyright 2020 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. + + +#ifndef _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ +#define _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ + +#include + +#include + +#include +#include + +namespace std { +template<> +struct hash +{ + std::size_t operator ()( + const eprosima::fastdds::dds::xtypes::TypeIdentifier& k) const + { + return (static_cast(k.equivalence_hash()[0]) << 16) | + (static_cast(k.equivalence_hash()[1]) << 8) | + (static_cast(k.equivalence_hash()[2])); + } + +}; + +} // std + +namespace eprosima { +namespace fastdds { +namespace dds { + +namespace xtypes { + +using ReturnCode_t = eprosima::fastdds::dds::ReturnCode_t; + +class TypeObjectRegistry : public ITypeObjectRegistry +{ + +public: + + TypeObjectRegistry() + { + } + + ~TypeObjectRegistry() + { + } + + MOCK_METHOD2(register_type_object, ReturnCode_t( + const std::string&, const CompleteTypeObject&)); + + + RTPS_DllAPI ReturnCode_t register_type_identifier( + const std::string&, + const TypeIdentifier&) + { + return RETCODE_OK; + } + + RTPS_DllAPI ReturnCode_t get_type_objects( + const std::string&, + TypeObjectPair&) + { + return RETCODE_OK; + } + + RTPS_DllAPI ReturnCode_t get_type_identifiers( + const std::string&, + TypeIdentifierPair&) + { + return RETCODE_OK; + } + + RTPS_DllAPI ReturnCode_t get_type_object( + const TypeIdentifier& id, + TypeObject& obj) + { + return mock_get_type_object(id, obj); + } + + MOCK_METHOD2(mock_get_type_object, ReturnCode_t( + const TypeIdentifier&, const TypeObject&)); + + MOCK_METHOD2(register_type_object, ReturnCode_t( + const TypeIdentifier&, const TypeObject&)); + + MOCK_METHOD2(get_type_dependencies, ReturnCode_t( + const TypeIdentifierSeq&, std::unordered_set&)); + + MOCK_METHOD1(is_type_identifier_known, bool( + const TypeIdentfierWithSize&)); + + MOCK_METHOD1(get_complementary_type_identifier, TypeIdentifier( + const TypeIdentifier&)); + + MOCK_METHOD1(is_builtin_annotation, bool( + const TypeIdentifier&)); + + MOCK_METHOD2(calculate_type_identifier, TypeIdentifier( + const TypeObject&, uint32_t&)); +}; + +} // xtypes +} // dds +} // fastdds +} // eprosima + +#endif // _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ diff --git a/test/unittest/dds/xtypes/typelookup/CMakeLists.txt b/test/unittest/dds/xtypes/typelookup/CMakeLists.txt new file mode 100644 index 00000000000..03c17915570 --- /dev/null +++ b/test/unittest/dds/xtypes/typelookup/CMakeLists.txt @@ -0,0 +1,237 @@ +# 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. +# 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(GLOB DDSSQLFILTER_SOURCES ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/DDSSQLFilter/*.cpp) + +set(TYPELOOKUPTESTS_SOURCE TypeLookupTests.cpp +${DDSSQLFILTER_SOURCES} + # ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp + # ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/AnnotationDescriptor.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicData.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicDataFactory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicDataPtr.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicPubSubType.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicType.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypeBuilder.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypeBuilderFactory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypeBuilderPtr.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypeMember.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypePtr.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/MemberDescriptor.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/TypeDescriptor.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/Condition.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/ConditionNotifier.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/StatusCondition.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/StatusConditionImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/WaitSetImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/Entity.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/policy/ParameterList.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/policy/QosPolicyUtils.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/DomainParticipant.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/DomainParticipantFactory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/DomainParticipantImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/qos/DomainParticipantFactoryQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/qos/DomainParticipantQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/FileConsumer.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/Log.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/OStreamConsumer.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutConsumer.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutErrConsumer.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/DataWriter.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/DataWriterHistory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/DataWriterImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/Publisher.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/PublisherImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/qos/DataWriterQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/qos/PublisherQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/qos/WriterQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/DataReader.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/DataReaderImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/history/DataReaderHistory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/qos/DataReaderQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/qos/ReaderQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/qos/SubscriberQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/ReadCondition.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/Subscriber.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/SubscriberImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/ContentFilteredTopic.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/ContentFilteredTopicImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/qos/TopicQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/Topic.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TopicDataType.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TopicImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TopicProxyFactory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TypeSupport.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/utils/QosConverters.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/exception/Exception.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/PropertyPolicy.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/ThreadSettings.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Time_t.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/flowcontrol/FlowControllerConsts.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/flowcontrol/ThroughputControllerDescriptor.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/CacheChangePool.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/TopicPayloadPool.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/TopicPayloadPoolRegistry.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/transport/PortBasedTransportDescriptor.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/writer/LocatorSelectorSender.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLDynamicParser.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLElementParser.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLParser.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLParserCommon.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLProfileManager.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/fastdds/domain/DomainParticipant.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/fastdds/publisher/qos/DataWriterQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/utils/IPFinder.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/utils/IPLocator.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/utils/md5.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/utils/string_convert.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/utils/SystemInfo.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/utils/TimedConditionVariable.cpp + + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ParticipantProxyData.cpp + src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/discovery/endpoint/EDPSimple.cpp + + # ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/discovery/participant/PDP.cpp + # ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp + + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ReaderProxyData.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/WriterProxyData.cpp + +) + +if (FASTDDS_STATISTICS) + + set(statistics_sources + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/fastdds/domain/DomainParticipantStatisticsListener.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesTypeObjectSupport.cxx + ) + + list(APPEND TYPELOOKUPTESTS_SOURCE ${statistics_sources}) + +endif() + +# External sources +if(TINYXML2_SOURCE_DIR) + list(APPEND TYPELOOKUPTESTS_SOURCE + ${TINYXML2_SOURCE_DIR}/tinyxml2.cpp + ) +endif() + +# Only include tinyxml2 headers manually if the associated config predates the use of CMake targets +if(TINYXML2_INCLUDE_DIR) + include_directories(${TINYXML2_INCLUDE_DIR}) +endif(TINYXML2_INCLUDE_DIR) + +if(WIN32) + add_definitions(-D_WIN32_WINNT=0x0601) +endif() + +if(ANDROID) + if (ANDROID_NATIVE_API_LEVEL LESS 24) + list(APPEND TYPELOOKUPTESTS_SOURCE + ${ANDROID_IFADDRS_SOURCE_DIR}/ifaddrs.c + ) + endif() +endif() + + +add_executable(TypeLookupTests ${TYPELOOKUPTESTS_SOURCE}) +target_compile_definitions(TypeLookupTests PRIVATE + BOOST_ASIO_STANDALONE + ASIO_STANDALONE + ASIO_DISABLE_VISIBILITY + SQLITE_WIN32_GETVERSIONEX=0 + $<$,$>,$>>:ASIO_DISABLE_STD_STRING_VIEW> + $<$>,$>:__DEBUG> + $<$:__INTERNALDEBUG> # Internal debug activated. + $<$:_ENABLE_ATOMIC_ALIGNMENT_FIX> + ) +target_include_directories(TypeLookupTests PUBLIC + ${Asio_INCLUDE_DIR} + ${PROJECT_SOURCE_DIR}/test/mock/rtps/TypeObjectRegistry + + + ${PROJECT_SOURCE_DIR}/test/mock/rtps/DataSharingPayloadPool + # ${PROJECT_SOURCE_DIR}/test/mock/rtps/Endpoint + ${PROJECT_SOURCE_DIR}/test/mock/rtps/PDP + ${PROJECT_SOURCE_DIR}/test/mock/rtps/PDPSimple + ${PROJECT_SOURCE_DIR}/test/mock/rtps/ReaderHistory + ${PROJECT_SOURCE_DIR}/test/mock/rtps/ResourceEvent + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomain + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomainImpl + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSParticipant + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSParticipantAttributes + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSParticipantImpl + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSReader + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSWriter + ${PROJECT_SOURCE_DIR}/test/mock/rtps/SharedMemTransportDescriptor + ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatefulReader + ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatefulWriter + + # ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatelessReader + # ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatelessWriter + + ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPTransportDescriptor + ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPv4TransportDescriptor + ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPv6TransportDescriptor + ${PROJECT_SOURCE_DIR}/test/mock/rtps/TimedEvent + ${PROJECT_SOURCE_DIR}/test/mock/rtps/TypeLookupManager + ${PROJECT_SOURCE_DIR}/test/mock/rtps/UDPTransportDescriptor + ${PROJECT_SOURCE_DIR}/test/mock/rtps/UDPv4TransportDescriptor + ${PROJECT_SOURCE_DIR}/test/mock/rtps/UDPv6TransportDescriptor + ${PROJECT_SOURCE_DIR}/test/mock/rtps/WLP + ${PROJECT_SOURCE_DIR}/test/mock/rtps/WriterHistory + ${PROJECT_SOURCE_DIR}/test/mock/rtps/XMLEndPointParser + + + + ${PROJECT_SOURCE_DIR}/test/mock/rtps/NetworkFactory + ${PROJECT_SOURCE_DIR}/test/mock/rtps/EDP + + ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include + ${PROJECT_SOURCE_DIR}/src/cpp + ${THIRDPARTY_BOOST_INCLUDE_DIR} + ${PROJECT_SOURCE_DIR}/thirdparty/taocpp-pegtl + ) + + +target_link_libraries(TypeLookupTests fastcdr foonathan_memory + ${TINYXML2_LIBRARY} + GTest::gmock + ${CMAKE_DL_LIBS} + ${THIRDPARTY_BOOST_LINK_LIBS} + ) + +if(QNX) + target_link_libraries(TypeLookupTests socket) +endif() +if(MSVC OR MSVC_IDE) + target_link_libraries(TypeLookupTests iphlpapi Shlwapi ws2_32) +endif() + + +gtest_discover_tests(TypeLookupTests) diff --git a/test/unittest/dds/xtypes/typelookup/TypeLookupTests.cpp b/test/unittest/dds/xtypes/typelookup/TypeLookupTests.cpp new file mode 100644 index 00000000000..bedb8170125 --- /dev/null +++ b/test/unittest/dds/xtypes/typelookup/TypeLookupTests.cpp @@ -0,0 +1,847 @@ +// 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. +// 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 +#include + +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include +#include +#include +#include +#include +#include + + +#include +#include + +using ::testing::Mock; +using ::testing::_; +using eprosima::fastrtps::rtps::RTPSDomain; +using namespace eprosima::fastdds::dds::builtin; +using namespace eprosima::fastdds::dds::xtypes; +using namespace eprosima::fastrtps::rtps; + +namespace eprosima { + +namespace fastrtps { +namespace rtps { +class RTPSDomain; + +RTPSReader* RTPSDomain::reader_ = nullptr; +RTPSWriter* RTPSDomain::writer_ = nullptr; +RTPSParticipant* RTPSDomain::participant_ = nullptr; +} //namespace rtps +} //namespace fastrtps + +namespace fastdds { +namespace dds { + +inline std::vector create_continuation_point( + size_t value) +{ + std::vector continuation_point(32, 0); + + for (size_t value_i = 0; value_i < value; value_i++) + { + for (size_t i = continuation_point.size() - 1; i != SIZE_MAX; --i) + { + if (continuation_point[i] < 255) + { + ++continuation_point[i]; + // Break after successful increment + break; + } + else + { + continuation_point[i] = 0; + } + } + } + return continuation_point; +} + +SampleIdentity valid_sampleidentity() +{ + GUID_t guid; + guid.guidPrefix({1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}); + SequenceNumber_t seqn; + seqn.high(1); + seqn.low(1); + + SampleIdentity id; + id.writer_guid(guid); + id.sequence_number(seqn); + + return id; +} + +class TypeLookupReplyListenerTests : private TypeLookupReplyListener +{ +public: + + TypeLookupReplyListenerTests( + TypeLookupManager* manager) + : TypeLookupReplyListener(manager) + { + } + + void onNewCacheChangeAdded( + fastrtps::rtps::RTPSReader* reader, + const fastrtps::rtps::CacheChange_t* const change) + { + TypeLookupReplyListener::onNewCacheChangeAdded(reader, change); + } + + void process_reply() + { + TypeLookupReplyListener::process_reply(); + } + + std::queue* get_replies_queue() + { + return &replies_queue_; + } + + void set_processing( + bool status) + { + processing_ = status; + } + +}; + +class TypeLookupRequestListenerTests : private TypeLookupRequestListener +{ +public: + + TypeLookupRequestListenerTests( + TypeLookupManager* manager) + : TypeLookupRequestListener(manager) + { + } + + void onNewCacheChangeAdded( + fastrtps::rtps::RTPSReader* reader, + const fastrtps::rtps::CacheChange_t* const change) + { + // Call the private method indirectly through the public interface + TypeLookupRequestListener::onNewCacheChangeAdded(reader, change); + } + + void process_requests() + { + TypeLookupRequestListener::process_requests(); + } + + std::queue* get_requests_queue() + { + return &requests_queue_; + } + + void set_processing( + bool status) + { + processing_ = status; + } + +}; + +// class EDPBasePUBListenerTests : protected EDPBasePUBListener +// { +// public: + +// void add_writer_from_change( +// RTPSReader* reader, +// ReaderHistory* reader_history, +// CacheChange_t* change, +// EDP* edp, +// bool release_change = true) +// { +// // Call the private method indirectly through the public interface +// EDPBasePUBListener::add_writer_from_change(reader, reader_history, change, edp, true); +// } + +// }; + +class EDPBaseSUBListenerTests : private EDPBaseSUBListener +{ +public: + + void add_reader_from_change( + RTPSReader* reader, + ReaderHistory* reader_history, + CacheChange_t* change, + EDP* edp, + bool release_change = true) + { + // Call the private method indirectly through the public interface + EDPBaseSUBListener::add_reader_from_change(reader, reader_history, change, edp, release_change); + } + +}; + + + +class TypeLookupTests : public ::testing::Test +{ + +protected: + + void SetUp() override + { + tlm = new TypeLookupManager(); + reply_listener = new TypeLookupReplyListenerTests(tlm); + request_listener = new TypeLookupRequestListenerTests(tlm); + reader = new StatefulReader(); + } + + void TearDown() override + { + delete tlm; + delete reply_listener; + delete request_listener; + delete reader; + } + + TypeLookupManager* tlm = nullptr; + TypeLookupReplyListenerTests* reply_listener = nullptr; + TypeLookupRequestListenerTests* request_listener = nullptr; + StatefulReader* reader = nullptr; +}; + + +TEST_F(TypeLookupTests, sdfsdfsdf) +{ + EDPBaseSUBListenerTests simple_listener; + //RTPSReader reader; + ReaderHistory* reader_history = new ReaderHistory(HistoryAttributes()); + CacheChange_t change; + RTPSParticipantImpl asd; + + PDP pdp; + EDPSimple* edp = new EDPSimple(&pdp, &asd); + + edp->mp_RTPSParticipant = &asd; + simple_listener.add_reader_from_change(reader, reader_history, &change, edp); +} + +TEST_F(TypeLookupTests, ReaderProxyData_PID_TYPE_IDV1) +{ + // This was captured with wireshark from OpenDDS iShapes 3.16 + octet data_w_buffer[] = + { + // Encapsulation + 0x00, 0x03, 0x00, 0x00, + // Endpoint GUID + 0x5a, 0x00, 0x10, 0x00, + 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, + // Topic name + 0x05, 0x00, 0x10, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, + // Type name + 0x07, 0x00, 0x20, 0x00, + 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, + 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, + // TypeID + 0x69, 0x00, 0x50, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // Sentinel + 0x01, 0x00, 0x00, 0x00 + }; + + ReaderProxyData reader_proxy(0, 0); + NetworkFactory network; + + CDRMessage_t msg(0); + msg.init(data_w_buffer, static_cast(sizeof(data_w_buffer))); + msg.length = msg.max_size; + + bool weweaa = reader_proxy.readFromCDRMessage(&msg, network, false, true); + + //EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, "PID_TYPE_IDV1 not supported"); +} + +TEST_F(TypeLookupTests, WriterProxyData_PID_TYPE_IDV1) +{ + // This was captured with wireshark from OpenDDS iShapes 3.16 + octet data_w_buffer[] = + { + // Encapsulation + 0x00, 0x03, 0x00, 0x00, + // Endpoint GUID + 0x5a, 0x00, 0x10, 0x00, + 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, + // Topic name + 0x05, 0x00, 0x10, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, + // Type name + 0x07, 0x00, 0x20, 0x00, + 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, + 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, + // TypeID + 0x69, 0x00, 0x50, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // Sentinel + 0x01, 0x00, 0x00, 0x00 + }; + + WriterProxyData writer_proxy(0, 0); + NetworkFactory network; + + CDRMessage_t msg(0); + msg.init(data_w_buffer, static_cast(sizeof(data_w_buffer))); + msg.length = msg.max_size; + + bool weweaa = writer_proxy.readFromCDRMessage(&msg, network, false, true); + + //EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, "PID_TYPE_IDV1 not supported"); +} + +TEST_F(TypeLookupTests, ReaderProxyData_PID_TYPE_OBJECTV1) +{ + // This was captured with wireshark from OpenDDS iShapes 3.16 + octet data_w_buffer[] = + { + // Encapsulation + 0x00, 0x03, 0x00, 0x00, + // Endpoint GUID + 0x5a, 0x00, 0x10, 0x00, + 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, + // Topic name + 0x05, 0x00, 0x10, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, + // Type name + 0x07, 0x00, 0x20, 0x00, + 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, + 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, + // Type object + 0x72, 0x00, 0xfc, 0x04, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x04, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x28, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x04, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x44, 0x4c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0xe8, 0x02, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x09, 0x00, 0x00, 0x00, 0xd0, 0x01, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x24, 0x00, 0x00, 0x00, 0x02, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x51, 0x83, 0x23, + 0x55, 0x8c, 0x53, 0x3a, 0x10, 0x00, 0x00, 0x00, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, + 0x70, 0x01, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x2c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x0d, 0x00, 0x00, 0x00, + 0x68, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x17, 0x00, 0x00, 0x00, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, + 0x49, 0x64, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, + 0x0b, 0x00, 0x00, 0x00, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, + 0xa5, 0x08, 0x32, 0x91, 0x08, 0x00, 0x00, 0x00, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, + 0x0e, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x05, 0x00, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, + 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, + 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x4f, 0x4b, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, + 0x44, 0x4c, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, + 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, + 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x09, 0x00, 0x00, 0x00, + 0xe0, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, + 0x0d, 0x00, 0x00, 0x00, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0d, 0x00, 0x00, 0x00, + 0x72, 0x74, 0x70, 0x73, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0c, 0x00, 0x00, 0x00, + 0x72, 0x74, 0x70, 0x73, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x13, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, 0xa5, 0x08, 0x32, 0x91, + 0x16, 0x00, 0x00, 0x00, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x32, 0x30, 0x34, 0x38, 0x5f, + 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x65, 0x00, 0x04, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x08, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x8c, 0x51, 0x83, 0x23, 0x55, 0x8c, 0x53, 0x3a, 0x02, 0x7f, 0x00, 0x00, + // Sentinel + 0x01, 0x00, 0x00, 0x00 + }; + + ReaderProxyData reader_proxy(0, 0); + NetworkFactory network; + + CDRMessage_t msg(0); + msg.init(data_w_buffer, static_cast(sizeof(data_w_buffer))); + msg.length = msg.max_size; + + bool weweaa = reader_proxy.readFromCDRMessage(&msg, network, false, true); + + // EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, "PID_TYPE_OBJECTV1 not supported"); +} + +TEST_F(TypeLookupTests, WriterProxyData_PID_TYPE_OBJECTV1) +{ + // This was captured with wireshark from OpenDDS iShapes 3.16 + octet data_w_buffer[] = + { + // Encapsulation + 0x00, 0x03, 0x00, 0x00, + // Endpoint GUID + 0x5a, 0x00, 0x10, 0x00, + 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, + // Topic name + 0x05, 0x00, 0x10, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, + // Type name + 0x07, 0x00, 0x20, 0x00, + 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, + 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, + // Type object + 0x72, 0x00, 0xfc, 0x04, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x04, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x28, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x04, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x44, 0x4c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0xe8, 0x02, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x09, 0x00, 0x00, 0x00, 0xd0, 0x01, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x24, 0x00, 0x00, 0x00, 0x02, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x51, 0x83, 0x23, + 0x55, 0x8c, 0x53, 0x3a, 0x10, 0x00, 0x00, 0x00, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, + 0x70, 0x01, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x2c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x0d, 0x00, 0x00, 0x00, + 0x68, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x17, 0x00, 0x00, 0x00, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, + 0x49, 0x64, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, + 0x0b, 0x00, 0x00, 0x00, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, + 0xa5, 0x08, 0x32, 0x91, 0x08, 0x00, 0x00, 0x00, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, + 0x0e, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x05, 0x00, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, + 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, + 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x4f, 0x4b, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, + 0x44, 0x4c, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, + 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, + 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x09, 0x00, 0x00, 0x00, + 0xe0, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, + 0x0d, 0x00, 0x00, 0x00, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0d, 0x00, 0x00, 0x00, + 0x72, 0x74, 0x70, 0x73, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0c, 0x00, 0x00, 0x00, + 0x72, 0x74, 0x70, 0x73, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x13, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, 0xa5, 0x08, 0x32, 0x91, + 0x16, 0x00, 0x00, 0x00, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x32, 0x30, 0x34, 0x38, 0x5f, + 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x65, 0x00, 0x04, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x08, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x8c, 0x51, 0x83, 0x23, 0x55, 0x8c, 0x53, 0x3a, 0x02, 0x7f, 0x00, 0x00, + // Sentinel + 0x01, 0x00, 0x00, 0x00 + }; + + WriterProxyData writer_proxy(0, 0); + NetworkFactory network; + + CDRMessage_t msg(0); + msg.init(data_w_buffer, static_cast(sizeof(data_w_buffer))); + msg.length = msg.max_size; + bool weweaa = writer_proxy.readFromCDRMessage(&msg, network, false, true); + + // EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, "PID_TYPE_OBJECTV1 not supported"); +} + +TEST_F(TypeLookupTests, TypeLookupReplyListener_wrong_EntityId) +{ + EXPECT_CALL(*(reader), getHistory_mock()) + .WillOnce(::testing::Throw(std::runtime_error(""))); + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = 0x111111C3; + try + { + reply_listener->onNewCacheChangeAdded(reader, change); + } + catch (const std::exception& e) + { + } + //EPROSIMA_LOG_WARNING(TL_REPLY_READER, "Received data from a bad endpoint."); + + delete change; +} + +TEST_F(TypeLookupTests, TypeLookupReplyListener_wrong_replyid) +{ + TypeLookup_Reply reply; + reply.return_value()._d() = 44444444U; + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + reply_listener->get_replies_queue()->push(reply_with_guid); + + reply_listener->set_processing(true); + + reply_listener->process_reply(); + + + //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Received uknown reply type."); +} + +TEST_F(TypeLookupTests, TypeLookupReplyListener_getTypes_empty) +{ + TypeIdentfierWithSize tidws; + tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getTypes_HashId; + + + + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + reply_listener->get_replies_queue()->push(reply_with_guid); + + reply_listener->set_processing(true); + + reply_listener->process_reply(); + + + //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Error registering type."); +} + +TEST_F(TypeLookupTests, TypeLookupReplyListener_getTypes_registry_error) +{ + EXPECT_CALL(fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(), + register_type_object( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::Return(RETCODE_ERROR)); + + TypeIdentfierWithSize tidws; + tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getTypes_HashId; + + TypeIdentifierTypeObjectPair pair; + TypeLookup_getTypes_Out out; + out.types().push_back(pair); + + reply.return_value().getType().result(out); + + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + reply_listener->get_replies_queue()->push(reply_with_guid); + + reply_listener->set_processing(true); + + reply_listener->process_reply(); + + //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Error registering type."); +} + +TEST_F(TypeLookupTests, TypeLookupReplyListener_getDependencies_continuation_point_fail) +{ + EXPECT_CALL(*(tlm), + get_type_dependencies(testing::_, testing::_, testing::_)) + .WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); + + TypeIdentfierWithSize tidws; + tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getDependencies_HashId; + + TypeIdentifierTypeObjectPair pair; + TypeLookup_getTypeDependencies_Out out; + out.continuation_point(create_continuation_point(10)); + + reply.return_value().getTypeDependencies().result(out); + + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + reply_listener->get_replies_queue()->push(reply_with_guid); + + reply_listener->set_processing(true); + + reply_listener->process_reply(); + + // EPROSIMA_LOG_ERROR(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Failed to send get_type_dependencies request"); +} + +TEST_F(TypeLookupTests, TypeLookupReplyListener_getDependencies_get_types_fail) +{ + EXPECT_CALL(*(tlm), + get_types(testing::_, testing::_)) + .WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); + + + + TypeIdentfierWithSize tidws; + tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getDependencies_HashId; + + TypeIdentifierTypeObjectPair pair; + TypeLookup_getTypeDependencies_Out out; + reply.return_value().getTypeDependencies().result(out); + + + + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + reply_listener->get_replies_queue()->push(reply_with_guid); + + reply_listener->set_processing(true); + + reply_listener->process_reply(); + + + //EPROSIMA_LOG_ERROR(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Failed to send get_types request"); +} + +TEST_F(TypeLookupTests, TypeLookupRequestListener_wrong_EntityId) +{ + EXPECT_CALL(*(reader), getHistory_mock()) + .WillOnce(::testing::Throw(std::runtime_error(""))); + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = 0x111111C3; + try + { + request_listener->onNewCacheChangeAdded(reader, change); + } + catch (const std::exception& e) + { + } + //EPROSIMA_LOG_WARNING(TL_REPLY_READER, "Received data from a bad endpoint."); + + delete change; +} + +TEST_F(TypeLookupTests, TypeLookupRequestListener_wrong_requestid) +{ + TypeLookup_Request request; + request.data()._d() = 44444444U; + request_listener->get_requests_queue()->push(request); + + request_listener->set_processing(true); + + request_listener->process_requests(); + + + //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Received unknown request type."); +} + +TEST_F(TypeLookupTests, TypeLookupRequestListener_getTypes_empty) +{ + + TypeIdentfierWithSize tidws; + tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getTypes_HashId; + + request_listener->get_requests_queue()->push(request); + + request_listener->set_processing(true); + + request_listener->process_requests(); + + //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Error getting type."); +} + +TEST_F(TypeLookupTests, TypeLookupRequestListener_getTypes_registry_error) +{ + EXPECT_CALL(fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(), + mock_get_type_object( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::Return(RETCODE_ERROR)); + + TypeIdentfierWithSize tidws; + tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getTypes_HashId; + + TypeLookup_getTypes_In in; + TypeIdentifierSeq id_seq; + TypeIdentifier id; + id_seq.push_back(id); + in.type_ids(id_seq); + in.type_ids().push_back(id); + request.data().getTypes(in); + + request_listener->get_requests_queue()->push(request); + + request_listener->set_processing(true); + + request_listener->process_requests(); + + //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Error getting type."); +} + +TEST_F(TypeLookupTests, TypeLookupRequestListener_getDependencies_empty) +{ + TypeIdentfierWithSize tidws; + tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getDependencies_HashId; + + request_listener->get_requests_queue()->push(request); + + request_listener->set_processing(true); + + request_listener->process_requests(); + + //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Error getting type dependencies."); +} + +TEST_F(TypeLookupTests, TypeLookupRequestListener_getDependencies_registry_error) +{ + EXPECT_CALL(fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(), + get_type_dependencies(testing::_, testing::_)) + .WillOnce(testing::Return(RETCODE_ERROR)); + + TypeIdentfierWithSize tidws; + tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getDependencies_HashId; + + TypeLookup_getTypeDependencies_In in; + TypeIdentifierSeq id_seq; + TypeIdentifier id; + id_seq.push_back(id); + in.type_ids(id_seq); + in.type_ids().push_back(id); + request.data().getTypeDependencies(in); + + + request_listener->get_requests_queue()->push(request); + + request_listener->set_processing(true); + + request_listener->process_requests(); + + //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Error getting type dependencies."); +} + +} // namespace dds +} // namespace fastdds +} // namespace eprosima + +int main( + int argc, + char** argv) +{ + testing::InitGoogleMock(&argc, argv); + return RUN_ALL_TESTS(); +} \ No newline at end of file From 8e3c1212d988477c735c2bebd40dbff97d76e06b Mon Sep 17 00:00:00 2001 From: adriancampo Date: Tue, 30 Jan 2024 19:39:18 +0100 Subject: [PATCH 11/45] Refs #20165: Implemented unittests. Added Case0 for no TypeObject Signed-off-by: adriancampo --- .../type_lookup_service/TypeLookupManager.cpp | 2 +- .../TypeLookupReplyListener.cpp | 2 +- .../TypeLookupRequestListener.cpp | 2 +- test/dds/xtypes/CMakeLists.txt | 8 +- test/dds/xtypes/Case0.json | 23 + test/dds/xtypes/Case1.json | 4 +- test/dds/xtypes/Case10.json | 14 +- test/dds/xtypes/Case2.json | 4 +- test/dds/xtypes/Case3.json | 4 +- test/dds/xtypes/Case4.json | 4 +- test/dds/xtypes/Case5.json | 4 +- test/dds/xtypes/Case6.json | 4 +- test/dds/xtypes/Case7.json | 4 +- test/dds/xtypes/Case8.json | 8 +- test/dds/xtypes/Case9.json | 6 +- ...her.cpp => TypeLookupServicePublisher.cpp} | 69 +- ...blisher.h => TypeLookupServicePublisher.h} | 28 +- ...er.cpp => TypeLookupServiceSubscriber.cpp} | 63 +- ...criber.h => TypeLookupServiceSubscriber.h} | 27 +- ...sTypes.h => TypeLookupServiceTestsTypes.h} | 9 +- ...up_main.cpp => TypeLookupService_main.cpp} | 10 +- .../idl/XtypesTestsTypeNoTypeObject.hpp | 178 ++++ .../idl/XtypesTestsTypeNoTypeObject.idl | 4 + .../idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp | 46 + .../idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp | 121 +++ ...XtypesTestsTypeNoTypeObjectPubSubTypes.cxx | 216 ++++ .../XtypesTestsTypeNoTypeObjectPubSubTypes.h | 133 +++ ...XtypesTestsTypeNoTypeObjectPubSubTypes.hpp | 123 +++ .../EDP/rtps/builtin/discovery/endpoint/EDP.h | 23 - .../discovery/endpoint/EDPSimpleListeners.h | 465 --------- .../rtps/builtin/discovery/participant/PDP.h | 17 - .../rtps/participant/RTPSParticipantImpl.h | 10 +- .../TypeObjectRegistry.hpp | 122 --- .../CMakeLists.txt | 64 +- .../TypeLookupServiceTests.cpp | 947 ++++++++++++++++++ .../dds/xtypes/typelookup/TypeLookupTests.cpp | 847 ---------------- .../scripts/update_generated_code_from_idl.sh | 182 ++-- 37 files changed, 2048 insertions(+), 1749 deletions(-) create mode 100644 test/dds/xtypes/Case0.json rename test/dds/xtypes/{TypeLookupPublisher.cpp => TypeLookupServicePublisher.cpp} (83%) rename test/dds/xtypes/{TypeLookupPublisher.h => TypeLookupServicePublisher.h} (81%) rename test/dds/xtypes/{TypeLookupSubscriber.cpp => TypeLookupServiceSubscriber.cpp} (85%) rename test/dds/xtypes/{TypeLookupSubscriber.h => TypeLookupServiceSubscriber.h} (81%) rename test/dds/xtypes/{TypeLookupTestsTypes.h => TypeLookupServiceTestsTypes.h} (79%) rename test/dds/xtypes/{TypeLookup_main.cpp => TypeLookupService_main.cpp} (93%) create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h create mode 100644 test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp delete mode 100644 test/mock/rtps/EDPSimpleListeners/rtps/builtin/discovery/endpoint/EDPSimpleListeners.h delete mode 100644 test/mock/rtps/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp rename test/unittest/dds/xtypes/{typelookup => type_lookup_service}/CMakeLists.txt (86%) create mode 100644 test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp delete mode 100644 test/unittest/dds/xtypes/typelookup/TypeLookupTests.cpp diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp index 5e679418782..cefce417707 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp @@ -868,4 +868,4 @@ void TypeLookupManager::remove_builtin_reply_writer_history_change( } // namespace dds } // namespace fastdds -} // namespace eprosima \ No newline at end of file +} // namespace eprosima diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp index fb87fe7e84e..9aab02e8f5c 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp @@ -331,4 +331,4 @@ void TypeLookupReplyListener::on_writer_change_received_by_all( } // namespace dds } // namespace fastdds -} // namespace eprosima \ No newline at end of file +} // namespace eprosima diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp index 14f06848081..6a5c800f3aa 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp @@ -482,4 +482,4 @@ void TypeLookupRequestListener::on_writer_change_received_by_all( } // namespace dds } // namespace fastdds -} // namespace eprosima \ No newline at end of file +} // namespace eprosima diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index fd66675c9d3..5cb2fe7d1ce 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -37,14 +37,15 @@ set(COMMON_SOURCE ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/RTPSDomain.cpp ) set(DDS_XTYPES_SOURCE ${COMMON_SOURCE} - TypeLookup_main.cpp - TypeLookupPublisher.cpp - TypeLookupSubscriber.cpp + TypeLookupService_main.cpp + TypeLookupServicePublisher.cpp + TypeLookupServiceSubscriber.cpp ) add_executable(DDSXtypesCommunication ${DDS_XTYPES_SOURCE}) @@ -67,6 +68,7 @@ target_link_libraries(DDSXtypesCommunication ############################################################################### # Standard tests list(APPEND TEST_DEFINITIONS + Case0 Case1 Case2 Case3 diff --git a/test/dds/xtypes/Case0.json b/test/dds/xtypes/Case0.json new file mode 100644 index 00000000000..6e13f14f9da --- /dev/null +++ b/test/dds/xtypes/Case0.json @@ -0,0 +1,23 @@ +{ + "description": "Case 1: Subscriber knows TypeNoTypeObject, Publisher knows Type1.", + "participants": [ + { + "kind": "subscriber", + "samples": "10", + "timeout": "5", + "expected_matches": "2", + "known_types": [ + "TypeNoTypeObject" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "5", + "expected_matches": "2", + "known_types": [ + "Type1" + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/Case1.json b/test/dds/xtypes/Case1.json index 80c66f16ca0..be49dfb41fe 100644 --- a/test/dds/xtypes/Case1.json +++ b/test/dds/xtypes/Case1.json @@ -4,7 +4,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "1", "known_types": [ "Type1" @@ -13,7 +13,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "1", "known_types": [ "Type1" diff --git a/test/dds/xtypes/Case10.json b/test/dds/xtypes/Case10.json index a4ce4a0af23..6d2b372c9b2 100644 --- a/test/dds/xtypes/Case10.json +++ b/test/dds/xtypes/Case10.json @@ -1,10 +1,10 @@ { - "description": "Case 10: Subscriber knows Type1 and Type2, Publisher1 knows Type1, Publisher2 knows Type1 and Type2.", + "description": "Case 10: Publisher knows Type1 and Type2, Subscriber1 knows Type1, Subscriber2 knows Type1 and Type2.", "participants": [ { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1", @@ -12,18 +12,18 @@ ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1" ] }, { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "4", "known_types": [ "Type1", diff --git a/test/dds/xtypes/Case2.json b/test/dds/xtypes/Case2.json index 02360501751..fb94f8e0ca4 100644 --- a/test/dds/xtypes/Case2.json +++ b/test/dds/xtypes/Case2.json @@ -4,7 +4,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1", @@ -14,7 +14,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1" diff --git a/test/dds/xtypes/Case3.json b/test/dds/xtypes/Case3.json index fab4ab071b5..8538c5288fb 100644 --- a/test/dds/xtypes/Case3.json +++ b/test/dds/xtypes/Case3.json @@ -4,7 +4,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1" @@ -13,7 +13,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type2" diff --git a/test/dds/xtypes/Case4.json b/test/dds/xtypes/Case4.json index fc7e75ccbfd..d382827c7de 100644 --- a/test/dds/xtypes/Case4.json +++ b/test/dds/xtypes/Case4.json @@ -4,7 +4,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "3", "known_types": [ "Type1", @@ -14,7 +14,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "3", "known_types": [ "Type1", diff --git a/test/dds/xtypes/Case5.json b/test/dds/xtypes/Case5.json index c2e926a0c18..7644865fc28 100644 --- a/test/dds/xtypes/Case5.json +++ b/test/dds/xtypes/Case5.json @@ -4,7 +4,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1", @@ -14,7 +14,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1", diff --git a/test/dds/xtypes/Case6.json b/test/dds/xtypes/Case6.json index 83ddf48094d..81010420fd7 100644 --- a/test/dds/xtypes/Case6.json +++ b/test/dds/xtypes/Case6.json @@ -4,7 +4,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1", @@ -14,7 +14,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1" diff --git a/test/dds/xtypes/Case7.json b/test/dds/xtypes/Case7.json index 25132fde6cf..bc2b3951032 100644 --- a/test/dds/xtypes/Case7.json +++ b/test/dds/xtypes/Case7.json @@ -4,7 +4,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1", @@ -14,7 +14,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1" diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/Case8.json index 28d7fb8a4b3..5cbfa00f097 100644 --- a/test/dds/xtypes/Case8.json +++ b/test/dds/xtypes/Case8.json @@ -2,18 +2,18 @@ "description": "Case 8: Subscriber from Type1, Publisher knows Type1...Type100 ", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "3", - "timeout": "10", + "timeout": "5", "expected_matches": "100", "known_types": [ "Type1" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "3", - "timeout": "10", + "timeout": "5", "expected_matches": "100", "known_types": [ "Type1", diff --git a/test/dds/xtypes/Case9.json b/test/dds/xtypes/Case9.json index b5721397faa..c9f14bc0739 100644 --- a/test/dds/xtypes/Case9.json +++ b/test/dds/xtypes/Case9.json @@ -4,7 +4,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1" @@ -13,7 +13,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "2", "known_types": [ "Type1" @@ -22,7 +22,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "10", + "timeout": "5", "expected_matches": "4", "known_types": [ "Type1", diff --git a/test/dds/xtypes/TypeLookupPublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp similarity index 83% rename from test/dds/xtypes/TypeLookupPublisher.cpp rename to test/dds/xtypes/TypeLookupServicePublisher.cpp index 80c205693b0..be1d0e64597 100644 --- a/test/dds/xtypes/TypeLookupPublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -13,10 +13,10 @@ // limitations under the License. /** - * @file TypeLookupPublisher.cpp + * @file TypeLookupServicePublisher.cpp */ -#include "TypeLookupPublisher.h" +#include "TypeLookupServicePublisher.h" #include #include @@ -42,7 +42,7 @@ using namespace eprosima::fastdds::rtps; static int PUB_DOMAIN_ID_ = 10; -TypeLookupPublisher::~TypeLookupPublisher() +TypeLookupServicePublisher::~TypeLookupServicePublisher() { for (auto it = known_types_.begin(); it != known_types_.end(); ++it) { @@ -71,7 +71,7 @@ TypeLookupPublisher::~TypeLookupPublisher() } } -void TypeLookupPublisher::create_type_creator_functions() +void TypeLookupServicePublisher::create_type_creator_functions() { PUBLISHER_TYPE_CREATOR_FUNCTION(Type1); PUBLISHER_TYPE_CREATOR_FUNCTION(Type2); @@ -176,9 +176,10 @@ void TypeLookupPublisher::create_type_creator_functions() PUBLISHER_TYPE_CREATOR_FUNCTION(Type100); PUBLISHER_TYPE_CREATOR_FUNCTION(TypeBig); PUBLISHER_TYPE_CREATOR_FUNCTION(TypeDep); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); } -bool TypeLookupPublisher::init( +bool TypeLookupServicePublisher::init( std::vector known_types) { create_type_creator_functions(); @@ -191,7 +192,7 @@ bool TypeLookupPublisher::init( ->create_participant(PUB_DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this); if (participant_ == nullptr) { - std::cout << "ERROR TypeLookupSubscriber: create_participant" << std::endl; + std::cout << "ERROR TypeLookupServicePublisher: create_participant" << std::endl; return false; } @@ -206,7 +207,7 @@ bool TypeLookupPublisher::init( return true; } -bool TypeLookupPublisher::create_known_type( +bool TypeLookupServicePublisher::create_known_type( const std::string& type) { // Find the type creator in the map @@ -218,18 +219,17 @@ bool TypeLookupPublisher::create_known_type( } else { - std::cout << "ERROR TypeLookupSubscriber: init unknown type: " << type << std::endl; + std::cout << "ERROR TypeLookupServicePublisher: init unknown type: " << type << std::endl; return false; } } template -bool TypeLookupPublisher::create_known_type_impl( +bool TypeLookupServicePublisher::create_known_type_impl( const std::string& type) { // Create a new PubKnownType for the given type PubKnownType a_type; - a_type.obj_ = new Type(); a_type.type_.reset(new TypePubSubType()); a_type.type_.register_type(participant_); @@ -238,7 +238,7 @@ bool TypeLookupPublisher::create_known_type_impl( a_type.publisher_ = participant_->create_publisher(PUBLISHER_QOS_DEFAULT, this); if (a_type.publisher_ == nullptr) { - std::cout << "ERROR TypeLookupSubscriber: create_publisher: " << type << std::endl; + std::cout << "ERROR TypeLookupServicePublisher: create_publisher: " << type << std::endl; return false; } @@ -249,7 +249,7 @@ bool TypeLookupPublisher::create_known_type_impl( participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); if (a_type.topic_ == nullptr) { - std::cout << "ERROR TypeLookupSubscriber: create_topic: " << type << std::endl; + std::cout << "ERROR TypeLookupServicePublisher: create_topic: " << type << std::endl; return false; } @@ -263,7 +263,7 @@ bool TypeLookupPublisher::create_known_type_impl( a_type.writer_ = a_type.publisher_->create_datawriter(a_type.topic_, wqos, this); if (a_type.writer_ == nullptr) { - std::cout << "ERROR TypeLookupSubscriber: create_datawriter" << std::endl; + std::cout << "ERROR TypeLookupServicePublisher: create_datawriter" << std::endl; return false; } @@ -282,7 +282,7 @@ bool TypeLookupPublisher::create_known_type_impl( return true; } -bool TypeLookupPublisher::check_registered_type( +bool TypeLookupServicePublisher::check_registered_type( const xtypes::TypeInformationParameter& type_info) { xtypes::TypeObject type_obj; @@ -290,7 +290,7 @@ bool TypeLookupPublisher::check_registered_type( type_info.type_information.complete().typeid_with_size().type_id(), type_obj); } -bool TypeLookupPublisher::wait_discovery( +bool TypeLookupServicePublisher::wait_discovery( uint32_t expected_matches, uint32_t timeout) { @@ -303,14 +303,13 @@ bool TypeLookupPublisher::wait_discovery( }); if (!result) { - std::cout << "TypeLookupPublisher discovery Timeout with matched = " - << matched_ << std::endl; + std::cout << "ERROR TypeLookupServicePublisher discovery Timeout with matched = " << matched_ << std::endl; return false; } return true; } -bool TypeLookupPublisher::run( +bool TypeLookupServicePublisher::run( uint32_t samples, uint32_t timeout) { @@ -346,7 +345,13 @@ bool TypeLookupPublisher::run( if (!result) { - std::cout << "TypeLookupPublisher run Timeout" << std::endl; + std::cout << "ERROR TypeLookupServicePublisher run Timeout" << std::endl; + + if (expected_matches_ != sent_samples_.size()) + { + std::cout << "expected_matches_ = " << expected_matches_ << + " matched_ = " << sent_samples_.size() << std::endl; + } for (auto& sent_sample : sent_samples_) { @@ -361,7 +366,7 @@ bool TypeLookupPublisher::run( return true; } -void TypeLookupPublisher::on_publication_matched( +void TypeLookupServicePublisher::on_publication_matched( DataWriter* /*writer*/, const PublicationMatchedStatus& info) { @@ -376,33 +381,37 @@ void TypeLookupPublisher::on_publication_matched( } else { - std::cout << "ERROR TypeLookupPublisher: info.current_count_change" << std::endl; + std::cout << "ERROR TypeLookupServicePublisher: info.current_count_change" << std::endl; } cv_.notify_all(); } -void TypeLookupPublisher::on_data_reader_discovery( +void TypeLookupServicePublisher::on_data_reader_discovery( DomainParticipant* /*participant*/, ReaderDiscoveryStatus reason, const SubscriptionBuiltinTopicData& info, bool& should_be_ignored) { should_be_ignored = false; + std::string type_name = info.type_name.to_string(); if (eprosima::fastdds::rtps::ReaderDiscoveryStatus::DISCOVERED_READER == reason) { // Check if the type is already created - if (nullptr == participant_->find_type(info.type_name.to_string())) + if (nullptr == participant_->find_type(type_name)) { - if (check_registered_type(info.type_information)) - { - create_known_types_threads.emplace_back(&TypeLookupPublisher::create_known_type, this, - info.type_name.to_string()); - } - else + // Check type registration + const bool should_be_registered = type_name.find("NoTypeObject") != std::string::npos; + + if ((should_be_registered && check_registered_type(info.type_information)) || + (!should_be_registered && !check_registered_type(info.type_information))) { - throw TypeLookupPublisherTypeNotRegisteredException(info.type_name.to_string()); + throw TypeLookupServicePublisherTypeRegistryException(type_name + + (should_be_registered ? " registered" : " not registered")); } + + // Create new publisher for the type + create_known_types_threads.emplace_back(&TypeLookupServicePublisher::create_known_type, this, type_name); } } } diff --git a/test/dds/xtypes/TypeLookupPublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h similarity index 81% rename from test/dds/xtypes/TypeLookupPublisher.h rename to test/dds/xtypes/TypeLookupServicePublisher.h index 176c9e1625d..f1aaa58027b 100644 --- a/test/dds/xtypes/TypeLookupPublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -13,19 +13,19 @@ // limitations under the License. /** - * @file TypeLookupPublisher.h + * @file TypeLookupServicePublisher.h * */ -#ifndef _TYPELOOKUPTEST_PUBLISHER_H_ -#define _TYPELOOKUPTEST_PUBLISHER_H_ +#ifndef _TYPELOOKUPSERVICETEST_PUBLISHER_H_ +#define _TYPELOOKUPSERVICETEST_PUBLISHER_H_ #include #include #include #include -#include "TypeLookupTestsTypes.h" +#include "TypeLookupServiceTestsTypes.h" #include #include @@ -37,13 +37,13 @@ namespace eprosima { namespace fastdds { namespace dds { -class TypeLookupPublisherTypeNotRegisteredException : public std::runtime_error +class TypeLookupServicePublisherTypeRegistryException : public std::runtime_error { public: - TypeLookupPublisherTypeNotRegisteredException( - std::string type_name) - : std::runtime_error("Type: " + type_name + " not registered in TypeLookupPublisher") + TypeLookupServicePublisherTypeRegistryException( + std::string msg) + : std::runtime_error("Type: " + msg + " in TypeLookupServicePublisher") { } @@ -52,7 +52,6 @@ class TypeLookupPublisherTypeNotRegisteredException : public std::runtime_error struct PubKnownType { TypeSupport type_; - void* obj_; void* type_sup_; Publisher* publisher_ = nullptr; DataWriter* writer_ = nullptr; @@ -63,21 +62,22 @@ struct PubKnownType // Define a macro to simplify type registration #define PUBLISHER_TYPE_CREATOR_FUNCTION(Type) \ - type_creator_functions_[#Type] = std::bind(&TypeLookupPublisher::create_known_type_impl, \ + type_creator_functions_[#Type] = std::bind(&TypeLookupServicePublisher::create_known_type_impl, \ this, \ std::placeholders::_1) -class TypeLookupPublisher +class TypeLookupServicePublisher : public DomainParticipantListener { public: - TypeLookupPublisher() + TypeLookupServicePublisher() { } - ~TypeLookupPublisher(); + ~TypeLookupServicePublisher(); void create_type_creator_functions(); @@ -133,4 +133,4 @@ class TypeLookupPublisher } // fastdds } // eprosima -#endif /* _TYPELOOKUPTEST_PUBLISHER_H_ */ +#endif /* _TYPELOOKUPSERVICETEST_PUBLISHER_H_ */ diff --git a/test/dds/xtypes/TypeLookupSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp similarity index 85% rename from test/dds/xtypes/TypeLookupSubscriber.cpp rename to test/dds/xtypes/TypeLookupServiceSubscriber.cpp index 62a5e6eed7f..06f54f81cc5 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -13,11 +13,11 @@ // limitations under the License. /** - * @file TypeLookupSubscriber.cpp + * @file TypeLookupServiceSubscriber.cpp * */ -#include "TypeLookupSubscriber.h" +#include "TypeLookupServiceSubscriber.h" #include #include @@ -38,7 +38,7 @@ using namespace eprosima::fastdds::rtps; static int SUB_DOMAIN_ID_ = 10; -TypeLookupSubscriber::~TypeLookupSubscriber() +TypeLookupServiceSubscriber::~TypeLookupServiceSubscriber() { for (auto it = known_types_.begin(); it != known_types_.end(); ++it) { @@ -67,7 +67,7 @@ TypeLookupSubscriber::~TypeLookupSubscriber() } } -void TypeLookupSubscriber::create_type_creator_functions() +void TypeLookupServiceSubscriber::create_type_creator_functions() { SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type1); SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type2); @@ -172,9 +172,11 @@ void TypeLookupSubscriber::create_type_creator_functions() SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type100); SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeBig); SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeDep); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); + } -bool TypeLookupSubscriber::init( +bool TypeLookupServiceSubscriber::init( std::vector known_types) { create_type_creator_functions(); @@ -191,7 +193,7 @@ bool TypeLookupSubscriber::init( ->create_participant(SUB_DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this, mask); if (participant_ == nullptr) { - std::cout << "ERROR TypeLookupSubscriber: create_participant" << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber: create_participant" << std::endl; return false; } @@ -206,7 +208,7 @@ bool TypeLookupSubscriber::init( return true; } -bool TypeLookupSubscriber::create_known_type( +bool TypeLookupServiceSubscriber::create_known_type( const std::string& type) { // Check if the type is already created @@ -225,13 +227,13 @@ bool TypeLookupSubscriber::create_known_type( } else { - std::cout << "ERROR TypeLookupSubscriber: init unknown type: " << type << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber: init unknown type: " << type << std::endl; return false; } } template -bool TypeLookupSubscriber::create_known_type_impl( +bool TypeLookupServiceSubscriber::create_known_type_impl( const std::string& type) { // Create a new PubKnownType for the given type @@ -244,7 +246,7 @@ bool TypeLookupSubscriber::create_known_type_impl( a_type.subscriber_ = participant_->create_subscriber(SUBSCRIBER_QOS_DEFAULT, nullptr); if (a_type.subscriber_ == nullptr) { - std::cout << "ERROR TypeLookupSubscriber: create_subscriber" << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber: create_subscriber" << std::endl; return false; } @@ -255,7 +257,7 @@ bool TypeLookupSubscriber::create_known_type_impl( participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); if (a_type.topic_ == nullptr) { - std::cout << "ERROR TypeLookupSubscriber: create_topic" << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber: create_topic" << std::endl; return false; } @@ -266,7 +268,7 @@ bool TypeLookupSubscriber::create_known_type_impl( a_type.reader_ = a_type.subscriber_->create_datareader(a_type.topic_, rqos); if (a_type.reader_ == nullptr) { - std::cout << "ERROR TypeLookupSubscriber: create_datareader" << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber: create_datareader" << std::endl; return false; } @@ -285,7 +287,7 @@ bool TypeLookupSubscriber::create_known_type_impl( return true; } -bool TypeLookupSubscriber::check_registered_type( +bool TypeLookupServiceSubscriber::check_registered_type( const xtypes::TypeInformationParameter& type_info) { xtypes::TypeObject type_obj; @@ -293,7 +295,7 @@ bool TypeLookupSubscriber::check_registered_type( type_info.type_information.complete().typeid_with_size().type_id(), type_obj); } -bool TypeLookupSubscriber::wait_discovery( +bool TypeLookupServiceSubscriber::wait_discovery( uint32_t expected_matches, uint32_t timeout) { @@ -306,14 +308,13 @@ bool TypeLookupSubscriber::wait_discovery( }); if (!result) { - std::cout << "TypeLookupSubscriber discovery Timeout with matched = " - << matched_ << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber discovery Timeout with matched = " << matched_ << std::endl; return false; } return true; } -bool TypeLookupSubscriber::run( +bool TypeLookupServiceSubscriber::run( uint32_t samples, uint32_t timeout) { @@ -339,7 +340,7 @@ bool TypeLookupSubscriber::run( if (!result) { - std::cout << "TypeLookupSubscriber run Timeout" << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber run Timeout" << std::endl; if (expected_matches_ != received_samples_.size()) { @@ -360,7 +361,7 @@ bool TypeLookupSubscriber::run( return true; } -void TypeLookupSubscriber::on_subscription_matched( +void TypeLookupServiceSubscriber::on_subscription_matched( DataReader* /*reader*/, const SubscriptionMatchedStatus& info) { @@ -375,12 +376,12 @@ void TypeLookupSubscriber::on_subscription_matched( } else { - std::cout << "ERROR TypeLookupSubscriber: info.current_count_change" << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber: info.current_count_change" << std::endl; } cv_.notify_all(); } -void TypeLookupSubscriber::on_data_available( +void TypeLookupServiceSubscriber::on_data_available( DataReader* reader) { SampleInfo info; @@ -401,28 +402,32 @@ void TypeLookupSubscriber::on_data_available( } } -void TypeLookupSubscriber::on_data_writer_discovery( +void TypeLookupServiceSubscriber::on_data_writer_discovery( DomainParticipant* /*participant*/, WriterDiscoveryStatus reason, const PublicationBuiltinTopicData& info, bool& should_be_ignored) { should_be_ignored = false; + std::string type_name = info.type_name.to_string(); if (eprosima::fastdds::rtps::WriterDiscoveryStatus::DISCOVERED_WRITER == reason) { // Check if the type is already created if (nullptr == participant_->find_type(info.type_name.to_string())) { - if (check_registered_type(info.type_information)) - { - create_known_types_threads.emplace_back(&TypeLookupSubscriber::create_known_type, this, - info.type_name.to_string()); - } - else + // Check type registration + const bool should_be_registered = type_name.find("NoTypeObject") != std::string::npos; + + if ((should_be_registered && check_registered_type(info.type_information)) || + (!should_be_registered && !check_registered_type(info.type_information))) { - throw TypeLookupSubscriberTypeNotRegisteredException(info.type_name.to_string()); + throw TypeLookupServiceSubscriberTypeRegistryException(type_name + + (should_be_registered ? " registered" : " not registered")); } + + // Create new publisher for the type + create_known_types_threads.emplace_back(&TypeLookupServiceSubscriber::create_known_type, this, type_name); } } } diff --git a/test/dds/xtypes/TypeLookupSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h similarity index 81% rename from test/dds/xtypes/TypeLookupSubscriber.h rename to test/dds/xtypes/TypeLookupServiceSubscriber.h index e6b8254000a..8d784d8f51a 100644 --- a/test/dds/xtypes/TypeLookupSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -13,12 +13,12 @@ // limitations under the License. /** - * @file TypeLookupSubscriber.h + * @file TypeLookupServiceSubscriber.h * */ -#ifndef _TYPELOOKUPTEST_SUBSCRIBER_H_ -#define _TYPELOOKUPTEST_SUBSCRIBER_H_ +#ifndef _TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ +#define _TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ #include #include @@ -26,7 +26,7 @@ #include #include -#include "TypeLookupTestsTypes.h" +#include "TypeLookupServiceTestsTypes.h" #include #include @@ -39,13 +39,13 @@ namespace eprosima { namespace fastdds { namespace dds { -class TypeLookupSubscriberTypeNotRegisteredException : public std::runtime_error +class TypeLookupServiceSubscriberTypeRegistryException : public std::runtime_error { public: - TypeLookupSubscriberTypeNotRegisteredException( - std::string type_name) - : std::runtime_error("Type: " + type_name + " not registered in TypeLookupSubscriber") + TypeLookupServiceSubscriberTypeRegistryException( + std::string msg) + : std::runtime_error("Type: " + msg + " in TypeLookupServiceSubscriber") { } @@ -65,20 +65,21 @@ struct SubKnownType // Define a macro to simplify type registration #define SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type) \ - type_creator_functions_[#Type] = std::bind(&TypeLookupSubscriber::create_known_type_impl, \ + type_creator_functions_[#Type] = std::bind(&TypeLookupServiceSubscriber::create_known_type_impl, \ this, \ std::placeholders::_1) -class TypeLookupSubscriber +class TypeLookupServiceSubscriber : public DomainParticipantListener { public: - TypeLookupSubscriber() + TypeLookupServiceSubscriber() { } - ~TypeLookupSubscriber(); + ~TypeLookupServiceSubscriber(); void create_type_creator_functions(); @@ -139,4 +140,4 @@ class TypeLookupSubscriber } // eprosima -#endif /* _TYPELOOKUPTEST_SUBSCRIBER_H_ */ +#endif /* _TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ */ diff --git a/test/dds/xtypes/TypeLookupTestsTypes.h b/test/dds/xtypes/TypeLookupServiceTestsTypes.h similarity index 79% rename from test/dds/xtypes/TypeLookupTestsTypes.h rename to test/dds/xtypes/TypeLookupServiceTestsTypes.h index 14b097a5179..04eca5bc90b 100644 --- a/test/dds/xtypes/TypeLookupTestsTypes.h +++ b/test/dds/xtypes/TypeLookupServiceTestsTypes.h @@ -13,17 +13,18 @@ // limitations under the License. /** - * @file TypeLookupTestsTypes.h + * @file TypeLookupServiceTestsTypes.h * */ -#ifndef _TYPELOOKUPTEST_TYPES_H_ -#define _TYPELOOKUPTEST_TYPES_H_ +#ifndef _TYPELOOKUPSERVICETEST_TYPES_H_ +#define _TYPELOOKUPSERVICETEST_TYPES_H_ #include "idl/XtypesTestsType1PubSubTypes.hpp" #include "idl/XtypesTestsType2PubSubTypes.hpp" #include "idl/XtypesTestsType3PubSubTypes.hpp" #include "idl/XtypesTestsTypeBigPubSubTypes.hpp" #include "idl/XtypesTestsTypeDepPubSubTypes.hpp" +#include "idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp" -#endif /* _TYPELOOKUPTEST_TYPES_H_ */ +#endif /* _TYPELOOKUPSERVICETEST_TYPES_H_ */ diff --git a/test/dds/xtypes/TypeLookup_main.cpp b/test/dds/xtypes/TypeLookupService_main.cpp similarity index 93% rename from test/dds/xtypes/TypeLookup_main.cpp rename to test/dds/xtypes/TypeLookupService_main.cpp index a8d0834a0b6..7d02268a2d5 100644 --- a/test/dds/xtypes/TypeLookup_main.cpp +++ b/test/dds/xtypes/TypeLookupService_main.cpp @@ -13,12 +13,12 @@ // limitations under the License. /** - * @file TypeLookup_main.cpp + * @file TypeLookupService_main.cpp * */ -#include "TypeLookupPublisher.h" -#include "TypeLookupSubscriber.h" +#include "TypeLookupServicePublisher.h" +#include "TypeLookupServiceSubscriber.h" #include #include @@ -117,13 +117,13 @@ int main( { switch (args.kind){ case 1: { - eprosima::fastdds::dds::TypeLookupPublisher pub; + eprosima::fastdds::dds::TypeLookupServicePublisher pub; return (pub.init(args.known_types) && pub.wait_discovery(args.expected_matches, args.timeout) && pub.run(args.samples, args.timeout)) ? 0 : -1; } case 2: { - eprosima::fastdds::dds::TypeLookupSubscriber sub; + eprosima::fastdds::dds::TypeLookupServiceSubscriber sub; return (sub.init(args.known_types) && sub.wait_discovery(args.expected_matches, args.timeout) && sub.run(args.samples, args.timeout)) ? 0 : -1; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp new file mode 100644 index 00000000000..feceafd70e5 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp @@ -0,0 +1,178 @@ +// 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 XtypesTestsTypeNoTypeObject.hpp + * This header file contains the declaration of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_HPP + +#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(XTYPESTESTSTYPENOTYPEOBJECT_SOURCE) +#define XTYPESTESTSTYPENOTYPEOBJECT_DllAPI __declspec( dllexport ) +#else +#define XTYPESTESTSTYPENOTYPEOBJECT_DllAPI __declspec( dllimport ) +#endif // XTYPESTESTSTYPENOTYPEOBJECT_SOURCE +#else +#define XTYPESTESTSTYPENOTYPEOBJECT_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define XTYPESTESTSTYPENOTYPEOBJECT_DllAPI +#endif // _WIN32 + +/*! + * @brief This class represents the structure TypeNoTypeObject defined by the user in the IDL file. + * @ingroup XtypesTestsTypeNoTypeObject + */ +class TypeNoTypeObject +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport TypeNoTypeObject() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~TypeNoTypeObject() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object TypeNoTypeObject that will be copied. + */ + eProsima_user_DllExport TypeNoTypeObject( + const TypeNoTypeObject& x) + { + m_index = x.m_index; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object TypeNoTypeObject that will be copied. + */ + eProsima_user_DllExport TypeNoTypeObject( + TypeNoTypeObject&& x) noexcept + { + m_index = x.m_index; + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object TypeNoTypeObject that will be copied. + */ + eProsima_user_DllExport TypeNoTypeObject& operator =( + const TypeNoTypeObject& x) + { + + m_index = x.m_index; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object TypeNoTypeObject that will be copied. + */ + eProsima_user_DllExport TypeNoTypeObject& operator =( + TypeNoTypeObject&& x) noexcept + { + + m_index = x.m_index; + return *this; + } + + /*! + * @brief Comparison operator. + * @param x TypeNoTypeObject object to compare. + */ + eProsima_user_DllExport bool operator ==( + const TypeNoTypeObject& x) const + { + return (m_index == x.m_index); + } + + /*! + * @brief Comparison operator. + * @param x TypeNoTypeObject object to compare. + */ + eProsima_user_DllExport bool operator !=( + const TypeNoTypeObject& x) const + { + return !(*this == x); + } + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint16_t _index) + { + m_index = _index; + } + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } + + + +private: + + uint16_t m_index{0}; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPENOTYPEOBJECT_HPP_ + + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl new file mode 100644 index 00000000000..e3a298754c8 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl @@ -0,0 +1,4 @@ +struct TypeNoTypeObject +{ + unsigned short index; +}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp new file mode 100644 index 00000000000..03590c5fa5b --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp @@ -0,0 +1,46 @@ +// 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 XtypesTestsTypeNoTypeObjectCdrAux.hpp + * This source file contains some definitions of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECTCDRAUX_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECTCDRAUX_HPP + +#include "XtypesTestsTypeNoTypeObject.hpp" + +constexpr uint32_t TypeNoTypeObject_max_cdr_typesize {6UL}; +constexpr uint32_t TypeNoTypeObject_max_key_cdr_typesize {0UL}; + + +namespace eprosima { +namespace fastcdr { + +class Cdr; +class CdrSizeCalculator; + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const TypeNoTypeObject& data); + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECTCDRAUX_HPP + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp new file mode 100644 index 00000000000..9bfd7914409 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp @@ -0,0 +1,121 @@ +// 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 XtypesTestsTypeNoTypeObjectCdrAux.ipp + * This source file contains some declarations of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECTCDRAUX_IPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECTCDRAUX_IPP + +#include "XtypesTestsTypeNoTypeObjectCdrAux.hpp" + +#include +#include + + +#include +using namespace eprosima::fastcdr::exception; + +namespace eprosima { +namespace fastcdr { + +template<> +eProsima_user_DllExport size_t calculate_serialized_size( + eprosima::fastcdr::CdrSizeCalculator& calculator, + const TypeNoTypeObject& data, + size_t& current_alignment) +{ + static_cast(data); + + eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); + size_t calculated_size {calculator.begin_calculate_type_serialized_size( + eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + current_alignment)}; + + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.index(), current_alignment); + + + calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); + + return calculated_size; +} + +template<> +eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& scdr, + const TypeNoTypeObject& data) +{ + eprosima::fastcdr::Cdr::state current_state(scdr); + scdr.begin_serialize_type(current_state, + eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); + + scdr + << eprosima::fastcdr::MemberId(0) << data.index() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + TypeNoTypeObject& data) +{ + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, + [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool + { + bool ret_value = true; + switch (mid.id) + { + case 0: + dcdr >> data.index(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const TypeNoTypeObject& data) +{ + + static_cast(scdr); + static_cast(data); + scdr << data.index(); + +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECTCDRAUX_IPP + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx new file mode 100644 index 00000000000..304252537d7 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx @@ -0,0 +1,216 @@ +// 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 XtypesTestsTypeNoTypeObjectPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "XtypesTestsTypeNoTypeObjectPubSubTypes.hpp" + +#include +#include + +#include "XtypesTestsTypeNoTypeObjectCdrAux.hpp" +using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +TypeNoTypeObjectPubSubType::TypeNoTypeObjectPubSubType() +{ + set_name("TypeNoTypeObject"); + uint32_t type_size = TypeNoTypeObject_max_cdr_typesize; + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + max_serialized_type_size = type_size + 4; /*encapsulation*/ + is_compute_key_provided = false; + uint32_t key_length = TypeNoTypeObject_max_key_cdr_typesize > 16 ? TypeNoTypeObject_max_key_cdr_typesize : 16; + key_buffer_ = reinterpret_cast(malloc(key_length)); + memset(key_buffer_, 0, key_length); +} + +TypeNoTypeObjectPubSubType::~TypeNoTypeObjectPubSubType() +{ + if (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool TypeNoTypeObjectPubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const TypeNoTypeObject* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length + payload.length = static_cast(ser.get_serialized_data_length()); + return true; +} + +bool TypeNoTypeObjectPubSubType::deserialize( + SerializedPayload_t& payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + TypeNoTypeObject* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +uint32_t TypeNoTypeObjectPubSubType::calculate_serialized_size( + const void* const data, + DataRepresentationId_t data_representation) +{ + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +} + +void* TypeNoTypeObjectPubSubType::create_data() +{ + return reinterpret_cast(new TypeNoTypeObject()); +} + +void TypeNoTypeObjectPubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool TypeNoTypeObjectPubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + TypeNoTypeObject data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +bool TypeNoTypeObjectPubSubType::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const TypeNoTypeObject* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), + TypeNoTypeObject_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || TypeNoTypeObject_max_key_cdr_typesize > 16) + { + md5_.init(); + md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); + md5_.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle.value[i] = md5_.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle.value[i] = key_buffer_[i]; + } + } + return true; +} + +void TypeNoTypeObjectPubSubType::register_type_object_representation() +{ + EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, + "TypeObject type representation support disabled in generated code"); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsTypeNoTypeObjectCdrAux.ipp" diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h new file mode 100644 index 00000000000..5ee6c513cfa --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file XtypesTestsTypeNoTypeObjectPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_XTYPESTESTSTYPENOTYPEOBJECT_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_XTYPESTESTSTYPENOTYPEOBJECT_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeNoTypeObject.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated XtypesTestsTypeNoTypeObject is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type TypeNoTypeObject defined by the user in the IDL file. + * @ingroup XtypesTestsTypeNoTypeObject + */ +class TypeNoTypeObjectPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef TypeNoTypeObject type; + + eProsima_user_DllExport TypeNoTypeObjectPubSubType(); + + eProsima_user_DllExport ~TypeNoTypeObjectPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPENOTYPEOBJECT_PUBSUBTYPES_H_ + diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp new file mode 100644 index 00000000000..64044e027c7 --- /dev/null +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp @@ -0,0 +1,123 @@ +// 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 XtypesTestsTypeNoTypeObjectPubSubTypes.hpp + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_PUBSUBTYPES_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_PUBSUBTYPES_HPP + +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeNoTypeObject.hpp" + + +#if !defined(FASTDDS_GEN_API_VER) || (FASTDDS_GEN_API_VER != 3) +#error \ + Generated XtypesTestsTypeNoTypeObject is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // FASTDDS_GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type TypeNoTypeObject defined by the user in the IDL file. + * @ingroup XtypesTestsTypeNoTypeObject + */ +class TypeNoTypeObjectPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef TypeNoTypeObject type; + + eProsima_user_DllExport TypeNoTypeObjectPubSubType(); + + eProsima_user_DllExport ~TypeNoTypeObjectPubSubType() override; + + eProsima_user_DllExport bool serialize( + const void* const data, + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + void* data) override; + + eProsima_user_DllExport uint32_t calculate_serialized_size( + const void* const data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool compute_key( + eprosima::fastdds::rtps::SerializedPayload_t& payload, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport bool compute_key( + const void* const data, + eprosima::fastdds::rtps::InstanceHandle_t& ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* create_data() override; + + eProsima_user_DllExport void delete_data( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + +private: + + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; + +}; + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_PUBSUBTYPES_HPP + diff --git a/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h b/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h index bc67c0070ae..4a7e3a0ab6c 100644 --- a/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h +++ b/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h @@ -35,18 +35,6 @@ class EDP { public: - EDP() - { - } - - EDP( - PDP* p, - RTPSParticipantImpl* part) - { - mp_PDP = p; - mp_RTPSParticipant = part; - } - virtual ~EDP() { @@ -112,14 +100,6 @@ class EDP const GUID_t& participant_guid, const GUID_t& reader_guid)); - MOCK_METHOD0(get_temporary_writer_proxies_pool, ProxyPool& ()); - - MOCK_METHOD0(get_temporary_reader_proxies_pool, ProxyPool& ()); - - MOCK_METHOD2(pairing_writer_proxy_with_any_local_reader, bool(const GUID_t&, WriterProxyData*)); - - MOCK_METHOD2(pairing_reader_proxy_with_any_local_writer, bool(const GUID_t&, ReaderProxyData*)); - #if HAVE_SECURITY MOCK_METHOD3(pairing_reader_proxy_with_local_writer, bool(const GUID_t& local_writer, const GUID_t& remote_participant_guid, ReaderProxyData & rdata)); @@ -148,9 +128,6 @@ class EDP } #endif // if HAVE_SECURITY - - eprosima::fastdds::rtps::RTPSParticipantImpl* mp_RTPSParticipant; - eprosima::fastdds::rtps::PDP* mp_PDP; }; } //namespace rtps diff --git a/test/mock/rtps/EDPSimpleListeners/rtps/builtin/discovery/endpoint/EDPSimpleListeners.h b/test/mock/rtps/EDPSimpleListeners/rtps/builtin/discovery/endpoint/EDPSimpleListeners.h deleted file mode 100644 index 3c3a02da246..00000000000 --- a/test/mock/rtps/EDPSimpleListeners/rtps/builtin/discovery/endpoint/EDPSimpleListeners.h +++ /dev/null @@ -1,465 +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 EDPSimpleListeners.h - * - */ - -#ifndef EDPSIMPLELISTENER_H_ -#define EDPSIMPLELISTENER_H_ -#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC - -#include -#include - -#include - -#include -#include - -#include - -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -using ParameterList = eprosima::fastdds::dds::ParameterList; - -// Release reader lock to avoid ABBA lock. PDP mutex should always be first. -// Keep change information on local variables to check consistency later -#define PREVENT_PDP_DEADLOCK(reader, change, pdp) \ - GUID_t writer_guid = (change)->writerGUID; \ - SequenceNumber_t seq_num = (change)->sequenceNumber; \ - (reader)->getMutex().unlock(); \ - std::unique_lock lock(*((pdp)->getMutex())); \ - (reader)->getMutex().lock(); \ - \ - if ((ALIVE != (change)->kind) || \ - (seq_num != (change)->sequenceNumber) || \ - (writer_guid != (change)->writerGUID)) \ - { \ - return; \ - } \ - (void)seq_num - -namespace eprosima { -namespace fastrtps { -namespace rtps { - -class RTPSReader; -struct CacheChange_t; - -class EDPListener : public ReaderListener, public WriterListener -{ -public: - - bool computeKey( - CacheChange_t* change) - { - return ParameterList::readInstanceHandleFromCDRMsg(change, fastdds::dds::PID_ENDPOINT_GUID); - } - -}; - -class EDPBasePUBListener : public EDPListener -{ -public: - - EDPBasePUBListener() = default; - - virtual ~EDPBasePUBListener() = default; - -protected: - - void add_writer_from_change( - RTPSReader* reader, - ReaderHistory* reader_history, - CacheChange_t* change, - EDP* edp, - bool release_change = true) - { - std::cout << "EDPBasePUBListener::add_writer_from_change" << std::endl; - //LOAD INFORMATION IN DESTINATION WRITER PROXY DATA - const NetworkFactory& network = edp->mp_RTPSParticipant->network_factory(); - CDRMessage_t tempMsg(change->serializedPayload); - auto temp_writer_data = edp->get_temporary_writer_proxies_pool().get(); - - if (temp_writer_data->readFromCDRMessage(&tempMsg, network, - edp->mp_RTPSParticipant->has_shm_transport(), true)) - { - if (temp_writer_data->guid().guidPrefix == edp->mp_RTPSParticipant->getGuid().guidPrefix) - { - EPROSIMA_LOG_INFO(RTPS_EDP, "Message from own RTPSParticipant, ignoring"); - return; - } - - // Callback function to continue after typelookup is complete - fastdds::dds::builtin::AsyncGetTypeWriterCallback after_typelookup_callback = - [change, edp, release_change, &network] - (eprosima::ProxyPool::smart_ptr& temp_writer_data) - { - //LOAD INFORMATION IN DESTINATION WRITER PROXY DATA - auto copy_data_fun = [&temp_writer_data, &network]( - WriterProxyData* data, - bool updating, - const ParticipantProxyData& participant_data) - { - if (!temp_writer_data->has_locators()) - { - temp_writer_data->set_remote_locators(participant_data.default_locators, - network, - true); - } - - if (updating && !data->is_update_allowed(*temp_writer_data)) - { - EPROSIMA_LOG_WARNING(RTPS_EDP, - "Received incompatible update for WriterQos. writer_guid = " << - data->guid()); - } - *data = *temp_writer_data; - return true; - }; - - GUID_t participant_guid; - WriterProxyData* writer_data = - edp->mp_PDP->addWriterProxyData( - temp_writer_data->guid(), participant_guid, copy_data_fun); - - // release temporary proxy - temp_writer_data.reset(); - - if (writer_data != nullptr) - { - edp->pairing_writer_proxy_with_any_local_reader(participant_guid, writer_data); - } - else - { - EPROSIMA_LOG_WARNING(RTPS_EDP, "Received message from UNKNOWN RTPSParticipant, removing"); - } - }; - - // Remove change from history. - reader_history->remove_change(reader_history->find_change(change), release_change); - - // At this point, we can release the reader lock because the change is not used - reader->getMutex().unlock(); - - // Check if TypeInformation exists to start the typelookup service - if (temp_writer_data->type_information().assigned()) - { - edp->mp_RTPSParticipant->typelookup_manager()->async_get_type( - temp_writer_data, - after_typelookup_callback); - } - // If TypeInformation does not exists, try fallbacks - else - { - EPROSIMA_LOG_WARNING(RTPS_EDP, "EDPBasePUBListener: No TypeInformation. Using fallbacks"); - after_typelookup_callback(temp_writer_data); - } - - // Take the reader lock again if needed. - reader->getMutex().lock(); - } - } - -}; - -class EDPBaseSUBListener : public EDPListener -{ -public: - - EDPBaseSUBListener() = default; - - virtual ~EDPBaseSUBListener() = default; - -protected: - - void add_reader_from_change( - RTPSReader* reader, - ReaderHistory* reader_history, - CacheChange_t* change, - EDP* edp, - bool release_change = true) - { - std::cout << "EDPBaseSUBListener::add_reader_from_change" << std::endl; - //LOAD INFORMATION IN TEMPORAL READER PROXY DATA - const NetworkFactory& network = edp->mp_RTPSParticipant->network_factory(); - CDRMessage_t tempMsg(change->serializedPayload); - auto temp_reader_data = edp->get_temporary_reader_proxies_pool().get(); - - if (temp_reader_data->readFromCDRMessage(&tempMsg, network, - edp->mp_RTPSParticipant->has_shm_transport(), true)) - { - if (temp_reader_data->guid().guidPrefix == edp->mp_RTPSParticipant->getGuid().guidPrefix) - { - EPROSIMA_LOG_INFO(RTPS_EDP, "From own RTPSParticipant, ignoring"); - return; - } - - // Callback function to continue after typelookup is complete - fastdds::dds::builtin::AsyncGetTypeReaderCallback after_typelookup_callback = - [change, edp, release_change, &network] - (eprosima::ProxyPool::smart_ptr& temp_reader_data) - { - auto copy_data_fun = [&temp_reader_data, &network]( - ReaderProxyData* data, - bool updating, - const ParticipantProxyData& participant_data) - { - if (!temp_reader_data->has_locators()) - { - temp_reader_data->set_remote_locators(participant_data.default_locators, - network, - true); - } - - if (updating && !data->is_update_allowed(*temp_reader_data)) - { - EPROSIMA_LOG_WARNING(RTPS_EDP, - "Received incompatible update for ReaderQos. reader_guid = " << - data->guid()); - } - *data = *temp_reader_data; - return true; - }; - - //LOOK IF IS AN UPDATED INFORMATION - GUID_t participant_guid; - ReaderProxyData* reader_data = - edp->mp_PDP->addReaderProxyData( - temp_reader_data->guid(), participant_guid, copy_data_fun); - - // Release the temporary proxy - temp_reader_data.reset(); - - if (reader_data != nullptr) //ADDED NEW DATA - { - edp->pairing_reader_proxy_with_any_local_writer(participant_guid, reader_data); - } - else - { - EPROSIMA_LOG_WARNING(RTPS_EDP, "From UNKNOWN RTPSParticipant, removing"); - } - }; - - // Remove change from history. - reader_history->remove_change(reader_history->find_change(change), release_change); - - // At this point, we can release the reader lock because the change is not used - reader->getMutex().unlock(); - - // Check if TypeInformation exists to start the typelookup service - if (temp_reader_data->type_information().assigned()) - { - edp->mp_RTPSParticipant->typelookup_manager()->async_get_type( - temp_reader_data, - after_typelookup_callback); - } - // If TypeInformation does not exists, try fallbacks - else - { - EPROSIMA_LOG_WARNING(RTPS_EDP, "EDPBasePUBListener: No TypeInformation. Using fallbacks"); - after_typelookup_callback(temp_reader_data); - } - - // Take the reader lock again if needed. - reader->getMutex().lock(); - } - } - -}; - - -class EDPSimplePUBListener : public EDPBasePUBListener -{ -public: - - EDPSimplePUBListener( - EDPSimple* sedp) - : sedp_(sedp) - { - } - - virtual ~EDPSimplePUBListener() = default; - - void onNewCacheChangeAdded( - RTPSReader* reader, - const CacheChange_t* const change_in) override - { - CacheChange_t* change = (CacheChange_t*)change_in; - //std::lock_guard guard(*this->sedp_->publications_reader_.first->getMutex()); - EPROSIMA_LOG_INFO(RTPS_EDP, ""); - if (!computeKey(change)) - { - EPROSIMA_LOG_WARNING(RTPS_EDP, "Received change with no Key"); - } - - ReaderHistory* reader_history = -#if HAVE_SECURITY - reader == sedp_->publications_secure_reader_.first ? - sedp_->publications_secure_reader_.second : -#endif // if HAVE_SECURITY - sedp_->publications_reader_.second; - - if (change->kind == ALIVE) - { - PREVENT_PDP_DEADLOCK(reader, change, sedp_->mp_PDP); - - // Note: change is removed from history inside this method. - - - std::cout << "EERRORERRORERRORERRORERRORERRORERRORERROR" << std::endl; - - - add_writer_from_change(reader, reader_history, change, sedp_); - } - else - { - //REMOVE WRITER FROM OUR READERS: - EPROSIMA_LOG_INFO(RTPS_EDP, "Disposed Remote Writer, removing..."); - GUID_t writer_guid = iHandle2GUID(change->instanceHandle); - //Removing change from history - reader_history->remove_change(change); - reader->getMutex().unlock(); - this->sedp_->mp_PDP->removeWriterProxyData(writer_guid); - reader->getMutex().lock(); - } - } - - void onWriterChangeReceivedByAll( - RTPSWriter* writer, - CacheChange_t* change) override - { - (void)writer; - - if (ChangeKind_t::NOT_ALIVE_DISPOSED_UNREGISTERED == change->kind) - { - WriterHistory* writer_history = -#if HAVE_SECURITY - writer == sedp_->publications_secure_writer_.first ? - sedp_->publications_secure_writer_.second : -#endif // if HAVE_SECURITY - sedp_->publications_writer_.second; - - writer_history->remove_change(change); - } - } - -protected: - - EDPSimple* sedp_; -}; - -class EDPSimpleSUBListener : public EDPBaseSUBListener -{ -public: - - EDPSimpleSUBListener( - EDPSimple* sedp) - : sedp_(sedp) - { - } - - virtual ~EDPSimpleSUBListener() = default; - - void onNewCacheChangeAdded( - RTPSReader* reader, - const CacheChange_t* const change_in) override - { - CacheChange_t* change = (CacheChange_t*)change_in; - //std::lock_guard guard(*this->sedp_->subscriptions_reader_.first->getMutex()); - EPROSIMA_LOG_INFO(RTPS_EDP, ""); - if (!computeKey(change)) - { - EPROSIMA_LOG_WARNING(RTPS_EDP, "Received change with no Key"); - } - - ReaderHistory* reader_history = -#if HAVE_SECURITY - reader == sedp_->subscriptions_secure_reader_.first ? - sedp_->subscriptions_secure_reader_.second : -#endif // if HAVE_SECURITY - sedp_->subscriptions_reader_.second; - - if (change->kind == ALIVE) - { - PREVENT_PDP_DEADLOCK(reader, change, sedp_->mp_PDP); - - // Note: change is removed from history inside this method. - add_reader_from_change(reader, reader_history, change, sedp_); - } - else - { - //REMOVE WRITER FROM OUR READERS: - EPROSIMA_LOG_INFO(RTPS_EDP, "Disposed Remote Reader, removing..."); - - GUID_t reader_guid = iHandle2GUID(change->instanceHandle); - //Removing change from history - reader_history->remove_change(change); - reader->getMutex().unlock(); - this->sedp_->mp_PDP->removeReaderProxyData(reader_guid); - reader->getMutex().lock(); - } - } - - void onWriterChangeReceivedByAll( - RTPSWriter* writer, - CacheChange_t* change) override - { - (void)writer; - - if (ChangeKind_t::NOT_ALIVE_DISPOSED_UNREGISTERED == change->kind) - { - WriterHistory* writer_history = -#if HAVE_SECURITY - writer == sedp_->subscriptions_secure_writer_.first ? - sedp_->subscriptions_secure_writer_.second : -#endif // if HAVE_SECURITY - sedp_->subscriptions_writer_.second; - - writer_history->remove_change(change); - } - - } - -private: - - EDPSimple* sedp_; -}; - -} /* namespace rtps */ -} /* namespace fastrtps */ -} /* namespace eprosima */ - -#endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#endif /* EDPSIMPLELISTENER_H_ */ diff --git a/test/mock/rtps/PDP/rtps/builtin/discovery/participant/PDP.h b/test/mock/rtps/PDP/rtps/builtin/discovery/participant/PDP.h index 6dbe89e6a9b..ec9da7f1ce6 100644 --- a/test/mock/rtps/PDP/rtps/builtin/discovery/participant/PDP.h +++ b/test/mock/rtps/PDP/rtps/builtin/discovery/participant/PDP.h @@ -107,16 +107,6 @@ class PDP MOCK_METHOD(RTPSParticipantImpl*, getRTPSParticipant, (), (const)); - MOCK_METHOD1(removeReaderProxyData, bool(const GUID_t&)); - - MOCK_METHOD1(removeWriterProxyData, bool(const GUID_t&)); - - MOCK_CONST_METHOD0(builtin_attributes, const BuiltinAttributes&()); - - MOCK_CONST_METHOD0(create_builtin_reader_attributes, ReaderAttributes()); - - MOCK_CONST_METHOD0(create_builtin_writer_attributes, WriterAttributes()); - ProxyPool& get_temporary_reader_proxies_pool() { return temp_proxy_readers; @@ -129,18 +119,11 @@ class PDP // *INDENT-ON* - ParticipantProxyData* getLocalParticipantProxyData() const - { - return participant_proxies_.empty() ? nullptr : participant_proxies_.front(); - } - std::recursive_mutex* mutex_; // temporary proxies pools ProxyPool temp_proxy_readers = {{4, 1}}; ProxyPool temp_proxy_writers = {{4, 1}}; - - ResourceLimitedVector participant_proxies_; }; } //namespace rtps diff --git a/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h b/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h index 2953ed7b4cb..c7d9108af7b 100644 --- a/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h +++ b/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h @@ -26,6 +26,7 @@ #include // Include first possible mocks (depending on include on CMakeLists.txt) +#include #include #include #include @@ -46,15 +47,6 @@ namespace eprosima { namespace fastdds { - -namespace dds { -namespace builtin { - -class TypeLookupManager; - -} // namespace builtin -} // namespace dds - namespace rtps { class Endpoint; diff --git a/test/mock/rtps/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/test/mock/rtps/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp deleted file mode 100644 index 1c44a3b8031..00000000000 --- a/test/mock/rtps/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 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. - - -#ifndef _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ -#define _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ - -#include - -#include - -#include -#include - -namespace std { -template<> -struct hash -{ - std::size_t operator ()( - const eprosima::fastdds::dds::xtypes::TypeIdentifier& k) const - { - return (static_cast(k.equivalence_hash()[0]) << 16) | - (static_cast(k.equivalence_hash()[1]) << 8) | - (static_cast(k.equivalence_hash()[2])); - } - -}; - -} // std - -namespace eprosima { -namespace fastdds { -namespace dds { - -namespace xtypes { - -using ReturnCode_t = eprosima::fastdds::dds::ReturnCode_t; - -class TypeObjectRegistry : public ITypeObjectRegistry -{ - -public: - - TypeObjectRegistry() - { - } - - ~TypeObjectRegistry() - { - } - - MOCK_METHOD2(register_type_object, ReturnCode_t( - const std::string&, const CompleteTypeObject&)); - - - RTPS_DllAPI ReturnCode_t register_type_identifier( - const std::string&, - const TypeIdentifier&) - { - return RETCODE_OK; - } - - RTPS_DllAPI ReturnCode_t get_type_objects( - const std::string&, - TypeObjectPair&) - { - return RETCODE_OK; - } - - RTPS_DllAPI ReturnCode_t get_type_identifiers( - const std::string&, - TypeIdentifierPair&) - { - return RETCODE_OK; - } - - RTPS_DllAPI ReturnCode_t get_type_object( - const TypeIdentifier& id, - TypeObject& obj) - { - return mock_get_type_object(id, obj); - } - - MOCK_METHOD2(mock_get_type_object, ReturnCode_t( - const TypeIdentifier&, const TypeObject&)); - - MOCK_METHOD2(register_type_object, ReturnCode_t( - const TypeIdentifier&, const TypeObject&)); - - MOCK_METHOD2(get_type_dependencies, ReturnCode_t( - const TypeIdentifierSeq&, std::unordered_set&)); - - MOCK_METHOD1(is_type_identifier_known, bool( - const TypeIdentfierWithSize&)); - - MOCK_METHOD1(get_complementary_type_identifier, TypeIdentifier( - const TypeIdentifier&)); - - MOCK_METHOD1(is_builtin_annotation, bool( - const TypeIdentifier&)); - - MOCK_METHOD2(calculate_type_identifier, TypeIdentifier( - const TypeObject&, uint32_t&)); -}; - -} // xtypes -} // dds -} // fastdds -} // eprosima - -#endif // _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ diff --git a/test/unittest/dds/xtypes/typelookup/CMakeLists.txt b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt similarity index 86% rename from test/unittest/dds/xtypes/typelookup/CMakeLists.txt rename to test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt index 03c17915570..2e4a22fe2a0 100644 --- a/test/unittest/dds/xtypes/typelookup/CMakeLists.txt +++ b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt @@ -14,10 +14,8 @@ file(GLOB DDSSQLFILTER_SOURCES ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/DDSSQLFilter/*.cpp) -set(TYPELOOKUPTESTS_SOURCE TypeLookupTests.cpp +set(TYPELOOKUPSERVICETESTS_SOURCE TypeLookupServiceTests.cpp ${DDSSQLFILTER_SOURCES} - # ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp - # ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/AnnotationDescriptor.cpp ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicData.cpp ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicDataFactory.cpp @@ -81,9 +79,12 @@ ${DDSSQLFILTER_SOURCES} ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/utils/QosConverters.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/exception/Exception.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/PropertyPolicy.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/ThreadSettings.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ReaderProxyData.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/WriterProxyData.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Time_t.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/flowcontrol/FlowControllerConsts.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/flowcontrol/ThroughputControllerDescriptor.cpp @@ -91,7 +92,7 @@ ${DDSSQLFILTER_SOURCES} ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/TopicPayloadPool.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/TopicPayloadPoolRegistry.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/transport/PortBasedTransportDescriptor.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/writer/LocatorSelectorSender.cpp + # ${PROJECT_SOURCE_DIR}/src/cpp/rtps/writer/LocatorSelectorSender.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLDynamicParser.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLElementParser.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLParser.cpp @@ -105,18 +106,6 @@ ${DDSSQLFILTER_SOURCES} ${PROJECT_SOURCE_DIR}/src/cpp/utils/string_convert.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/SystemInfo.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/TimedConditionVariable.cpp - - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ParticipantProxyData.cpp - src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/discovery/endpoint/EDPSimple.cpp - - # ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/discovery/participant/PDP.cpp - # ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp - - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ReaderProxyData.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/WriterProxyData.cpp - ) if (FASTDDS_STATISTICS) @@ -130,13 +119,13 @@ if (FASTDDS_STATISTICS) ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesTypeObjectSupport.cxx ) - list(APPEND TYPELOOKUPTESTS_SOURCE ${statistics_sources}) + list(APPEND TYPELOOKUPSERVICETESTS_SOURCE ${statistics_sources}) endif() # External sources if(TINYXML2_SOURCE_DIR) - list(APPEND TYPELOOKUPTESTS_SOURCE + list(APPEND TYPELOOKUPSERVICETESTS_SOURCE ${TINYXML2_SOURCE_DIR}/tinyxml2.cpp ) endif() @@ -152,15 +141,14 @@ endif() if(ANDROID) if (ANDROID_NATIVE_API_LEVEL LESS 24) - list(APPEND TYPELOOKUPTESTS_SOURCE + list(APPEND TYPELOOKUPSERVICETESTS_SOURCE ${ANDROID_IFADDRS_SOURCE_DIR}/ifaddrs.c ) endif() endif() - -add_executable(TypeLookupTests ${TYPELOOKUPTESTS_SOURCE}) -target_compile_definitions(TypeLookupTests PRIVATE +add_executable(TypeLookupServiceTests ${TYPELOOKUPSERVICETESTS_SOURCE}) +target_compile_definitions(TypeLookupServiceTests PRIVATE BOOST_ASIO_STANDALONE ASIO_STANDALONE ASIO_DISABLE_VISIBILITY @@ -170,15 +158,11 @@ target_compile_definitions(TypeLookupTests PRIVATE $<$:__INTERNALDEBUG> # Internal debug activated. $<$:_ENABLE_ATOMIC_ALIGNMENT_FIX> ) -target_include_directories(TypeLookupTests PUBLIC +target_include_directories(TypeLookupServiceTests PUBLIC ${Asio_INCLUDE_DIR} - ${PROJECT_SOURCE_DIR}/test/mock/rtps/TypeObjectRegistry - - + ${PROJECT_SOURCE_DIR}/test/mock/rtps/BuiltinProtocols ${PROJECT_SOURCE_DIR}/test/mock/rtps/DataSharingPayloadPool - # ${PROJECT_SOURCE_DIR}/test/mock/rtps/Endpoint - ${PROJECT_SOURCE_DIR}/test/mock/rtps/PDP - ${PROJECT_SOURCE_DIR}/test/mock/rtps/PDPSimple + ${PROJECT_SOURCE_DIR}/test/mock/rtps/NetworkFactory ${PROJECT_SOURCE_DIR}/test/mock/rtps/ReaderHistory ${PROJECT_SOURCE_DIR}/test/mock/rtps/ResourceEvent ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomain @@ -191,11 +175,6 @@ target_include_directories(TypeLookupTests PUBLIC ${PROJECT_SOURCE_DIR}/test/mock/rtps/SharedMemTransportDescriptor ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatefulReader ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatefulWriter - - # ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatelessReader - # ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatelessWriter - - ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPTransportDescriptor ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPv4TransportDescriptor ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPv6TransportDescriptor ${PROJECT_SOURCE_DIR}/test/mock/rtps/TimedEvent @@ -206,20 +185,14 @@ target_include_directories(TypeLookupTests PUBLIC ${PROJECT_SOURCE_DIR}/test/mock/rtps/WLP ${PROJECT_SOURCE_DIR}/test/mock/rtps/WriterHistory ${PROJECT_SOURCE_DIR}/test/mock/rtps/XMLEndPointParser - - - - ${PROJECT_SOURCE_DIR}/test/mock/rtps/NetworkFactory - ${PROJECT_SOURCE_DIR}/test/mock/rtps/EDP - + ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPTransportDescriptor ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp ${THIRDPARTY_BOOST_INCLUDE_DIR} ${PROJECT_SOURCE_DIR}/thirdparty/taocpp-pegtl ) - -target_link_libraries(TypeLookupTests fastcdr foonathan_memory +target_link_libraries(TypeLookupServiceTests fastcdr foonathan_memory ${TINYXML2_LIBRARY} GTest::gmock ${CMAKE_DL_LIBS} @@ -227,11 +200,10 @@ target_link_libraries(TypeLookupTests fastcdr foonathan_memory ) if(QNX) - target_link_libraries(TypeLookupTests socket) + target_link_libraries(TypeLookupServiceTests socket) endif() if(MSVC OR MSVC_IDE) - target_link_libraries(TypeLookupTests iphlpapi Shlwapi ws2_32) + target_link_libraries(TypeLookupServiceTests iphlpapi Shlwapi ws2_32) endif() - -gtest_discover_tests(TypeLookupTests) +gtest_discover_tests(TypeLookupServiceTests) diff --git a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp new file mode 100644 index 00000000000..d72fe535fc2 --- /dev/null +++ b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp @@ -0,0 +1,947 @@ +// 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. +// 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 +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +using ::testing::Mock; +using ::testing::_; +using eprosima::fastrtps::rtps::RTPSDomain; +using namespace eprosima::fastdds::dds::builtin; +using namespace eprosima::fastdds::dds::xtypes; +using namespace eprosima::fastrtps::rtps; + +namespace eprosima { + +namespace fastrtps { +namespace rtps { +class RTPSDomain; + +RTPSReader* RTPSDomain::reader_ = nullptr; +RTPSWriter* RTPSDomain::writer_ = nullptr; +RTPSParticipant* RTPSDomain::participant_ = nullptr; +} //namespace rtps +} //namespace fastrtps + +namespace fastdds { +namespace dds { + +octet typeid_msg_buffer[] = +{ + // Encapsulation + 0x00, 0x03, 0x00, 0x00, + // Endpoint GUID + 0x5a, 0x00, 0x10, 0x00, + 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, + // Topic name + 0x05, 0x00, 0x10, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, + // Type name + 0x07, 0x00, 0x20, 0x00, + 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, + 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, + // TypeID + 0x69, 0x00, 0x05, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // Sentinel + 0x01, 0x00, 0x00, 0x00 +}; + +octet typeobject_msg_buffer[] = +{ + // Encapsulation + 0x00, 0x03, 0x00, 0x00, + // Endpoint GUID + 0x5a, 0x00, 0x10, 0x00, + 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, + // Topic name + 0x05, 0x00, 0x10, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, + // Type name + 0x07, 0x00, 0x20, 0x00, + 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, + 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, + // Type object + 0x72, 0x00, 0xfc, 0x04, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x04, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x28, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x04, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x44, 0x4c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0xe8, 0x02, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x09, 0x00, 0x00, 0x00, 0xd0, 0x01, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x24, 0x00, 0x00, 0x00, 0x02, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x51, 0x83, 0x23, + 0x55, 0x8c, 0x53, 0x3a, 0x10, 0x00, 0x00, 0x00, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, + 0x70, 0x01, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x2c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x0d, 0x00, 0x00, 0x00, + 0x68, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x17, 0x00, 0x00, 0x00, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, + 0x49, 0x64, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, + 0x0b, 0x00, 0x00, 0x00, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, + 0xa5, 0x08, 0x32, 0x91, 0x08, 0x00, 0x00, 0x00, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, + 0x0e, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x05, 0x00, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, + 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, + 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x4f, 0x4b, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, + 0x44, 0x4c, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, + 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, + 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x09, 0x00, 0x00, 0x00, + 0xe0, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, + 0x0d, 0x00, 0x00, 0x00, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0d, 0x00, 0x00, 0x00, + 0x72, 0x74, 0x70, 0x73, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0c, 0x00, 0x00, 0x00, + 0x72, 0x74, 0x70, 0x73, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x13, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, 0xa5, 0x08, 0x32, 0x91, + 0x16, 0x00, 0x00, 0x00, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x32, 0x30, 0x34, 0x38, 0x5f, + 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x65, 0x00, 0x04, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x08, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x8c, 0x51, 0x83, 0x23, 0x55, 0x8c, 0x53, 0x3a, 0x02, 0x7f, 0x00, 0x00, + // Sentinel + 0x01, 0x00, 0x00, 0x00 +}; + +inline std::vector create_continuation_point( + size_t value) +{ + std::vector continuation_point(32, 0); + + for (size_t value_i = 0; value_i < value; value_i++) + { + for (size_t i = continuation_point.size() - 1; i != SIZE_MAX; --i) + { + if (continuation_point[i] < 255) + { + ++continuation_point[i]; + // Break after successful increment + break; + } + else + { + continuation_point[i] = 0; + } + } + } + return continuation_point; +} + +SampleIdentity valid_sampleidentity() +{ + GUID_t guid; + guid.guidPrefix({1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}); + SequenceNumber_t seqn; + seqn.high(1); + seqn.low(1); + + SampleIdentity id; + id.writer_guid(guid); + id.sequence_number(seqn); + + return id; +} + +class MockLogConsumer : public LogConsumer +{ +public: + + virtual void Consume( + const Log::Entry& entry) + { + std::unique_lock guard(mMutex); + mEntriesConsumed.push_back(entry); + cv_.notify_all(); + } + + const std::vector ConsumedEntries() const + { + std::unique_lock guard(mMutex); + return mEntriesConsumed; + } + + void clear_entries() + { + std::unique_lock guard(mMutex); + mEntriesConsumed.clear(); + cv_.notify_all(); + } + + size_t wait_for_entries( + uint32_t amount, + int max_wait) + { + std::unique_lock lock(mMutex); + cv_.wait_for(lock, std::chrono::seconds(max_wait), [this, amount]() -> bool + { + return mEntriesConsumed.size() >= amount; + }); + return mEntriesConsumed.size(); + } + +private: + + std::vector mEntriesConsumed; + mutable std::mutex mMutex; + std::condition_variable cv_; +}; + +class MockTypeLookupReplyListener : public TypeLookupReplyListener +{ +public: + + MockTypeLookupReplyListener( + TypeLookupManager* manager) + : TypeLookupReplyListener(manager) + { + } + + void onNewCacheChangeAdded( + fastrtps::rtps::RTPSReader* reader_, + const fastrtps::rtps::CacheChange_t* const change) + { + TypeLookupReplyListener::onNewCacheChangeAdded(reader_, change); + } + + void process_reply() + { + TypeLookupReplyListener::process_reply(); + } + + std::queue* get_replies_queue() + { + return &replies_queue_; + } + + void notify() + { + replies_processor_cv_.notify_all(); + } + + void set_processing( + bool status) + { + processing_ = status; + } + +}; + +class MockTypeLookupRequestListener : public TypeLookupRequestListener +{ +public: + + MockTypeLookupRequestListener( + TypeLookupManager* manager) + : TypeLookupRequestListener(manager) + { + } + + void onNewCacheChangeAdded( + fastrtps::rtps::RTPSReader* reader_, + const fastrtps::rtps::CacheChange_t* const change) + { + // Call the private method indirectly through the public interface + TypeLookupRequestListener::onNewCacheChangeAdded(reader_, change); + } + + void process_requests() + { + TypeLookupRequestListener::process_requests(); + } + + std::queue* get_requests_queue() + { + return &requests_queue_; + } + + void notify() + { + request_processor_cv_.notify_all(); + } + + void set_processing( + bool status) + { + processing_ = status; + } + +}; + +class TypeLookupServiceTests : public ::testing::Test +{ + +protected: + + void SetUp() override + { + RTPSParticipantImpl participant; + tlm_ = new TypeLookupManager(); + tlm_->participant_ = &participant; + + reply_listener_ = new MockTypeLookupReplyListener(tlm_); + request_listener_ = new MockTypeLookupRequestListener(tlm_); + + HistoryAttributes att; + stateful_reader_.history_ = new ReaderHistory(att); + } + + void TearDown() override + { + delete reply_listener_; + delete request_listener_; + delete tlm_; + } + + TypeLookupManager* tlm_; + MockTypeLookupReplyListener* reply_listener_; + MockTypeLookupRequestListener* request_listener_; + NetworkFactory network_factory_; + ReaderProxyData reader_proxy_{0, 0}; + WriterProxyData writer_proxy_{0, 0}; + StatefulReader stateful_reader_; +}; + +MockLogConsumer* setup_expect_log_msg( + std::string category, + std::string msg) +{ + Log::Reset(); + Log::SetVerbosity(Log::Info); + Log::SetCategoryFilter(std::regex(category)); + Log::SetErrorStringFilter(std::regex(msg)); + MockLogConsumer* log_consumer = new MockLogConsumer(); + std::unique_ptr log_consumer_unique_ptr(log_consumer); + Log::RegisterConsumer(std::move(log_consumer_unique_ptr)); + return log_consumer; +} + +TEST_F(TypeLookupServiceTests, ReaderProxyData_PID_TYPE_IDV1) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("RTPS_PROXY_DATA", "PID_TYPE_IDV1 not supported"); + + CDRMessage_t msg(0); + msg.init(typeid_msg_buffer, static_cast(sizeof(typeid_msg_buffer))); + msg.length = msg.max_size; + + ASSERT_TRUE(reader_proxy_.readFromCDRMessage(&msg, network_factory_, false, true)); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, WriterProxyData_PID_TYPE_IDV1) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("RTPS_PROXY_DATA", "PID_TYPE_IDV1 not supported"); + + CDRMessage_t msg(0); + msg.init(typeid_msg_buffer, static_cast(sizeof(typeid_msg_buffer))); + msg.length = msg.max_size; + + ASSERT_TRUE(writer_proxy_.readFromCDRMessage(&msg, network_factory_, false, true)); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, ReaderProxyData_PID_TYPE_OBJECTV1) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("RTPS_PROXY_DATA", "PID_TYPE_OBJECTV1 not supported"); + + CDRMessage_t msg(0); + msg.init(typeobject_msg_buffer, static_cast(sizeof(typeobject_msg_buffer))); + msg.length = msg.max_size; + + ASSERT_TRUE(reader_proxy_.readFromCDRMessage(&msg, network_factory_, false, true)); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, WriterProxyData_PID_TYPE_OBJECTV1) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("RTPS_PROXY_DATA", "PID_TYPE_OBJECTV1 not supported"); + + CDRMessage_t msg(0); + msg.init(typeobject_msg_buffer, static_cast(sizeof(typeobject_msg_buffer))); + msg.length = msg.max_size; + + ASSERT_TRUE(writer_proxy_.readFromCDRMessage(&msg, network_factory_, false, true)); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_EntityId) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TL_REPLY_READER", "Received data from a bad endpoint."); + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = 0x111111C3; + stateful_reader_.getHistory()->add_change(change); + + reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + + EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_malformed_Reply) +{ + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.getHistory()->add_change(change); + + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::Return(false)); + + reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + + EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNSUPPORTED) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", + "Received reply with exception code: " + + static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNSUPPORTED)); + + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.getHistory()->add_change(change); + + TypeLookup_Reply expectedReply; + expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNSUPPORTED); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + + EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_INVALID_ARGUMENT) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", + "Received reply with exception code: " + + static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_INVALID_ARGUMENT)); + + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.getHistory()->add_change(change); + + TypeLookup_Reply expectedReply; + expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_INVALID_ARGUMENT); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + + EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_OUT_OF_RESOURCES) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", + "Received reply with exception code: " + + static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_OUT_OF_RESOURCES)); + + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.getHistory()->add_change(change); + + TypeLookup_Reply expectedReply; + expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_OUT_OF_RESOURCES); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_OPERATION) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", + "Received reply with exception code: " + + static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_OPERATION)); + + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.getHistory()->add_change(change); + + TypeLookup_Reply expectedReply; + expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_OPERATION); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_EXCEPTION) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", + "Received reply with exception code: " + + static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_EXCEPTION)); + + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.getHistory()->add_change(change); + + TypeLookup_Reply expectedReply; + expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_EXCEPTION); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_replyid) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received uknown reply type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.return_value()._d() = 44444444U; + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + + reply_listener_->get_replies_queue()->push(reply_with_guid); + reply_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_empty) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Error registering type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getTypes_HashId; + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + + reply_listener_->get_replies_queue()->push(reply_with_guid); + reply_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_empty_type_error) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Error registering type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getTypes_HashId; + TypeIdentifierTypeObjectPair pair; + TypeLookup_getTypes_Out out; + out.types().push_back(pair); + reply.return_value().getType().result(out); + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + + reply_listener_->get_replies_queue()->push(reply_with_guid); + reply_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_inconsistent_type_error) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Error registering type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getTypes_HashId; + + TypeIdentifierTypeObjectPair pair; + TypeIdentifier id; + id._d() = TK_STRUCTURE; + TypeObject obj; + obj.complete()._d() = TK_SEQUENCE; + pair.type_identifier(id); + pair.type_object(obj); + + TypeLookup_getTypes_Out out; + out.types().push_back(pair); + reply.return_value().getType().result(out); + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + + reply_listener_->get_replies_queue()->push(reply_with_guid); + reply_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getDependencies_continuation_point_fail) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", + "Failed to send get_type_dependencies request"); + + // EXPECT_CALL(*tlm_, get_type_dependencies(testing::_, testing::_, testing::_)) + // .WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getDependencies_HashId; + TypeIdentifierTypeObjectPair pair; + TypeLookup_getTypeDependencies_Out out; + out.continuation_point(create_continuation_point(10)); + reply.return_value().getTypeDependencies().result(out); + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + + reply_listener_->get_replies_queue()->push(reply_with_guid); + reply_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getDependencies_get_types_fail) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Failed to send get_types request"); + + // EXPECT_CALL(*tlm_, get_types(testing::_, testing::_)) + // .WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value()._d() = TypeLookup_getDependencies_HashId; + TypeIdentifierTypeObjectPair pair; + TypeLookup_getTypeDependencies_Out out; + reply.return_value().getTypeDependencies().result(out); + ReplyWithServerGUID reply_with_guid; + reply_with_guid.reply = reply; + + reply_listener_->get_replies_queue()->push(reply_with_guid); + reply_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_wrong_EntityId) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TL_REQUEST_READER", "Received data from a bad endpoint."); + + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = 0x111111C3; + stateful_reader_.getHistory()->add_change(change); + + request_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + + EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_malformed_Request) +{ + CacheChange_t* change = new CacheChange_t(); + change->writerGUID.entityId = c_EntityId_TypeLookup_request_writer; + stateful_reader_.getHistory()->add_change(change); + + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::Return(false)); + + request_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + + EXPECT_EQ(request_listener_->get_requests_queue()->size(), 0); +} + +TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_wrong_requestid) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Received unknown request type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = 44444444U; + + request_listener_->get_requests_queue()->push(request); + request_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_empty) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getTypes_HashId; + + request_listener_->get_requests_queue()->push(request); + request_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_registry_empty_type_error) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getTypes_HashId; + TypeLookup_getTypes_In in; + TypeIdentifierSeq id_seq; + TypeIdentifier id; + id_seq.push_back(id); + in.type_ids(id_seq); + in.type_ids().push_back(id); + request.data().getTypes(in); + + request_listener_->get_requests_queue()->push(request); + request_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_registry_unknown_type_error) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getTypes_HashId; + TypeLookup_getTypes_In in; + TypeIdentifierSeq id_seq; + TypeIdentifier id; + id._d() = TK_STRUCTURE; + + id_seq.push_back(id); + in.type_ids(id_seq); + in.type_ids().push_back(id); + request.data().getTypes(in); + + request_listener_->get_requests_queue()->push(request); + request_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getDependencies_empty) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type dependencies."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getDependencies_HashId; + + request_listener_->get_requests_queue()->push(request); + request_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getDependencies_registry_uknown_type_error) +{ + MockLogConsumer* log_consumer = + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type dependencies."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._d() = TypeLookup_getDependencies_HashId; + + TypeLookup_getTypeDependencies_In in; + TypeIdentifierSeq id_seq; + TypeIdentifier id; + id._d() = TK_STRUCTURE; + id_seq.push_back(id); + in.type_ids(id_seq); + in.type_ids().push_back(id); + request.data().getTypeDependencies(in); + + request_listener_->get_requests_queue()->push(request); + request_listener_->notify(); + + Log::Flush(); + EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); +} + +} // namespace dds +} // namespace fastdds +} // namespace eprosima + +int main( + int argc, + char** argv) +{ + testing::InitGoogleMock(&argc, argv); + return RUN_ALL_TESTS(); +} diff --git a/test/unittest/dds/xtypes/typelookup/TypeLookupTests.cpp b/test/unittest/dds/xtypes/typelookup/TypeLookupTests.cpp deleted file mode 100644 index bedb8170125..00000000000 --- a/test/unittest/dds/xtypes/typelookup/TypeLookupTests.cpp +++ /dev/null @@ -1,847 +0,0 @@ -// 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. -// 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 -#include - -#include -#include -#include -#include -#include -#include -#include -#include - - - -#include -#include -#include -#include -#include -#include - - -#include -#include - -using ::testing::Mock; -using ::testing::_; -using eprosima::fastrtps::rtps::RTPSDomain; -using namespace eprosima::fastdds::dds::builtin; -using namespace eprosima::fastdds::dds::xtypes; -using namespace eprosima::fastrtps::rtps; - -namespace eprosima { - -namespace fastrtps { -namespace rtps { -class RTPSDomain; - -RTPSReader* RTPSDomain::reader_ = nullptr; -RTPSWriter* RTPSDomain::writer_ = nullptr; -RTPSParticipant* RTPSDomain::participant_ = nullptr; -} //namespace rtps -} //namespace fastrtps - -namespace fastdds { -namespace dds { - -inline std::vector create_continuation_point( - size_t value) -{ - std::vector continuation_point(32, 0); - - for (size_t value_i = 0; value_i < value; value_i++) - { - for (size_t i = continuation_point.size() - 1; i != SIZE_MAX; --i) - { - if (continuation_point[i] < 255) - { - ++continuation_point[i]; - // Break after successful increment - break; - } - else - { - continuation_point[i] = 0; - } - } - } - return continuation_point; -} - -SampleIdentity valid_sampleidentity() -{ - GUID_t guid; - guid.guidPrefix({1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}); - SequenceNumber_t seqn; - seqn.high(1); - seqn.low(1); - - SampleIdentity id; - id.writer_guid(guid); - id.sequence_number(seqn); - - return id; -} - -class TypeLookupReplyListenerTests : private TypeLookupReplyListener -{ -public: - - TypeLookupReplyListenerTests( - TypeLookupManager* manager) - : TypeLookupReplyListener(manager) - { - } - - void onNewCacheChangeAdded( - fastrtps::rtps::RTPSReader* reader, - const fastrtps::rtps::CacheChange_t* const change) - { - TypeLookupReplyListener::onNewCacheChangeAdded(reader, change); - } - - void process_reply() - { - TypeLookupReplyListener::process_reply(); - } - - std::queue* get_replies_queue() - { - return &replies_queue_; - } - - void set_processing( - bool status) - { - processing_ = status; - } - -}; - -class TypeLookupRequestListenerTests : private TypeLookupRequestListener -{ -public: - - TypeLookupRequestListenerTests( - TypeLookupManager* manager) - : TypeLookupRequestListener(manager) - { - } - - void onNewCacheChangeAdded( - fastrtps::rtps::RTPSReader* reader, - const fastrtps::rtps::CacheChange_t* const change) - { - // Call the private method indirectly through the public interface - TypeLookupRequestListener::onNewCacheChangeAdded(reader, change); - } - - void process_requests() - { - TypeLookupRequestListener::process_requests(); - } - - std::queue* get_requests_queue() - { - return &requests_queue_; - } - - void set_processing( - bool status) - { - processing_ = status; - } - -}; - -// class EDPBasePUBListenerTests : protected EDPBasePUBListener -// { -// public: - -// void add_writer_from_change( -// RTPSReader* reader, -// ReaderHistory* reader_history, -// CacheChange_t* change, -// EDP* edp, -// bool release_change = true) -// { -// // Call the private method indirectly through the public interface -// EDPBasePUBListener::add_writer_from_change(reader, reader_history, change, edp, true); -// } - -// }; - -class EDPBaseSUBListenerTests : private EDPBaseSUBListener -{ -public: - - void add_reader_from_change( - RTPSReader* reader, - ReaderHistory* reader_history, - CacheChange_t* change, - EDP* edp, - bool release_change = true) - { - // Call the private method indirectly through the public interface - EDPBaseSUBListener::add_reader_from_change(reader, reader_history, change, edp, release_change); - } - -}; - - - -class TypeLookupTests : public ::testing::Test -{ - -protected: - - void SetUp() override - { - tlm = new TypeLookupManager(); - reply_listener = new TypeLookupReplyListenerTests(tlm); - request_listener = new TypeLookupRequestListenerTests(tlm); - reader = new StatefulReader(); - } - - void TearDown() override - { - delete tlm; - delete reply_listener; - delete request_listener; - delete reader; - } - - TypeLookupManager* tlm = nullptr; - TypeLookupReplyListenerTests* reply_listener = nullptr; - TypeLookupRequestListenerTests* request_listener = nullptr; - StatefulReader* reader = nullptr; -}; - - -TEST_F(TypeLookupTests, sdfsdfsdf) -{ - EDPBaseSUBListenerTests simple_listener; - //RTPSReader reader; - ReaderHistory* reader_history = new ReaderHistory(HistoryAttributes()); - CacheChange_t change; - RTPSParticipantImpl asd; - - PDP pdp; - EDPSimple* edp = new EDPSimple(&pdp, &asd); - - edp->mp_RTPSParticipant = &asd; - simple_listener.add_reader_from_change(reader, reader_history, &change, edp); -} - -TEST_F(TypeLookupTests, ReaderProxyData_PID_TYPE_IDV1) -{ - // This was captured with wireshark from OpenDDS iShapes 3.16 - octet data_w_buffer[] = - { - // Encapsulation - 0x00, 0x03, 0x00, 0x00, - // Endpoint GUID - 0x5a, 0x00, 0x10, 0x00, - 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, - // Topic name - 0x05, 0x00, 0x10, 0x00, - 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, - // Type name - 0x07, 0x00, 0x20, 0x00, - 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, - 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, - // TypeID - 0x69, 0x00, 0x50, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Sentinel - 0x01, 0x00, 0x00, 0x00 - }; - - ReaderProxyData reader_proxy(0, 0); - NetworkFactory network; - - CDRMessage_t msg(0); - msg.init(data_w_buffer, static_cast(sizeof(data_w_buffer))); - msg.length = msg.max_size; - - bool weweaa = reader_proxy.readFromCDRMessage(&msg, network, false, true); - - //EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, "PID_TYPE_IDV1 not supported"); -} - -TEST_F(TypeLookupTests, WriterProxyData_PID_TYPE_IDV1) -{ - // This was captured with wireshark from OpenDDS iShapes 3.16 - octet data_w_buffer[] = - { - // Encapsulation - 0x00, 0x03, 0x00, 0x00, - // Endpoint GUID - 0x5a, 0x00, 0x10, 0x00, - 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, - // Topic name - 0x05, 0x00, 0x10, 0x00, - 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, - // Type name - 0x07, 0x00, 0x20, 0x00, - 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, - 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, - // TypeID - 0x69, 0x00, 0x50, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Sentinel - 0x01, 0x00, 0x00, 0x00 - }; - - WriterProxyData writer_proxy(0, 0); - NetworkFactory network; - - CDRMessage_t msg(0); - msg.init(data_w_buffer, static_cast(sizeof(data_w_buffer))); - msg.length = msg.max_size; - - bool weweaa = writer_proxy.readFromCDRMessage(&msg, network, false, true); - - //EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, "PID_TYPE_IDV1 not supported"); -} - -TEST_F(TypeLookupTests, ReaderProxyData_PID_TYPE_OBJECTV1) -{ - // This was captured with wireshark from OpenDDS iShapes 3.16 - octet data_w_buffer[] = - { - // Encapsulation - 0x00, 0x03, 0x00, 0x00, - // Endpoint GUID - 0x5a, 0x00, 0x10, 0x00, - 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, - // Topic name - 0x05, 0x00, 0x10, 0x00, - 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, - // Type name - 0x07, 0x00, 0x20, 0x00, - 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, - 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, - // Type object - 0x72, 0x00, 0xfc, 0x04, - 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x04, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, - 0x28, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, - 0x04, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x44, 0x4c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, - 0xe8, 0x02, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x09, 0x00, 0x00, 0x00, 0xd0, 0x01, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x24, 0x00, 0x00, 0x00, 0x02, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x51, 0x83, 0x23, - 0x55, 0x8c, 0x53, 0x3a, 0x10, 0x00, 0x00, 0x00, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, - 0x70, 0x01, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x2c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x0d, 0x00, 0x00, 0x00, - 0x68, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x17, 0x00, 0x00, 0x00, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, - 0x49, 0x64, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, - 0x0b, 0x00, 0x00, 0x00, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, - 0xa5, 0x08, 0x32, 0x91, 0x08, 0x00, 0x00, 0x00, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, - 0x0e, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x05, 0x00, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, - 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, - 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x4f, 0x4b, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, - 0x44, 0x4c, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, - 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, - 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x09, 0x00, 0x00, 0x00, - 0xe0, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, - 0x0d, 0x00, 0x00, 0x00, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0d, 0x00, 0x00, 0x00, - 0x72, 0x74, 0x70, 0x73, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0c, 0x00, 0x00, 0x00, - 0x72, 0x74, 0x70, 0x73, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x13, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, - 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, 0xa5, 0x08, 0x32, 0x91, - 0x16, 0x00, 0x00, 0x00, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x32, 0x30, 0x34, 0x38, 0x5f, - 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x65, 0x00, 0x04, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x08, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x8c, 0x51, 0x83, 0x23, 0x55, 0x8c, 0x53, 0x3a, 0x02, 0x7f, 0x00, 0x00, - // Sentinel - 0x01, 0x00, 0x00, 0x00 - }; - - ReaderProxyData reader_proxy(0, 0); - NetworkFactory network; - - CDRMessage_t msg(0); - msg.init(data_w_buffer, static_cast(sizeof(data_w_buffer))); - msg.length = msg.max_size; - - bool weweaa = reader_proxy.readFromCDRMessage(&msg, network, false, true); - - // EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, "PID_TYPE_OBJECTV1 not supported"); -} - -TEST_F(TypeLookupTests, WriterProxyData_PID_TYPE_OBJECTV1) -{ - // This was captured with wireshark from OpenDDS iShapes 3.16 - octet data_w_buffer[] = - { - // Encapsulation - 0x00, 0x03, 0x00, 0x00, - // Endpoint GUID - 0x5a, 0x00, 0x10, 0x00, - 0xc0, 0xa8, 0x01, 0x3a, 0x00, 0x00, 0x41, 0xa4, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x42, - // Topic name - 0x05, 0x00, 0x10, 0x00, - 0x0c, 0x00, 0x00, 0x00, 0x72, 0x74, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x6c, 0x6f, 0x67, 0x00, - // Type name - 0x07, 0x00, 0x20, 0x00, - 0x19, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x3a, 0x3a, 0x72, 0x74, 0x69, 0x3a, 0x3a, 0x64, 0x6c, - 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, - // Type object - 0x72, 0x00, 0xfc, 0x04, - 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x04, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, - 0x28, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, - 0x04, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x44, 0x4c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, - 0xe8, 0x02, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x09, 0x00, 0x00, 0x00, 0xd0, 0x01, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x24, 0x00, 0x00, 0x00, 0x02, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x51, 0x83, 0x23, - 0x55, 0x8c, 0x53, 0x3a, 0x10, 0x00, 0x00, 0x00, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, - 0x70, 0x01, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x2c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x0d, 0x00, 0x00, 0x00, - 0x68, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, 0x17, 0x00, 0x00, 0x00, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, - 0x49, 0x64, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, - 0x0b, 0x00, 0x00, 0x00, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, - 0xa5, 0x08, 0x32, 0x91, 0x08, 0x00, 0x00, 0x00, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, - 0x0e, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x05, 0x00, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xd9, 0xdc, 0x15, 0x0b, 0x91, 0x99, 0x13, 0x0e, 0x0e, 0x00, 0x00, 0x00, - 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, - 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x4f, 0x4b, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, - 0x44, 0x4c, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, - 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x52, 0x54, 0x49, 0x5f, 0x44, 0x4c, 0x5f, 0x43, - 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x09, 0x00, 0x00, 0x00, - 0xe0, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x29, 0x56, 0xb1, 0x97, 0x58, 0xdf, 0x3f, - 0x0d, 0x00, 0x00, 0x00, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x65, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0d, 0x00, 0x00, 0x00, - 0x72, 0x74, 0x70, 0x73, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0c, 0x00, 0x00, 0x00, - 0x72, 0x74, 0x70, 0x73, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, - 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x00, 0x13, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, - 0x74, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xdc, 0x5c, 0x98, 0xa5, 0x08, 0x32, 0x91, - 0x16, 0x00, 0x00, 0x00, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x32, 0x30, 0x34, 0x38, 0x5f, - 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x64, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x65, 0x00, 0x04, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x08, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x08, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x8c, 0x51, 0x83, 0x23, 0x55, 0x8c, 0x53, 0x3a, 0x02, 0x7f, 0x00, 0x00, - // Sentinel - 0x01, 0x00, 0x00, 0x00 - }; - - WriterProxyData writer_proxy(0, 0); - NetworkFactory network; - - CDRMessage_t msg(0); - msg.init(data_w_buffer, static_cast(sizeof(data_w_buffer))); - msg.length = msg.max_size; - bool weweaa = writer_proxy.readFromCDRMessage(&msg, network, false, true); - - // EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, "PID_TYPE_OBJECTV1 not supported"); -} - -TEST_F(TypeLookupTests, TypeLookupReplyListener_wrong_EntityId) -{ - EXPECT_CALL(*(reader), getHistory_mock()) - .WillOnce(::testing::Throw(std::runtime_error(""))); - - CacheChange_t* change = new CacheChange_t(); - change->writerGUID.entityId = 0x111111C3; - try - { - reply_listener->onNewCacheChangeAdded(reader, change); - } - catch (const std::exception& e) - { - } - //EPROSIMA_LOG_WARNING(TL_REPLY_READER, "Received data from a bad endpoint."); - - delete change; -} - -TEST_F(TypeLookupTests, TypeLookupReplyListener_wrong_replyid) -{ - TypeLookup_Reply reply; - reply.return_value()._d() = 44444444U; - ReplyWithServerGUID reply_with_guid; - reply_with_guid.reply = reply; - reply_listener->get_replies_queue()->push(reply_with_guid); - - reply_listener->set_processing(true); - - reply_listener->process_reply(); - - - //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Received uknown reply type."); -} - -TEST_F(TypeLookupTests, TypeLookupReplyListener_getTypes_empty) -{ - TypeIdentfierWithSize tidws; - tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); - - TypeLookup_Reply reply; - reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getTypes_HashId; - - - - ReplyWithServerGUID reply_with_guid; - reply_with_guid.reply = reply; - reply_listener->get_replies_queue()->push(reply_with_guid); - - reply_listener->set_processing(true); - - reply_listener->process_reply(); - - - //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Error registering type."); -} - -TEST_F(TypeLookupTests, TypeLookupReplyListener_getTypes_registry_error) -{ - EXPECT_CALL(fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(), - register_type_object( - testing::Matcher(_), - testing::Matcher(_))) - .WillOnce(testing::Return(RETCODE_ERROR)); - - TypeIdentfierWithSize tidws; - tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); - - - TypeLookup_Reply reply; - reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getTypes_HashId; - - TypeIdentifierTypeObjectPair pair; - TypeLookup_getTypes_Out out; - out.types().push_back(pair); - - reply.return_value().getType().result(out); - - ReplyWithServerGUID reply_with_guid; - reply_with_guid.reply = reply; - reply_listener->get_replies_queue()->push(reply_with_guid); - - reply_listener->set_processing(true); - - reply_listener->process_reply(); - - //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Error registering type."); -} - -TEST_F(TypeLookupTests, TypeLookupReplyListener_getDependencies_continuation_point_fail) -{ - EXPECT_CALL(*(tlm), - get_type_dependencies(testing::_, testing::_, testing::_)) - .WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); - - TypeIdentfierWithSize tidws; - tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); - - - TypeLookup_Reply reply; - reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getDependencies_HashId; - - TypeIdentifierTypeObjectPair pair; - TypeLookup_getTypeDependencies_Out out; - out.continuation_point(create_continuation_point(10)); - - reply.return_value().getTypeDependencies().result(out); - - ReplyWithServerGUID reply_with_guid; - reply_with_guid.reply = reply; - reply_listener->get_replies_queue()->push(reply_with_guid); - - reply_listener->set_processing(true); - - reply_listener->process_reply(); - - // EPROSIMA_LOG_ERROR(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Failed to send get_type_dependencies request"); -} - -TEST_F(TypeLookupTests, TypeLookupReplyListener_getDependencies_get_types_fail) -{ - EXPECT_CALL(*(tlm), - get_types(testing::_, testing::_)) - .WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); - - - - TypeIdentfierWithSize tidws; - tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); - - - TypeLookup_Reply reply; - reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getDependencies_HashId; - - TypeIdentifierTypeObjectPair pair; - TypeLookup_getTypeDependencies_Out out; - reply.return_value().getTypeDependencies().result(out); - - - - ReplyWithServerGUID reply_with_guid; - reply_with_guid.reply = reply; - reply_listener->get_replies_queue()->push(reply_with_guid); - - reply_listener->set_processing(true); - - reply_listener->process_reply(); - - - //EPROSIMA_LOG_ERROR(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Failed to send get_types request"); -} - -TEST_F(TypeLookupTests, TypeLookupRequestListener_wrong_EntityId) -{ - EXPECT_CALL(*(reader), getHistory_mock()) - .WillOnce(::testing::Throw(std::runtime_error(""))); - - CacheChange_t* change = new CacheChange_t(); - change->writerGUID.entityId = 0x111111C3; - try - { - request_listener->onNewCacheChangeAdded(reader, change); - } - catch (const std::exception& e) - { - } - //EPROSIMA_LOG_WARNING(TL_REPLY_READER, "Received data from a bad endpoint."); - - delete change; -} - -TEST_F(TypeLookupTests, TypeLookupRequestListener_wrong_requestid) -{ - TypeLookup_Request request; - request.data()._d() = 44444444U; - request_listener->get_requests_queue()->push(request); - - request_listener->set_processing(true); - - request_listener->process_requests(); - - - //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Received unknown request type."); -} - -TEST_F(TypeLookupTests, TypeLookupRequestListener_getTypes_empty) -{ - - TypeIdentfierWithSize tidws; - tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); - - TypeLookup_Request request; - request.data()._d() = TypeLookup_getTypes_HashId; - - request_listener->get_requests_queue()->push(request); - - request_listener->set_processing(true); - - request_listener->process_requests(); - - //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Error getting type."); -} - -TEST_F(TypeLookupTests, TypeLookupRequestListener_getTypes_registry_error) -{ - EXPECT_CALL(fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(), - mock_get_type_object( - testing::Matcher(_), - testing::Matcher(_))) - .WillOnce(testing::Return(RETCODE_ERROR)); - - TypeIdentfierWithSize tidws; - tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); - - TypeLookup_Request request; - request.data()._d() = TypeLookup_getTypes_HashId; - - TypeLookup_getTypes_In in; - TypeIdentifierSeq id_seq; - TypeIdentifier id; - id_seq.push_back(id); - in.type_ids(id_seq); - in.type_ids().push_back(id); - request.data().getTypes(in); - - request_listener->get_requests_queue()->push(request); - - request_listener->set_processing(true); - - request_listener->process_requests(); - - //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Error getting type."); -} - -TEST_F(TypeLookupTests, TypeLookupRequestListener_getDependencies_empty) -{ - TypeIdentfierWithSize tidws; - tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); - - TypeLookup_Request request; - request.data()._d() = TypeLookup_getDependencies_HashId; - - request_listener->get_requests_queue()->push(request); - - request_listener->set_processing(true); - - request_listener->process_requests(); - - //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Error getting type dependencies."); -} - -TEST_F(TypeLookupTests, TypeLookupRequestListener_getDependencies_registry_error) -{ - EXPECT_CALL(fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(), - get_type_dependencies(testing::_, testing::_)) - .WillOnce(testing::Return(RETCODE_ERROR)); - - TypeIdentfierWithSize tidws; - tlm->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); - - TypeLookup_Request request; - request.data()._d() = TypeLookup_getDependencies_HashId; - - TypeLookup_getTypeDependencies_In in; - TypeIdentifierSeq id_seq; - TypeIdentifier id; - id_seq.push_back(id); - in.type_ids(id_seq); - in.type_ids().push_back(id); - request.data().getTypeDependencies(in); - - - request_listener->get_requests_queue()->push(request); - - request_listener->set_processing(true); - - request_listener->process_requests(); - - //EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Error getting type dependencies."); -} - -} // namespace dds -} // namespace fastdds -} // namespace eprosima - -int main( - int argc, - char** argv) -{ - testing::InitGoogleMock(&argc, argv); - return RUN_ALL_TESTS(); -} \ No newline at end of file diff --git a/utils/scripts/update_generated_code_from_idl.sh b/utils/scripts/update_generated_code_from_idl.sh index 4f0214311e5..cf48094ec5f 100755 --- a/utils/scripts/update_generated_code_from_idl.sh +++ b/utils/scripts/update_generated_code_from_idl.sh @@ -3,68 +3,69 @@ set -e files_to_exclude=( - ) +) files_not_needing_typeobject=( - './include/fastdds/dds/xtypes/type_representation/detail/dds-xtypes_typeobject.idl' - './src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_types.idl' - './src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypes.idl' - './thirdparty/dds-types-test/IDL/declarations.idl' - './thirdparty/dds-types-test/IDL/external.idl' - ) + './include/fastdds/dds/xtypes/type_representation/detail/dds-xtypes_typeobject.idl' + './src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_types.idl' + './src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypes.idl' + './test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl' + './thirdparty/dds-types-test/IDL/declarations.idl' + './thirdparty/dds-types-test/IDL/external.idl' +) files_needing_case_sensitive=( - ) +) files_needing_output_dir=( - './include/fastdds/dds/xtypes/type_representation/dds-xtypes_typeobject.idl|./detail' - './include/fastdds/statistics/monitorservice_types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' - './include/fastdds/statistics/types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' - './test/blackbox/types/core/core_types.idl|.' - './test/unittest/dds/xtypes/serializers/idl/types/alias_struct/alias_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/array_struct/array_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/bitmask_struct/bitmask_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/bitset_struct/bitset_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/enum_struct/enum_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/extensibility_struct/extensibility_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/key_struct/key_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/map_struct/map_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/primitives_struct/primitives_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/sequence_struct/sequence_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/string_struct/string_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/struct_struct/struct_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/union_struct/union_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/json/types/comprehensive_type/ComprehensiveType.idl|./gen' - './thirdparty/dds-types-test/IDL/aliases.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/annotations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/appendable.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/arrays.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/bitsets.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/constants.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/declarations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/enumerations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/external.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/final.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/helpers/basic_inner_types.idl|../../../../test/dds-types-test/helpers' - './thirdparty/dds-types-test/IDL/inheritance.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/key.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/maps.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/member_id.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/mutable.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/optional.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/primitives.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/relative_path_include.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/sequences.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/strings.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/structures.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/unions.idl|../../../test/dds-types-test' - ) + './include/fastdds/dds/xtypes/type_representation/dds-xtypes_typeobject.idl|./detail' + './include/fastdds/statistics/monitorservice_types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' + './include/fastdds/statistics/types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' + './test/blackbox/types/core/core_types.idl|.' + './test/unittest/dds/xtypes/serializers/idl/types/alias_struct/alias_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/array_struct/array_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/bitmask_struct/bitmask_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/bitset_struct/bitset_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/enum_struct/enum_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/extensibility_struct/extensibility_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/key_struct/key_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/map_struct/map_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/primitives_struct/primitives_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/sequence_struct/sequence_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/string_struct/string_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/struct_struct/struct_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/union_struct/union_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/json/types/comprehensive_type/ComprehensiveType.idl|./gen' + './thirdparty/dds-types-test/IDL/aliases.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/annotations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/appendable.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/arrays.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/bitsets.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/constants.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/declarations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/enumerations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/external.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/final.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/helpers/basic_inner_types.idl|../../../../test/dds-types-test/helpers' + './thirdparty/dds-types-test/IDL/inheritance.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/key.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/maps.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/member_id.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/mutable.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/optional.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/primitives.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/relative_path_include.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/sequences.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/strings.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/structures.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/unions.idl|../../../test/dds-types-test' +) files_needing_no_typesupport=( - './include/fastdds/dds/core/detail/DDSReturnCode.idl' - './include/fastdds/dds/core/detail/DDSSecurityReturnCode.idl' - './include/fastdds/dds/xtypes/dynamic_types/detail/dynamic_language_binding.idl' - ) + './include/fastdds/dds/core/detail/DDSReturnCode.idl' + './include/fastdds/dds/core/detail/DDSSecurityReturnCode.idl' + './include/fastdds/dds/xtypes/dynamic_types/detail/dynamic_language_binding.idl' +) red='\E[1;31m' yellow='\E[1;33m' @@ -73,65 +74,64 @@ textreset='\E[1;0m' current_dir=$(git rev-parse --show-toplevel) if [[ ! "$(pwd -P)" -ef "$current_dir" ]]; then - echo -e "${red}This script must be executed in the repository root directory.${textreset}" - exit -1 + echo -e "${red}This script must be executed in the repository root directory.${textreset}" + exit -1 fi if [[ -z "$(which fastddsgen)" ]]; then - echo "Cannot find fastddsgen. Please, include it in PATH environment variable" - exit -1 + echo "Cannot find fastddsgen. Please, include it in PATH environment variable" + exit -1 fi readarray -d '' idl_files < <(find . -iname \*.idl -print0) -for del in ${files_to_exclude[@]} -do - idl_files=("${idl_files[@]/$del}") +for del in ${files_to_exclude[@]}; do + idl_files=("${idl_files[@]/$del/}") done -idl_files=(${idl_files[@]/$files_to_exclude}) +idl_files=(${idl_files[@]/$files_to_exclude/}) ret_value=0 for idl_file in "${idl_files[@]}"; do - idl_dir=$(dirname "$idl_file") - file_from_gen=$(basename "$idl_file") + idl_dir=$(dirname "$idl_file") + file_from_gen=$(basename "$idl_file") - echo -e "Processing ${yellow}$idl_file${textreset}" + echo -e "Processing ${yellow}$idl_file${textreset}" - cd "${idl_dir}" + cd "${idl_dir}" - # Detect if needs type_object. - [[ ${files_not_needing_typeobject[*]} =~ $idl_file ]] && to_arg='-no-typeobjectsupport' || to_arg='' + # Detect if needs type_object. + [[ ${files_not_needing_typeobject[*]} =~ $idl_file ]] && to_arg='-no-typeobjectsupport' || to_arg='' - # Detect if needs case sensitive. - [[ ${files_needing_case_sensitive[*]} =~ $idl_file ]] && cs_arg='-cs' || cs_arg='' + # Detect if needs case sensitive. + [[ ${files_needing_case_sensitive[*]} =~ $idl_file ]] && cs_arg='-cs' || cs_arg='' - [[ ${files_needing_no_typesupport[*]} =~ $idl_file ]] && nosupport_arg='-no-typesupport' || nosupport_arg='' + [[ ${files_needing_no_typesupport[*]} =~ $idl_file ]] && nosupport_arg='-no-typesupport' || nosupport_arg='' - # Detect if needs output directories. - not_processed=true - for od_entry in ${files_needing_output_dir[@]}; do - if [[ $od_entry = $idl_file\|* ]]; then - not_processed=false; - od_entry_split=(${od_entry//\|/ }) - for od_entry_split_element in ${od_entry_split[@]:1}; do - od_arg="-d ${od_entry_split_element}" - fastddsgen -replace -genapi $to_arg $cs_arg $od_arg "$file_from_gen" -no-dependencies - done - break - fi - done + # Detect if needs output directories. + not_processed=true + for od_entry in ${files_needing_output_dir[@]}; do + if [[ $od_entry = $idl_file\|* ]]; then + not_processed=false + od_entry_split=(${od_entry//\|/ }) + for od_entry_split_element in ${od_entry_split[@]:1}; do + od_arg="-d ${od_entry_split_element}" + fastddsgen -replace -genapi $to_arg $cs_arg $od_arg "$file_from_gen" -no-dependencies + done + break + fi + done - if $not_processed ; then - fastddsgen -replace -genapi $to_arg $cs_arg $nosupport_arg "$file_from_gen" -no-dependencies - fi + if $not_processed; then + fastddsgen -replace -genapi $to_arg $cs_arg $nosupport_arg "$file_from_gen" -no-dependencies + fi - if [[ $? != 0 ]]; then - ret_value=-1 - fi + if [[ $? != 0 ]]; then + ret_value=-1 + fi - cd - + cd - done # Move source files to src/cpp From 46b467a5dbf9b2e55c495f08b8433be1774b541f Mon Sep 17 00:00:00 2001 From: adriancampo Date: Wed, 31 Jan 2024 18:45:46 +0100 Subject: [PATCH 12/45] Refs #20165: Removed sending and receiving samples Signed-off-by: adriancampo --- test/dds/xtypes/Case0.json | 16 +-- test/dds/xtypes/Case1.json | 8 +- test/dds/xtypes/Case10.json | 15 +- test/dds/xtypes/Case2.json | 19 ++- test/dds/xtypes/Case3.json | 12 +- test/dds/xtypes/Case4.json | 12 +- test/dds/xtypes/Case5.json | 8 +- test/dds/xtypes/Case6.json | 17 +-- test/dds/xtypes/Case7.json | 17 +-- test/dds/xtypes/Case8.json | 23 ++- test/dds/xtypes/Case9.json | 21 ++- .../dds/xtypes/TypeLookupServicePublisher.cpp | 128 +++-------------- test/dds/xtypes/TypeLookupServicePublisher.h | 41 +++--- .../xtypes/TypeLookupServiceSubscriber.cpp | 134 +++--------------- test/dds/xtypes/TypeLookupServiceSubscriber.h | 44 +++--- test/dds/xtypes/TypeLookupServiceTestsTypes.h | 6 +- test/dds/xtypes/TypeLookupService_main.cpp | 17 +-- 17 files changed, 168 insertions(+), 370 deletions(-) diff --git a/test/dds/xtypes/Case0.json b/test/dds/xtypes/Case0.json index 6e13f14f9da..fbecdcbcb9e 100644 --- a/test/dds/xtypes/Case0.json +++ b/test/dds/xtypes/Case0.json @@ -2,22 +2,20 @@ "description": "Case 1: Subscriber knows TypeNoTypeObject, Publisher knows Type1.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", - "expected_matches": "2", + "timeout": "3", + "expected_matches": "0", "known_types": [ "TypeNoTypeObject" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", - "expected_matches": "2", - "known_types": [ - "Type1" - ] + "timeout": "3", + "expected_matches": "1", + "known_types": [] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/Case1.json b/test/dds/xtypes/Case1.json index be49dfb41fe..69dc62463b5 100644 --- a/test/dds/xtypes/Case1.json +++ b/test/dds/xtypes/Case1.json @@ -2,18 +2,18 @@ "description": "Case 1: Subscriber knows Type1, Publisher knows Type1.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", + "timeout": "3", "expected_matches": "1", "known_types": [ "Type1" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", + "timeout": "3", "expected_matches": "1", "known_types": [ "Type1" diff --git a/test/dds/xtypes/Case10.json b/test/dds/xtypes/Case10.json index 6d2b372c9b2..c99009d2f8e 100644 --- a/test/dds/xtypes/Case10.json +++ b/test/dds/xtypes/Case10.json @@ -2,29 +2,28 @@ "description": "Case 10: Publisher knows Type1 and Type2, Subscriber1 knows Type1, Subscriber2 knows Type1 and Type2.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", + "timeout": "3", "expected_matches": "2", "known_types": [ - "Type1", "Type2" ] }, { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", + "timeout": "3", "expected_matches": "2", "known_types": [ "Type1" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", - "expected_matches": "4", + "timeout": "3", + "expected_matches": "2", "known_types": [ "Type1", "Type2" diff --git a/test/dds/xtypes/Case2.json b/test/dds/xtypes/Case2.json index fb94f8e0ca4..cb2f404de9c 100644 --- a/test/dds/xtypes/Case2.json +++ b/test/dds/xtypes/Case2.json @@ -2,23 +2,20 @@ "description": "Case 2: Subscriber knows Type1 and Type2, Publisher knows Type1.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", - "expected_matches": "2", + "timeout": "3", + "expected_matches": "0", "known_types": [ - "Type1", - "Type2" + "Type1" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", - "expected_matches": "2", - "known_types": [ - "Type1" - ] + "timeout": "3", + "expected_matches": "1", + "known_types": [] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/Case3.json b/test/dds/xtypes/Case3.json index 8538c5288fb..700833cb651 100644 --- a/test/dds/xtypes/Case3.json +++ b/test/dds/xtypes/Case3.json @@ -2,19 +2,19 @@ "description": "Case 3: Subscriber knows Type1, Publisher knows Type2.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", - "expected_matches": "2", + "timeout": "3", + "expected_matches": "1", "known_types": [ "Type1" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", - "expected_matches": "2", + "timeout": "3", + "expected_matches": "1", "known_types": [ "Type2" ] diff --git a/test/dds/xtypes/Case4.json b/test/dds/xtypes/Case4.json index d382827c7de..d4ed3dc2b09 100644 --- a/test/dds/xtypes/Case4.json +++ b/test/dds/xtypes/Case4.json @@ -2,20 +2,20 @@ "description": "Case 4: Subscriber knows Type1 and Type2, Publisher knows Type1 and Type3.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", - "expected_matches": "3", + "timeout": "3", + "expected_matches": "2", "known_types": [ "Type1", "Type2" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", - "expected_matches": "3", + "timeout": "3", + "expected_matches": "2", "known_types": [ "Type1", "Type3" diff --git a/test/dds/xtypes/Case5.json b/test/dds/xtypes/Case5.json index 7644865fc28..dfb69131e85 100644 --- a/test/dds/xtypes/Case5.json +++ b/test/dds/xtypes/Case5.json @@ -2,9 +2,9 @@ "description": "Case 5: Subscriber knows Type1 and Type2, Publisher knows Type1 and Type2.", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", + "timeout": "3", "expected_matches": "2", "known_types": [ "Type1", @@ -12,9 +12,9 @@ ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", + "timeout": "3", "expected_matches": "2", "known_types": [ "Type1", diff --git a/test/dds/xtypes/Case6.json b/test/dds/xtypes/Case6.json index 81010420fd7..5d2a5e50f12 100644 --- a/test/dds/xtypes/Case6.json +++ b/test/dds/xtypes/Case6.json @@ -2,23 +2,20 @@ "description": "Case 6: Subscriber knows Type1 and TypeDep, Publisher knows Type1 ", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", - "expected_matches": "2", + "timeout": "3", + "expected_matches": "0", "known_types": [ - "Type1", "TypeDep" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", - "expected_matches": "2", - "known_types": [ - "Type1" - ] + "timeout": "3", + "expected_matches": "1", + "known_types": [] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/Case7.json b/test/dds/xtypes/Case7.json index bc2b3951032..85dc05fd9c8 100644 --- a/test/dds/xtypes/Case7.json +++ b/test/dds/xtypes/Case7.json @@ -2,23 +2,20 @@ "description": "Case 7: Subscriber knows Type1 and TypeBig, Publisher knows Type1 ", "participants": [ { - "kind": "subscriber", + "kind": "publisher", "samples": "10", - "timeout": "5", - "expected_matches": "2", + "timeout": "3", + "expected_matches": "0", "known_types": [ - "Type1", "TypeBig" ] }, { - "kind": "publisher", + "kind": "subscriber", "samples": "10", - "timeout": "5", - "expected_matches": "2", - "known_types": [ - "Type1" - ] + "timeout": "3", + "expected_matches": "1", + "known_types": [] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/Case8.json index 5cbfa00f097..b0479b2cc51 100644 --- a/test/dds/xtypes/Case8.json +++ b/test/dds/xtypes/Case8.json @@ -4,17 +4,8 @@ { "kind": "publisher", "samples": "3", - "timeout": "5", - "expected_matches": "100", - "known_types": [ - "Type1" - ] - }, - { - "kind": "subscriber", - "samples": "3", - "timeout": "5", - "expected_matches": "100", + "timeout": "10", + "expected_matches": "50", "known_types": [ "Type1", "Type2", @@ -65,7 +56,15 @@ "Type47", "Type48", "Type49", - "Type50", + "Type50" + ] + }, + { + "kind": "subscriber", + "samples": "3", + "timeout": "10", + "expected_matches": "50", + "known_types": [ "Type51", "Type52", "Type53", diff --git a/test/dds/xtypes/Case9.json b/test/dds/xtypes/Case9.json index c9f14bc0739..472eaba6cca 100644 --- a/test/dds/xtypes/Case9.json +++ b/test/dds/xtypes/Case9.json @@ -4,28 +4,23 @@ { "kind": "publisher", "samples": "10", - "timeout": "5", - "expected_matches": "2", - "known_types": [ - "Type1" - ] + "timeout": "3", + "expected_matches": "1", + "known_types": [] }, { "kind": "publisher", "samples": "10", - "timeout": "5", - "expected_matches": "2", - "known_types": [ - "Type1" - ] + "timeout": "3", + "expected_matches": "1", + "known_types": [] }, { "kind": "subscriber", "samples": "10", - "timeout": "5", - "expected_matches": "4", + "timeout": "3", + "expected_matches": "0", "known_types": [ - "Type1", "Type2" ] } diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index be1d0e64597..2fc5f0b1399 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -18,17 +18,6 @@ #include "TypeLookupServicePublisher.h" -#include -#include -#include -#include -#include -#include -#include -#include - -#include - #include #include #include @@ -267,13 +256,6 @@ bool TypeLookupServicePublisher::create_known_type_impl( return false; } - // CREATE CALLBACK - a_type.callback_ = [type](void* data, int current_sample) - { - Type* typed_data = static_cast(data); - typed_data->index(current_sample); - }; - { std::lock_guard guard(known_types_mutex_); known_types_.emplace(type, a_type); @@ -291,99 +273,50 @@ bool TypeLookupServicePublisher::check_registered_type( } bool TypeLookupServicePublisher::wait_discovery( - uint32_t expected_matches, + uint32_t expected_discoveries, uint32_t timeout) { - expected_matches_ = expected_matches; + expected_matches_ = expected_discoveries; + std::unique_lock lock(mutex_); bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() { return matched_ == expected_matches_; }); + if (!result) { - std::cout << "ERROR TypeLookupServicePublisher discovery Timeout with matched = " << matched_ << std::endl; + std::cout << "ERROR TypeLookupServicePublisher discovery Timeout with matched = " << + matched_ << std::endl; return false; } return true; } -bool TypeLookupServicePublisher::run( - uint32_t samples, - uint32_t timeout) +void TypeLookupServicePublisher::notify_discovery( + std::string type_name, + xtypes::TypeInformationParameter type_info) { - std::unique_lock lock(mutex_); - bool result = cv_.wait_for( - lock, std::chrono::seconds(timeout), [&] - { - std::this_thread::sleep_for(std::chrono::seconds(1)); - uint32_t current_sample = 0; - void* sample = nullptr; - - while (samples > current_sample) - { - for (auto it = known_types_.begin(); it != known_types_.end(); ++it) - { - sample = it->second.type_.create_data(); - it->second.callback_(sample, current_sample); - - std::cout << "Publisher " << it->second.type_.get_type_name() << - " writting sample: " << current_sample << std::endl; - - it->second.writer_->write(sample); - it->second.type_.delete_data(sample); - - ++sent_samples_[it->second.writer_->guid()]; - - std::this_thread::sleep_for(std::chrono::milliseconds(10)); - } - ++current_sample; - } - return true; - }); - - if (!result) + if (unique_types_.insert(type_name).second) { - std::cout << "ERROR TypeLookupServicePublisher run Timeout" << std::endl; - - if (expected_matches_ != sent_samples_.size()) + const bool should_be_registered = type_name.find("NoTypeObject") == std::string::npos; + if (should_be_registered && !check_registered_type(type_info)) { - std::cout << "expected_matches_ = " << expected_matches_ << - " matched_ = " << sent_samples_.size() << std::endl; + throw TypeLookupServicePublisherTypeRegistryException(type_name + + (should_be_registered ? " registered" : " not registered")); } - - for (auto& sent_sample : sent_samples_) - { - if (samples != sent_sample.second) - { - std::cout << sent_sample.first << "Wrote: " - << sent_sample.second << " samples" << std::endl; - } - } - return false; + std::unique_lock lock(mutex_); + ++matched_; + cv_.notify_one(); } - return true; } -void TypeLookupServicePublisher::on_publication_matched( - DataWriter* /*writer*/, - const PublicationMatchedStatus& info) +bool TypeLookupServicePublisher::run_for( + uint32_t timeout) { - std::unique_lock lock(mutex_); - if (info.current_count_change == 1) - { - ++matched_; - } - else if (info.current_count_change == -1) - { - --matched_; - } - else - { - std::cout << "ERROR TypeLookupServicePublisher: info.current_count_change" << std::endl; - } - cv_.notify_all(); + std::this_thread::sleep_for(std::chrono::seconds(timeout)); + return true; } void TypeLookupServicePublisher::on_data_reader_discovery( @@ -393,25 +326,10 @@ void TypeLookupServicePublisher::on_data_reader_discovery( bool& should_be_ignored) { should_be_ignored = false; - std::string type_name = info.type_name.to_string(); if (eprosima::fastdds::rtps::ReaderDiscoveryStatus::DISCOVERED_READER == reason) { - // Check if the type is already created - if (nullptr == participant_->find_type(type_name)) - { - // Check type registration - const bool should_be_registered = type_name.find("NoTypeObject") != std::string::npos; - - if ((should_be_registered && check_registered_type(info.type_information)) || - (!should_be_registered && !check_registered_type(info.type_information))) - { - throw TypeLookupServicePublisherTypeRegistryException(type_name + - (should_be_registered ? " registered" : " not registered")); - } - - // Create new publisher for the type - create_known_types_threads.emplace_back(&TypeLookupServicePublisher::create_known_type, this, type_name); - } + create_known_types_threads.emplace_back(&TypeLookupServicePublisher::notify_discovery, + this, info.type_name.to_string(), info.type_information); } } diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index f1aaa58027b..f16b2837ba5 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -17,8 +17,20 @@ * */ -#ifndef _TYPELOOKUPSERVICETEST_PUBLISHER_H_ -#define _TYPELOOKUPSERVICETEST_PUBLISHER_H_ +#ifndef _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_PUBLISHER_H_ +#define _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_PUBLISHER_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -27,12 +39,6 @@ #include "TypeLookupServiceTestsTypes.h" -#include -#include -#include -#include -#include - namespace eprosima { namespace fastdds { namespace dds { @@ -56,8 +62,6 @@ struct PubKnownType Publisher* publisher_ = nullptr; DataWriter* writer_ = nullptr; Topic* topic_ = nullptr; - - std::function callback_; }; // Define a macro to simplify type registration @@ -98,13 +102,12 @@ class TypeLookupServicePublisher uint32_t expected_matches, uint32_t timeout); - bool run( - uint32_t samples, - uint32_t timeout); + void notify_discovery( + std::string type_name, + xtypes::TypeInformationParameter type_info); - void on_publication_matched( - DataWriter* /*writer*/, - const PublicationMatchedStatus& info) override; + bool run_for( + uint32_t timeout); void on_data_reader_discovery( eprosima::fastdds::dds::DomainParticipant* /*participant*/, @@ -121,16 +124,16 @@ class TypeLookupServicePublisher unsigned int matched_ = 0; unsigned int expected_matches_ = 0; - std::map sent_samples_; - std::mutex known_types_mutex_; std::map known_types_; std::map> type_creator_functions_; std::vector create_known_types_threads; + std::unordered_set unique_types_; + }; } // dds } // fastdds } // eprosima -#endif /* _TYPELOOKUPSERVICETEST_PUBLISHER_H_ */ +#endif /* _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_PUBLISHER_H_ */ diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index 06f54f81cc5..6469d91a2b9 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -19,13 +19,6 @@ #include "TypeLookupServiceSubscriber.h" -#include -#include -#include -#include - -#include - #include #include #include @@ -272,13 +265,6 @@ bool TypeLookupServiceSubscriber::create_known_type_impl( return false; } - // CREATE CALLBACK - a_type.callback_ = [](void* data) - { - Type* sample = static_cast(data); - std::cout << "index(" << sample->index() << ")" << std::endl; - }; - { std::lock_guard guard(known_types_mutex_); known_types_.emplace(type, a_type); @@ -296,110 +282,50 @@ bool TypeLookupServiceSubscriber::check_registered_type( } bool TypeLookupServiceSubscriber::wait_discovery( - uint32_t expected_matches, + uint32_t expected_discoveries, uint32_t timeout) { - expected_matches_ = expected_matches; + expected_matches_ = expected_discoveries; + std::unique_lock lock(mutex_); bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() { return matched_ == expected_matches_; }); + if (!result) { - std::cout << "ERROR TypeLookupServiceSubscriber discovery Timeout with matched = " << matched_ << std::endl; + std::cout << "ERROR TypeLookupServiceSubscriber discovery Timeout with matched = " << + matched_ << std::endl; return false; } return true; } -bool TypeLookupServiceSubscriber::run( - uint32_t samples, - uint32_t timeout) +void TypeLookupServiceSubscriber::notify_discovery( + std::string type_name, + xtypes::TypeInformationParameter type_info) { - std::unique_lock lock(mutex_); - bool result = cv_.wait_for( - lock, std::chrono::seconds(timeout), [&] - { - if (expected_matches_ != received_samples_.size()) - { - return false; - } - - for (auto& received_sample : received_samples_) - { - if (samples != received_sample.second) - - { - return false; - } - } - return true; - }); - - if (!result) + if (unique_types_.insert(type_name).second) { - std::cout << "ERROR TypeLookupServiceSubscriber run Timeout" << std::endl; - - if (expected_matches_ != received_samples_.size()) - { - std::cout << "expected_matches_ = " << expected_matches_ << - " matched_ = " << received_samples_.size() << std::endl; - } - for (auto& received_sample : received_samples_) + const bool should_be_registered = type_name.find("NoTypeObject") == std::string::npos; + if (should_be_registered && !check_registered_type(type_info)) { - if (samples != received_sample.second) - { - std::cout << "From: " << received_sample.first << - " samples: " << received_sample.second << "/" << samples << std::endl; - } + throw TypeLookupServiceSubscriberTypeRegistryException(type_name + + (should_be_registered ? " registered" : " not registered")); } - - return false; - } - return true; -} - -void TypeLookupServiceSubscriber::on_subscription_matched( - DataReader* /*reader*/, - const SubscriptionMatchedStatus& info) -{ - std::unique_lock lock(mutex_); - if (info.current_count_change == 1) - { + std::unique_lock lock(mutex_); ++matched_; + cv_.notify_one(); } - else if (info.current_count_change == -1) - { - --matched_; - } - else - { - std::cout << "ERROR TypeLookupServiceSubscriber: info.current_count_change" << std::endl; - } - cv_.notify_all(); } -void TypeLookupServiceSubscriber::on_data_available( - DataReader* reader) +bool TypeLookupServiceSubscriber::run_for( + uint32_t timeout) { - SampleInfo info; - void* sample_data = known_types_[reader->type().get_type_name()].obj_; - - if (reader->take_next_sample(sample_data, &info) == RETCODE_OK) - { - if (info.instance_state == ALIVE_INSTANCE_STATE) - { - std::cout << "Subscriber " << reader->type().get_type_name() << - " received sample:" << info.sample_identity.sequence_number() << "->"; - // Call the callback function to process the received data - known_types_[reader->type().get_type_name()].callback_(sample_data); - - received_samples_[info.sample_identity.writer_guid()]++; - cv_.notify_all(); - } - } + std::this_thread::sleep_for(std::chrono::seconds(timeout)); + return true; } void TypeLookupServiceSubscriber::on_data_writer_discovery( @@ -409,25 +335,9 @@ void TypeLookupServiceSubscriber::on_data_writer_discovery( bool& should_be_ignored) { should_be_ignored = false; - std::string type_name = info.type_name.to_string(); - if (eprosima::fastdds::rtps::WriterDiscoveryStatus::DISCOVERED_WRITER == reason) { - // Check if the type is already created - if (nullptr == participant_->find_type(info.type_name.to_string())) - { - // Check type registration - const bool should_be_registered = type_name.find("NoTypeObject") != std::string::npos; - - if ((should_be_registered && check_registered_type(info.type_information)) || - (!should_be_registered && !check_registered_type(info.type_information))) - { - throw TypeLookupServiceSubscriberTypeRegistryException(type_name + - (should_be_registered ? " registered" : " not registered")); - } - - // Create new publisher for the type - create_known_types_threads.emplace_back(&TypeLookupServiceSubscriber::create_known_type, this, type_name); - } + create_known_types_threads.emplace_back(&TypeLookupServiceSubscriber::notify_discovery, + this, info.type_name.to_string(), info.type_information); } } diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index 8d784d8f51a..9220f9de752 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -17,8 +17,20 @@ * */ -#ifndef _TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ -#define _TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ +#ifndef _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ +#define _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -28,13 +40,6 @@ #include "TypeLookupServiceTestsTypes.h" -#include -#include -#include -#include -#include -#include - namespace eprosima { namespace fastdds { namespace dds { @@ -59,8 +64,6 @@ struct SubKnownType Subscriber* subscriber_ = nullptr; DataReader* reader_ = nullptr; Topic* topic_ = nullptr; - - std::function callback_; }; // Define a macro to simplify type registration @@ -100,16 +103,12 @@ class TypeLookupServiceSubscriber uint32_t expected_matches, uint32_t timeout); - bool run( - uint32_t samples, - uint32_t timeout); - - void on_subscription_matched( - DataReader* /*reader*/, - const SubscriptionMatchedStatus& info) override; + void notify_discovery( + std::string type_name, + xtypes::TypeInformationParameter type_info); - void on_data_available( - DataReader* reader) override; + bool run_for( + uint32_t timeout); void on_data_writer_discovery( eprosima::fastdds::dds::DomainParticipant* /*participant*/, @@ -126,12 +125,11 @@ class TypeLookupServiceSubscriber unsigned int matched_ = 0; unsigned int expected_matches_ = 0; - std::map received_samples_; - std::mutex known_types_mutex_; std::map known_types_; std::map> type_creator_functions_; std::vector create_known_types_threads; + std::unordered_set unique_types_; }; @@ -140,4 +138,4 @@ class TypeLookupServiceSubscriber } // eprosima -#endif /* _TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ */ +#endif /* _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ */ diff --git a/test/dds/xtypes/TypeLookupServiceTestsTypes.h b/test/dds/xtypes/TypeLookupServiceTestsTypes.h index 04eca5bc90b..c6b2d1c152d 100644 --- a/test/dds/xtypes/TypeLookupServiceTestsTypes.h +++ b/test/dds/xtypes/TypeLookupServiceTestsTypes.h @@ -17,8 +17,8 @@ * */ -#ifndef _TYPELOOKUPSERVICETEST_TYPES_H_ -#define _TYPELOOKUPSERVICETEST_TYPES_H_ +#ifndef _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_TYPES_H_ +#define _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_TYPES_H_ #include "idl/XtypesTestsType1PubSubTypes.hpp" #include "idl/XtypesTestsType2PubSubTypes.hpp" @@ -27,4 +27,4 @@ #include "idl/XtypesTestsTypeDepPubSubTypes.hpp" #include "idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp" -#endif /* _TYPELOOKUPSERVICETEST_TYPES_H_ */ +#endif /* _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_TYPES_H_ */ diff --git a/test/dds/xtypes/TypeLookupService_main.cpp b/test/dds/xtypes/TypeLookupService_main.cpp index 7d02268a2d5..d117dc5e4f4 100644 --- a/test/dds/xtypes/TypeLookupService_main.cpp +++ b/test/dds/xtypes/TypeLookupService_main.cpp @@ -100,19 +100,6 @@ int main( CommandLineArgs args = parse_args(argc, argv); - if (args.kind == 0 || args.samples == 0 || args.timeout == 0 || - args.expected_matches == 0 || args.known_types.empty()) - { - std::cout << "Invalid command-line arguments. Usage: " << - "./DDSXtypesCommunication " << - "kind= " << - "samples= " << - "expected_matches= " << - "timeout= " << - "known_types=" << std::endl; - return -1; - } - try { switch (args.kind){ @@ -120,13 +107,13 @@ int main( eprosima::fastdds::dds::TypeLookupServicePublisher pub; return (pub.init(args.known_types) && pub.wait_discovery(args.expected_matches, args.timeout) && - pub.run(args.samples, args.timeout)) ? 0 : -1; + pub.run_for(args.timeout)) ? 0 : -1; } case 2: { eprosima::fastdds::dds::TypeLookupServiceSubscriber sub; return (sub.init(args.known_types) && sub.wait_discovery(args.expected_matches, args.timeout) && - sub.run(args.samples, args.timeout)) ? 0 : -1; + sub.run_for(args.timeout)) ? 0 : -1; } default: std::cout << "Invalid participant type. Use 'publisher' or 'subscriber'." << std::endl; From 03994eb04457ec682ee0780762ebdc8206bfc7ee Mon Sep 17 00:00:00 2001 From: adriancampo Date: Thu, 1 Feb 2024 08:00:57 +0100 Subject: [PATCH 13/45] Refs #20165: Removed descriptions from json tests case files Signed-off-by: adriancampo --- test/dds/xtypes/Case0.json | 1 - test/dds/xtypes/Case1.json | 1 - test/dds/xtypes/Case10.json | 1 - test/dds/xtypes/Case2.json | 1 - test/dds/xtypes/Case3.json | 1 - test/dds/xtypes/Case4.json | 1 - test/dds/xtypes/Case5.json | 1 - test/dds/xtypes/Case6.json | 1 - test/dds/xtypes/Case7.json | 1 - test/dds/xtypes/Case8.json | 1 - test/dds/xtypes/Case9.json | 1 - 11 files changed, 11 deletions(-) diff --git a/test/dds/xtypes/Case0.json b/test/dds/xtypes/Case0.json index fbecdcbcb9e..c0937c99f3d 100644 --- a/test/dds/xtypes/Case0.json +++ b/test/dds/xtypes/Case0.json @@ -1,5 +1,4 @@ { - "description": "Case 1: Subscriber knows TypeNoTypeObject, Publisher knows Type1.", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case1.json b/test/dds/xtypes/Case1.json index 69dc62463b5..f50d995af0b 100644 --- a/test/dds/xtypes/Case1.json +++ b/test/dds/xtypes/Case1.json @@ -1,5 +1,4 @@ { - "description": "Case 1: Subscriber knows Type1, Publisher knows Type1.", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case10.json b/test/dds/xtypes/Case10.json index c99009d2f8e..73f461c8e71 100644 --- a/test/dds/xtypes/Case10.json +++ b/test/dds/xtypes/Case10.json @@ -1,5 +1,4 @@ { - "description": "Case 10: Publisher knows Type1 and Type2, Subscriber1 knows Type1, Subscriber2 knows Type1 and Type2.", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case2.json b/test/dds/xtypes/Case2.json index cb2f404de9c..37017950fb2 100644 --- a/test/dds/xtypes/Case2.json +++ b/test/dds/xtypes/Case2.json @@ -1,5 +1,4 @@ { - "description": "Case 2: Subscriber knows Type1 and Type2, Publisher knows Type1.", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case3.json b/test/dds/xtypes/Case3.json index 700833cb651..35214b73d25 100644 --- a/test/dds/xtypes/Case3.json +++ b/test/dds/xtypes/Case3.json @@ -1,5 +1,4 @@ { - "description": "Case 3: Subscriber knows Type1, Publisher knows Type2.", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case4.json b/test/dds/xtypes/Case4.json index d4ed3dc2b09..d2556923b2b 100644 --- a/test/dds/xtypes/Case4.json +++ b/test/dds/xtypes/Case4.json @@ -1,5 +1,4 @@ { - "description": "Case 4: Subscriber knows Type1 and Type2, Publisher knows Type1 and Type3.", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case5.json b/test/dds/xtypes/Case5.json index dfb69131e85..4373e2b9f2c 100644 --- a/test/dds/xtypes/Case5.json +++ b/test/dds/xtypes/Case5.json @@ -1,5 +1,4 @@ { - "description": "Case 5: Subscriber knows Type1 and Type2, Publisher knows Type1 and Type2.", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case6.json b/test/dds/xtypes/Case6.json index 5d2a5e50f12..2be8bb81ad0 100644 --- a/test/dds/xtypes/Case6.json +++ b/test/dds/xtypes/Case6.json @@ -1,5 +1,4 @@ { - "description": "Case 6: Subscriber knows Type1 and TypeDep, Publisher knows Type1 ", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case7.json b/test/dds/xtypes/Case7.json index 85dc05fd9c8..587e2da68f2 100644 --- a/test/dds/xtypes/Case7.json +++ b/test/dds/xtypes/Case7.json @@ -1,5 +1,4 @@ { - "description": "Case 7: Subscriber knows Type1 and TypeBig, Publisher knows Type1 ", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/Case8.json index b0479b2cc51..3470782d4dd 100644 --- a/test/dds/xtypes/Case8.json +++ b/test/dds/xtypes/Case8.json @@ -1,5 +1,4 @@ { - "description": "Case 8: Subscriber from Type1, Publisher knows Type1...Type100 ", "participants": [ { "kind": "publisher", diff --git a/test/dds/xtypes/Case9.json b/test/dds/xtypes/Case9.json index 472eaba6cca..e2c6aa5002b 100644 --- a/test/dds/xtypes/Case9.json +++ b/test/dds/xtypes/Case9.json @@ -1,5 +1,4 @@ { - "description": "Case 9: Subscriber knows Type1 and Type2, Publisher1 and Publisher2 knows Type1.", "participants": [ { "kind": "publisher", From f435495088d9bd8dffe0e441f169be432c5596f2 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Thu, 8 Feb 2024 15:30:27 +0100 Subject: [PATCH 14/45] Refs #20165: Added communication with dynamic types. Signed-off-by: adriancampo --- test/dds/xtypes/Case0.json | 2 +- test/dds/xtypes/Case10.json | 2 +- test/dds/xtypes/Case2.json | 2 +- test/dds/xtypes/Case3.json | 4 +- test/dds/xtypes/Case4.json | 4 +- test/dds/xtypes/Case6.json | 2 +- test/dds/xtypes/Case7.json | 6 +- test/dds/xtypes/Case8.json | 4 +- test/dds/xtypes/Case9.json | 2 +- .../dds/xtypes/TypeLookupServicePublisher.cpp | 246 +- test/dds/xtypes/TypeLookupServicePublisher.h | 51 +- .../xtypes/TypeLookupServiceSubscriber.cpp | 257 +- test/dds/xtypes/TypeLookupServiceSubscriber.h | 54 +- test/dds/xtypes/TypeLookupService_main.cpp | 4 +- test/dds/xtypes/idl/XtypesTestsType1.hpp | 50 +- test/dds/xtypes/idl/XtypesTestsType1.idl | 2 +- .../dds/xtypes/idl/XtypesTestsType1CdrAux.hpp | 2 +- .../dds/xtypes/idl/XtypesTestsType1CdrAux.ipp | 8 +- .../idl/XtypesTestsType1PubSubTypes.hpp | 2 +- .../idl/XtypesTestsType1TypeObjectSupport.cxx | 46 +- test/dds/xtypes/idl/XtypesTestsType2.hpp | 50 +- test/dds/xtypes/idl/XtypesTestsType2.idl | 2 +- .../dds/xtypes/idl/XtypesTestsType2CdrAux.hpp | 2 +- .../dds/xtypes/idl/XtypesTestsType2CdrAux.ipp | 8 +- .../idl/XtypesTestsType2PubSubTypes.hpp | 2 +- .../idl/XtypesTestsType2TypeObjectSupport.cxx | 46 +- test/dds/xtypes/idl/XtypesTestsType3.hpp | 50 +- test/dds/xtypes/idl/XtypesTestsType3.idl | 2 +- .../dds/xtypes/idl/XtypesTestsType3CdrAux.hpp | 2 +- .../dds/xtypes/idl/XtypesTestsType3CdrAux.ipp | 8 +- .../idl/XtypesTestsType3PubSubTypes.hpp | 2 +- .../idl/XtypesTestsType3TypeObjectSupport.cxx | 46 +- test/dds/xtypes/idl/XtypesTestsTypeBig.hpp | 4706 ++++++++++------- test/dds/xtypes/idl/XtypesTestsTypeBig.idl | 196 +- .../xtypes/idl/XtypesTestsTypeBigCdrAux.hpp | 196 +- .../xtypes/idl/XtypesTestsTypeBigCdrAux.ipp | 784 +-- .../idl/XtypesTestsTypeBigPubSubTypes.hpp | 196 +- .../XtypesTestsTypeBigTypeObjectSupport.cxx | 4508 +++++++++------- test/dds/xtypes/idl/XtypesTestsTypeDep.hpp | 50 +- test/dds/xtypes/idl/XtypesTestsTypeDep.idl | 2 +- .../xtypes/idl/XtypesTestsTypeDepCdrAux.hpp | 2 +- .../xtypes/idl/XtypesTestsTypeDepCdrAux.ipp | 8 +- .../idl/XtypesTestsTypeDepPubSubTypes.hpp | 2 +- .../XtypesTestsTypeDepTypeObjectSupport.cxx | 46 +- .../idl/XtypesTestsTypeNoTypeObject.hpp | 50 +- .../idl/XtypesTestsTypeNoTypeObject.idl | 2 +- .../idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp | 2 +- .../idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp | 8 +- .../XtypesTestsTypeNoTypeObjectPubSubTypes.h | 2 +- ...XtypesTestsTypeNoTypeObjectPubSubTypes.hpp | 2 +- test/dds/xtypes/test_build.py | 3 +- 51 files changed, 6931 insertions(+), 4804 deletions(-) diff --git a/test/dds/xtypes/Case0.json b/test/dds/xtypes/Case0.json index c0937c99f3d..e5a22eceb79 100644 --- a/test/dds/xtypes/Case0.json +++ b/test/dds/xtypes/Case0.json @@ -4,7 +4,7 @@ "kind": "publisher", "samples": "10", "timeout": "3", - "expected_matches": "0", + "expected_matches": "1", "known_types": [ "TypeNoTypeObject" ] diff --git a/test/dds/xtypes/Case10.json b/test/dds/xtypes/Case10.json index 73f461c8e71..b40775115e6 100644 --- a/test/dds/xtypes/Case10.json +++ b/test/dds/xtypes/Case10.json @@ -22,7 +22,7 @@ "kind": "subscriber", "samples": "10", "timeout": "3", - "expected_matches": "2", + "expected_matches": "4", "known_types": [ "Type1", "Type2" diff --git a/test/dds/xtypes/Case2.json b/test/dds/xtypes/Case2.json index 37017950fb2..b263ff76c9c 100644 --- a/test/dds/xtypes/Case2.json +++ b/test/dds/xtypes/Case2.json @@ -4,7 +4,7 @@ "kind": "publisher", "samples": "10", "timeout": "3", - "expected_matches": "0", + "expected_matches": "1", "known_types": [ "Type1" ] diff --git a/test/dds/xtypes/Case3.json b/test/dds/xtypes/Case3.json index 35214b73d25..e2c2ff5d7d6 100644 --- a/test/dds/xtypes/Case3.json +++ b/test/dds/xtypes/Case3.json @@ -4,7 +4,7 @@ "kind": "publisher", "samples": "10", "timeout": "3", - "expected_matches": "1", + "expected_matches": "2", "known_types": [ "Type1" ] @@ -13,7 +13,7 @@ "kind": "subscriber", "samples": "10", "timeout": "3", - "expected_matches": "1", + "expected_matches": "2", "known_types": [ "Type2" ] diff --git a/test/dds/xtypes/Case4.json b/test/dds/xtypes/Case4.json index d2556923b2b..0ce64f3fe71 100644 --- a/test/dds/xtypes/Case4.json +++ b/test/dds/xtypes/Case4.json @@ -4,7 +4,7 @@ "kind": "publisher", "samples": "10", "timeout": "3", - "expected_matches": "2", + "expected_matches": "3", "known_types": [ "Type1", "Type2" @@ -14,7 +14,7 @@ "kind": "subscriber", "samples": "10", "timeout": "3", - "expected_matches": "2", + "expected_matches": "3", "known_types": [ "Type1", "Type3" diff --git a/test/dds/xtypes/Case6.json b/test/dds/xtypes/Case6.json index 2be8bb81ad0..52d67f0fad8 100644 --- a/test/dds/xtypes/Case6.json +++ b/test/dds/xtypes/Case6.json @@ -4,7 +4,7 @@ "kind": "publisher", "samples": "10", "timeout": "3", - "expected_matches": "0", + "expected_matches": "1", "known_types": [ "TypeDep" ] diff --git a/test/dds/xtypes/Case7.json b/test/dds/xtypes/Case7.json index 587e2da68f2..c80b8794bb3 100644 --- a/test/dds/xtypes/Case7.json +++ b/test/dds/xtypes/Case7.json @@ -3,8 +3,8 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", - "expected_matches": "0", + "timeout": "10", + "expected_matches": "1", "known_types": [ "TypeBig" ] @@ -12,7 +12,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/Case8.json index 3470782d4dd..9ceff72be77 100644 --- a/test/dds/xtypes/Case8.json +++ b/test/dds/xtypes/Case8.json @@ -4,7 +4,7 @@ "kind": "publisher", "samples": "3", "timeout": "10", - "expected_matches": "50", + "expected_matches": "100", "known_types": [ "Type1", "Type2", @@ -62,7 +62,7 @@ "kind": "subscriber", "samples": "3", "timeout": "10", - "expected_matches": "50", + "expected_matches": "100", "known_types": [ "Type51", "Type52", diff --git a/test/dds/xtypes/Case9.json b/test/dds/xtypes/Case9.json index e2c6aa5002b..5ca84a72d69 100644 --- a/test/dds/xtypes/Case9.json +++ b/test/dds/xtypes/Case9.json @@ -18,7 +18,7 @@ "kind": "subscriber", "samples": "10", "timeout": "3", - "expected_matches": "0", + "expected_matches": "2", "known_types": [ "Type2" ] diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index 2fc5f0b1399..ab77508bea6 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -33,28 +33,14 @@ static int PUB_DOMAIN_ID_ = 10; TypeLookupServicePublisher::~TypeLookupServicePublisher() { - for (auto it = known_types_.begin(); it != known_types_.end(); ++it) - { - if (nullptr != it->second.writer_) - { - it->second.publisher_->delete_datawriter(it->second.writer_); - } - if (nullptr != it->second.publisher_) - { - participant_->delete_publisher(it->second.publisher_); - } - if (nullptr != it->second.topic_) - { - participant_->delete_topic(it->second.topic_); - } - } - if (nullptr != participant_) { + participant_->delete_contained_entities(); DomainParticipantFactory::get_instance()->delete_participant(participant_); + participant_ = nullptr; } - for (auto& thread : create_known_types_threads) + for (auto& thread : create_types_threads) { thread.join(); } @@ -196,9 +182,50 @@ bool TypeLookupServicePublisher::init( return true; } +bool TypeLookupServicePublisher::setup_publisher( + PubKnownType& a_type) +{ + std::string type_name = a_type.type_sup_.get_type_name(); + + // CREATE THE PUBLISHER + Publisher* publisher = participant_->create_publisher(PUBLISHER_QOS_DEFAULT); + if (publisher == nullptr) + { + std::cout << "ERROR TypeLookupServicePublisher: create_publisher: " << type_name << std::endl; + return false; + } + + // CREATE THE TOPIC + std::ostringstream topic_name; + topic_name << type_name << "_" << asio::ip::host_name() << "_" << PUB_DOMAIN_ID_; + Topic* topic = participant_->create_topic(topic_name.str(), a_type.type_sup_.get_type_name(), TOPIC_QOS_DEFAULT); + if (topic == nullptr) + { + std::cout << "ERROR TypeLookupServicePublisher: create_topic: " << type_name << std::endl; + return false; + } + + // CREATE THE DATAWRITER + DataWriterQos wqos = publisher->get_default_datawriter_qos(); + wqos.data_sharing().off(); + a_type.writer_ = publisher->create_datawriter(topic, wqos); + if (a_type.writer_ == nullptr) + { + std::cout << "ERROR TypeLookupServicePublisher: create_datawriter" << std::endl; + return false; + } + return true; +} + bool TypeLookupServicePublisher::create_known_type( const std::string& type) { + // Check if the type is already created + if (nullptr != participant_->find_type(type)) + { + return false; + } + // Find the type creator in the map auto it = type_creator_functions_.find(type); if (it != type_creator_functions_.end()) @@ -219,48 +246,78 @@ bool TypeLookupServicePublisher::create_known_type_impl( { // Create a new PubKnownType for the given type PubKnownType a_type; - a_type.type_.reset(new TypePubSubType()); - a_type.type_.register_type(participant_); + a_type.type_ = new Type(); + a_type.type_sup_.reset(new TypePubSubType()); + a_type.type_sup_.register_type(participant_); + + // CREATE SET METHOD + a_type.set_values_ = [](void* sample, std::string current_sample) + { + Type* typed_data = static_cast(sample); + typed_data->content(current_sample); + }; + + if (!setup_publisher(a_type)) + { + return false; + } + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(type, a_type); + return true; +} - // CREATE THE PUBLISHER - a_type.publisher_ = participant_->create_publisher(PUBLISHER_QOS_DEFAULT, this); - if (a_type.publisher_ == nullptr) +bool TypeLookupServicePublisher::create_discovered_type( + const SubscriptionBuiltinTopicData& info) +{ + std::string new_type_name = info.type_name.to_string(); + // Check if the type is already created + if (nullptr != participant_->find_type(new_type_name)) { - std::cout << "ERROR TypeLookupServicePublisher: create_publisher: " << type << std::endl; return false; } - // CREATE THE TOPIC - std::ostringstream topic_name; - topic_name << type << "_" << asio::ip::host_name() << "_" << PUB_DOMAIN_ID_; - a_type.topic_ = - participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); - if (a_type.topic_ == nullptr) + PubKnownType a_type; + + //CREATE THE DYNAMIC TYPE + xtypes::TypeObject type_object; + if (RETCODE_OK != DomainParticipantFactory::get_instance()->type_object_registry().get_type_object( + info.type_information.type_information.complete().typeid_with_size().type_id(), type_object)) + { - std::cout << "ERROR TypeLookupServicePublisher: create_topic: " << type << std::endl; + std::cout << "ERROR: TypeObject cannot be retrieved for type: " << new_type_name << std::endl; return false; } - // CREATE THE DATAWRITER - DataWriterQos wqos = a_type.publisher_->get_default_datawriter_qos(); - wqos.liveliness().lease_duration = 3; - wqos.liveliness().announcement_period = 1; - wqos.liveliness().kind = AUTOMATIC_LIVELINESS_QOS; - wqos.data_sharing().off(); + // Create DynamicType + a_type.dyn_type_ = DynamicTypeBuilderFactory::get_instance()->create_type_w_type_object(type_object)->build(); + if (!a_type.dyn_type_) + { + std::cout << "ERROR: DynamicType cannot be created for type: " << new_type_name << std::endl; + return false; + } - a_type.writer_ = a_type.publisher_->create_datawriter(a_type.topic_, wqos, this); - if (a_type.writer_ == nullptr) + // Register the data type + a_type.type_sup_.reset(new DynamicPubSubType(a_type.dyn_type_)); + if (RETCODE_OK != a_type.type_sup_.register_type(participant_)) { - std::cout << "ERROR TypeLookupServicePublisher: create_datawriter" << std::endl; + std::cout << "ERROR: DynamicType cannot be registered for type: " << new_type_name << std::endl; return false; } + // CREATE SET METHOD + a_type.dyn_set_values_ = [](DynamicData::_ref_type sample, std::string current_sample) + { + sample->set_string_value(0, current_sample); + }; + + if (!setup_publisher(a_type)) { - std::lock_guard guard(known_types_mutex_); - known_types_.emplace(type, a_type); + return false; } + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(new_type_name, a_type); return true; } @@ -273,10 +330,10 @@ bool TypeLookupServicePublisher::check_registered_type( } bool TypeLookupServicePublisher::wait_discovery( - uint32_t expected_discoveries, + uint32_t expected_matches, uint32_t timeout) { - expected_matches_ = expected_discoveries; + expected_matches_ = expected_matches; std::unique_lock lock(mutex_); bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), @@ -294,29 +351,81 @@ bool TypeLookupServicePublisher::wait_discovery( return true; } -void TypeLookupServicePublisher::notify_discovery( - std::string type_name, - xtypes::TypeInformationParameter type_info) +bool TypeLookupServicePublisher::run( + uint32_t samples, + uint32_t timeout) { - if (unique_types_.insert(type_name).second) + std::unique_lock lock(mutex_); + bool result = cv_.wait_for( + lock, std::chrono::seconds(timeout), [&] + { + std::this_thread::sleep_for(std::chrono::milliseconds(500)); + uint32_t current_sample = 0; + std::string type_name; + while (samples > current_sample) + { + for (auto& known_type : known_types_) + { + type_name = known_type.second.type_sup_.get_type_name(); + if (known_type.second.dyn_type_) + { + DynamicData::_ref_type sample = + DynamicDataFactory::get_instance()->create_data(known_type.second.dyn_type_); + known_type.second.dyn_set_values_(sample, std::to_string(current_sample)); + std::cout << "Publisher dyn_type_" << type_name << ": " << current_sample << std::endl; + known_type.second.writer_->write(&sample); + } + + if (known_type.second.type_) + { + void* sample = known_type.second.type_sup_.create_data(); + known_type.second.set_values_(sample, std::to_string(current_sample)); + std::cout << "Publisher type_" << type_name << ": " << current_sample << std::endl; + known_type.second.writer_->write(sample); + known_type.second.type_sup_.delete_data(sample); + } + + ++sent_samples_[known_type.second.writer_->guid()]; + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + } + ++current_sample; + } + return true; + }); + + if (!result) { - const bool should_be_registered = type_name.find("NoTypeObject") == std::string::npos; - if (should_be_registered && !check_registered_type(type_info)) + std::cout << "ERROR TypeLookupServicePublisher run Timeout" << std::endl; + + if (expected_matches_ != sent_samples_.size()) { - throw TypeLookupServicePublisherTypeRegistryException(type_name + - (should_be_registered ? " registered" : " not registered")); + std::cout << "expected_matches_ = " << expected_matches_ << + " matched_ = " << sent_samples_.size() << std::endl; } - std::unique_lock lock(mutex_); - ++matched_; - cv_.notify_one(); + + for (auto& sent_sample : sent_samples_) + { + if (samples != sent_sample.second) + { + std::cout << sent_sample.first << "Wrote: " + << sent_sample.second << " samples" << std::endl; + } + } + return false; } + return true; } -bool TypeLookupServicePublisher::run_for( - uint32_t timeout) +void TypeLookupServicePublisher::on_publication_matched( + DataWriter* /*writer*/, + const PublicationMatchedStatus& info) { - std::this_thread::sleep_for(std::chrono::seconds(timeout)); - return true; + std::unique_lock lock(mutex_); + if (info.current_count_change == 1) + { + ++matched_; + cv_.notify_all(); + } } void TypeLookupServicePublisher::on_data_reader_discovery( @@ -326,10 +435,27 @@ void TypeLookupServicePublisher::on_data_reader_discovery( bool& should_be_ignored) { should_be_ignored = false; + std::string discovered_reader_type_name = info.type_name.to_string(); if (eprosima::fastdds::rtps::ReaderDiscoveryStatus::DISCOVERED_READER == reason) { - create_known_types_threads.emplace_back(&TypeLookupServicePublisher::notify_discovery, - this, info.type_name.to_string(), info.type_information); + // Check if the type is already created + if (nullptr == participant_->find_type(discovered_reader_type_name)) + { + // Check type registration + const bool should_be_registered = discovered_reader_type_name.find("NoTypeObject") == std::string::npos; + if ((should_be_registered && !check_registered_type(info.type_information)) || + (!should_be_registered && check_registered_type(info.type_information))) + { + throw std::runtime_error(discovered_reader_type_name + + (should_be_registered ? " registered" : " not registered")); + } + + // Create new publisher for the type + if (should_be_registered) + { + create_types_threads.emplace_back(&TypeLookupServicePublisher::create_discovered_type, this, info); + } + } } } diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index f16b2837ba5..2c797859ef2 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -30,11 +30,15 @@ #include #include #include -#include #include #include #include +#include +#include +#include +#include +#include #include #include "TypeLookupServiceTestsTypes.h" @@ -43,25 +47,16 @@ namespace eprosima { namespace fastdds { namespace dds { -class TypeLookupServicePublisherTypeRegistryException : public std::runtime_error -{ -public: - - TypeLookupServicePublisherTypeRegistryException( - std::string msg) - : std::runtime_error("Type: " + msg + " in TypeLookupServicePublisher") - { - } - -}; - struct PubKnownType { - TypeSupport type_; - void* type_sup_; - Publisher* publisher_ = nullptr; + void* type_; + DynamicType::_ref_type dyn_type_; + TypeSupport type_sup_; + DataWriter* writer_ = nullptr; - Topic* topic_ = nullptr; + + std::function set_values_; + std::function dyn_set_values_; }; // Define a macro to simplify type registration @@ -88,6 +83,9 @@ class TypeLookupServicePublisher bool init( std::vector known_types); + bool setup_publisher( + PubKnownType& new_type); + bool create_known_type( const std::string& type); @@ -95,6 +93,9 @@ class TypeLookupServicePublisher bool create_known_type_impl( const std::string& type); + bool create_discovered_type( + const eprosima::fastdds::dds::SubscriptionBuiltinTopicData& info); + bool check_registered_type( const xtypes::TypeInformationParameter& type_info); @@ -102,13 +103,14 @@ class TypeLookupServicePublisher uint32_t expected_matches, uint32_t timeout); - void notify_discovery( - std::string type_name, - xtypes::TypeInformationParameter type_info); - - bool run_for( + bool run( + uint32_t samples, uint32_t timeout); + void on_publication_matched( + DataWriter* /*writer*/, + const PublicationMatchedStatus& info) override; + void on_data_reader_discovery( eprosima::fastdds::dds::DomainParticipant* /*participant*/, eprosima::fastdds::rtps::ReaderDiscoveryStatus reason, @@ -123,13 +125,12 @@ class TypeLookupServicePublisher std::condition_variable cv_; unsigned int matched_ = 0; unsigned int expected_matches_ = 0; + std::map sent_samples_; std::mutex known_types_mutex_; std::map known_types_; std::map> type_creator_functions_; - std::vector create_known_types_threads; - std::unordered_set unique_types_; - + std::vector create_types_threads; }; } // dds diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index 6469d91a2b9..a92e53c6226 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -33,28 +33,14 @@ static int SUB_DOMAIN_ID_ = 10; TypeLookupServiceSubscriber::~TypeLookupServiceSubscriber() { - for (auto it = known_types_.begin(); it != known_types_.end(); ++it) - { - if (nullptr != it->second.reader_) - { - it->second.subscriber_->delete_datareader(it->second.reader_); - } - if (nullptr != it->second.subscriber_) - { - participant_->delete_subscriber(it->second.subscriber_); - } - if (nullptr != it->second.topic_) - { - participant_->delete_topic(it->second.topic_); - } - } - if (nullptr != participant_) { + participant_->delete_contained_entities(); DomainParticipantFactory::get_instance()->delete_participant(participant_); + participant_ = nullptr; } - for (auto& thread : create_known_types_threads) + for (auto& thread : create_types_threads) { thread.join(); } @@ -201,6 +187,41 @@ bool TypeLookupServiceSubscriber::init( return true; } +bool TypeLookupServiceSubscriber::setup_subscriber( + SubKnownType& new_type) +{ + std::string type_name = new_type.type_sup_.get_type_name(); + + //CREATE THE SUBSCRIBER + Subscriber* subscriber = participant_->create_subscriber(SUBSCRIBER_QOS_DEFAULT, nullptr); + if (subscriber == nullptr) + { + std::cout << "ERROR TypeLookupServiceSubscriber: create_subscriber: " << type_name << std::endl; + return false; + } + + //CREATE THE TOPIC + std::ostringstream topic_name; + topic_name << type_name << "_" << asio::ip::host_name() << "_" << SUB_DOMAIN_ID_; + Topic* topic = participant_->create_topic(topic_name.str(), new_type.type_sup_.get_type_name(), TOPIC_QOS_DEFAULT); + if (topic == nullptr) + { + std::cout << "ERROR TypeLookupServiceSubscriber: create_topic: " << type_name << std::endl; + return false; + } + + //CREATE THE DATAREADER + DataReaderQos rqos = subscriber->get_default_datareader_qos(); + rqos.data_sharing().off(); + DataReader* reader = subscriber->create_datareader(topic, rqos); + if (reader == nullptr) + { + std::cout << "ERROR TypeLookupServiceSubscriber: create_datareader: " << type_name << std::endl; + return false; + } + return true; +} + bool TypeLookupServiceSubscriber::create_known_type( const std::string& type) { @@ -211,7 +232,6 @@ bool TypeLookupServiceSubscriber::create_known_type( } // Find the type creator in the map - //std::map> type_creator_functions_; auto it = type_creator_functions_.find(type); if (it != type_creator_functions_.end()) { @@ -229,47 +249,82 @@ template bool TypeLookupServiceSubscriber::create_known_type_impl( const std::string& type) { - // Create a new PubKnownType for the given type + // Create a new SubKnownType for the given type SubKnownType a_type; - a_type.obj_ = new Type(); - a_type.type_.reset(new TypePubSubType()); - a_type.type_.register_type(participant_); + a_type.type_ = new Type(); + a_type.type_sup_.reset(new TypePubSubType()); + a_type.type_sup_.register_type(participant_); + + // CREATE PRINT METHOD + a_type.print_values_ = [](void* sample) + { + Type* typed_data = static_cast(sample); + std::cout << "content(" << typed_data->content() << ")" << std::endl; + }; + + if (!setup_subscriber(a_type)) + { + return false; + } - //CREATE THE SUBSCRIBER - a_type.subscriber_ = participant_->create_subscriber(SUBSCRIBER_QOS_DEFAULT, nullptr); - if (a_type.subscriber_ == nullptr) + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(type, a_type); + return true; +} + +bool TypeLookupServiceSubscriber::create_discovered_type( + const PublicationBuiltinTopicData& info) +{ + std::string new_type_name = info.type_name.to_string(); + // Check if the type is already created + if (nullptr != participant_->find_type(new_type_name)) { - std::cout << "ERROR TypeLookupServiceSubscriber: create_subscriber" << std::endl; return false; } - //CREATE THE TOPIC - std::ostringstream topic_name; - topic_name << type << "_" << asio::ip::host_name() << "_" << SUB_DOMAIN_ID_; - a_type.topic_ = - participant_->create_topic(topic_name.str(), a_type.type_.get_type_name(), TOPIC_QOS_DEFAULT); - if (a_type.topic_ == nullptr) + SubKnownType a_type; + + //CREATE THE DYNAMIC TYPE + xtypes::TypeObject type_object; + if (RETCODE_OK != DomainParticipantFactory::get_instance()->type_object_registry().get_type_object( + info.type_information.type_information.complete().typeid_with_size().type_id(), type_object)) + { - std::cout << "ERROR TypeLookupServiceSubscriber: create_topic" << std::endl; + std::cout << "ERROR: TypeObject cannot be retrieved for type: " << new_type_name << std::endl; return false; } - //CREATE THE DATAREADER - DataReaderQos rqos = a_type.subscriber_->get_default_datareader_qos(); - rqos.data_sharing().off(); + // Create DynamicType + a_type.dyn_type_ = DynamicTypeBuilderFactory::get_instance()->create_type_w_type_object(type_object)->build(); + if (!a_type.dyn_type_) + { + std::cout << "ERROR: DynamicType cannot be created for type: " << new_type_name << std::endl; + return false; + } - a_type.reader_ = a_type.subscriber_->create_datareader(a_type.topic_, rqos); - if (a_type.reader_ == nullptr) + // Register the data type + a_type.type_sup_.reset(new DynamicPubSubType(a_type.dyn_type_)); + if (RETCODE_OK != a_type.type_sup_.register_type(participant_)) { - std::cout << "ERROR TypeLookupServiceSubscriber: create_datareader" << std::endl; + std::cout << "ERROR: DynamicType cannot be registered for type: " << new_type_name << std::endl; return false; } + // CREATE PRINT METHOD + a_type.dyn_print_values_ = [](DynamicData::_ref_type sample) + { + std::string content; + sample->get_string_value(content, 0); + std::cout << "content(" << content << ")" << std::endl; + }; + + if (!setup_subscriber(a_type)) { - std::lock_guard guard(known_types_mutex_); - known_types_.emplace(type, a_type); + return false; } + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(new_type_name, a_type); return true; } @@ -282,10 +337,10 @@ bool TypeLookupServiceSubscriber::check_registered_type( } bool TypeLookupServiceSubscriber::wait_discovery( - uint32_t expected_discoveries, + uint32_t expected_matches, uint32_t timeout) { - expected_matches_ = expected_discoveries; + expected_matches_ = expected_matches; std::unique_lock lock(mutex_); bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), @@ -303,29 +358,94 @@ bool TypeLookupServiceSubscriber::wait_discovery( return true; } -void TypeLookupServiceSubscriber::notify_discovery( - std::string type_name, - xtypes::TypeInformationParameter type_info) +bool TypeLookupServiceSubscriber::run( + uint32_t samples, + uint32_t timeout) { - if (unique_types_.insert(type_name).second) + std::unique_lock lock(mutex_); + bool result = cv_.wait_for( + lock, std::chrono::seconds(timeout), [&] + { + if (expected_matches_ != received_samples_.size()) + { + return false; + } + + for (auto& received_sample : received_samples_) + { + if (samples != received_sample.second) + + { + return false; + } + } + return true; + }); + + if (!result) { - const bool should_be_registered = type_name.find("NoTypeObject") == std::string::npos; - if (should_be_registered && !check_registered_type(type_info)) + std::cout << "ERROR TypeLookupServiceSubscriber run Timeout" << std::endl; + + if (expected_matches_ != received_samples_.size()) + { + std::cout << "expected_matches_ = " << expected_matches_ << + " matched_ = " << received_samples_.size() << std::endl; + } + for (auto& received_sample : received_samples_) { - throw TypeLookupServiceSubscriberTypeRegistryException(type_name + - (should_be_registered ? " registered" : " not registered")); + if (samples != received_sample.second) + { + std::cout << "From: " << received_sample.first << + " samples: " << received_sample.second << "/" << samples << std::endl; + } } - std::unique_lock lock(mutex_); + + return false; + } + return true; +} + +void TypeLookupServiceSubscriber::on_subscription_matched( + DataReader* /*reader*/, + const SubscriptionMatchedStatus& info) +{ + std::unique_lock lock(mutex_); + if (info.current_count_change == 1) + { ++matched_; - cv_.notify_one(); + cv_.notify_all(); } } -bool TypeLookupServiceSubscriber::run_for( - uint32_t timeout) +void TypeLookupServiceSubscriber::on_data_available( + DataReader* reader) { - std::this_thread::sleep_for(std::chrono::seconds(timeout)); - return true; + SampleInfo info; + auto& known_type = known_types_[reader->type().get_type_name()]; + + if (known_type.dyn_type_) + { + DynamicData::_ref_type sample = DynamicDataFactory::get_instance()->create_data(known_type.dyn_type_); + if (reader->take_next_sample(&sample, &info) == RETCODE_OK && info.valid_data) + { + std::cout << "Subscriber dyn_type_" << reader->type().get_type_name() << ": "; + known_type.dyn_print_values_(sample); + received_samples_[info.sample_identity.writer_guid()]++; + cv_.notify_all(); + } + } + + if (known_type.type_) + { + void* sample = known_type.type_; + if (reader->take_next_sample(sample, &info) == RETCODE_OK && info.valid_data) + { + std::cout << "Subscriber type_" << reader->type().get_type_name() << ": "; + known_type.print_values_(sample); + received_samples_[info.sample_identity.writer_guid()]++; + cv_.notify_all(); + } + } } void TypeLookupServiceSubscriber::on_data_writer_discovery( @@ -335,9 +455,28 @@ void TypeLookupServiceSubscriber::on_data_writer_discovery( bool& should_be_ignored) { should_be_ignored = false; + std::string discovered_writer_type_name = info.type_name.to_string(); + if (eprosima::fastdds::rtps::WriterDiscoveryStatus::DISCOVERED_WRITER == reason) { - create_known_types_threads.emplace_back(&TypeLookupServiceSubscriber::notify_discovery, - this, info.type_name.to_string(), info.type_information); + // Check if the type is already created + if (participant_->find_type(discovered_writer_type_name) == nullptr) + { + // Check type registration + const bool should_be_registered = discovered_writer_type_name.find("NoTypeObject") == std::string::npos; + + if ((should_be_registered && !check_registered_type(info.type_information)) || + (!should_be_registered && check_registered_type(info.type_information))) + { + throw std::runtime_error(discovered_writer_type_name + + (should_be_registered ? " registered" : " not registered")); + } + + // Create new subscriber for the type + if (should_be_registered) + { + create_types_threads.emplace_back(&TypeLookupServiceSubscriber::create_discovered_type, this, info); + } + } } } diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index 9220f9de752..4a3e6b63f25 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -36,6 +36,11 @@ #include #include #include +#include +#include +#include +#include +#include #include #include "TypeLookupServiceTestsTypes.h" @@ -44,26 +49,14 @@ namespace eprosima { namespace fastdds { namespace dds { -class TypeLookupServiceSubscriberTypeRegistryException : public std::runtime_error -{ -public: - - TypeLookupServiceSubscriberTypeRegistryException( - std::string msg) - : std::runtime_error("Type: " + msg + " in TypeLookupServiceSubscriber") - { - } - -}; - struct SubKnownType { - TypeSupport type_; - void* obj_; - void* type_sup_; - Subscriber* subscriber_ = nullptr; - DataReader* reader_ = nullptr; - Topic* topic_ = nullptr; + void* type_; + DynamicType::_ref_type dyn_type_; + TypeSupport type_sup_; + + std::function print_values_; + std::function dyn_print_values_; }; // Define a macro to simplify type registration @@ -89,6 +82,9 @@ class TypeLookupServiceSubscriber bool init( std::vector known_types); + bool setup_subscriber( + SubKnownType& new_type); + bool create_known_type( const std::string& type); @@ -96,6 +92,9 @@ class TypeLookupServiceSubscriber bool create_known_type_impl( const std::string& type); + bool create_discovered_type( + const eprosima::fastdds::dds::PublicationBuiltinTopicData& info); + bool check_registered_type( const xtypes::TypeInformationParameter& type_info); @@ -103,13 +102,17 @@ class TypeLookupServiceSubscriber uint32_t expected_matches, uint32_t timeout); - void notify_discovery( - std::string type_name, - xtypes::TypeInformationParameter type_info); - - bool run_for( + bool run( + uint32_t samples, uint32_t timeout); + void on_subscription_matched( + DataReader* /*reader*/, + const SubscriptionMatchedStatus& info) override; + + void on_data_available( + DataReader* reader) override; + void on_data_writer_discovery( eprosima::fastdds::dds::DomainParticipant* /*participant*/, eprosima::fastdds::rtps::WriterDiscoveryStatus reason, @@ -124,13 +127,12 @@ class TypeLookupServiceSubscriber std::condition_variable cv_; unsigned int matched_ = 0; unsigned int expected_matches_ = 0; + std::map received_samples_; std::mutex known_types_mutex_; std::map known_types_; std::map> type_creator_functions_; - std::vector create_known_types_threads; - std::unordered_set unique_types_; - + std::vector create_types_threads; }; } // dds diff --git a/test/dds/xtypes/TypeLookupService_main.cpp b/test/dds/xtypes/TypeLookupService_main.cpp index d117dc5e4f4..0838e34ed4a 100644 --- a/test/dds/xtypes/TypeLookupService_main.cpp +++ b/test/dds/xtypes/TypeLookupService_main.cpp @@ -107,13 +107,13 @@ int main( eprosima::fastdds::dds::TypeLookupServicePublisher pub; return (pub.init(args.known_types) && pub.wait_discovery(args.expected_matches, args.timeout) && - pub.run_for(args.timeout)) ? 0 : -1; + pub.run(args.samples, args.timeout)) ? 0 : -1; } case 2: { eprosima::fastdds::dds::TypeLookupServiceSubscriber sub; return (sub.init(args.known_types) && sub.wait_discovery(args.expected_matches, args.timeout) && - sub.run_for(args.timeout)) ? 0 : -1; + sub.run(args.samples, args.timeout)) ? 0 : -1; } default: std::cout << "Invalid participant type. Use 'publisher' or 'subscriber'." << std::endl; diff --git a/test/dds/xtypes/idl/XtypesTestsType1.hpp b/test/dds/xtypes/idl/XtypesTestsType1.hpp index 59b208a8ed7..09bb76b36a5 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType1.hpp @@ -23,7 +23,9 @@ #define FAST_DDS_GENERATED__XTYPESTESTSTYPE1_HPP #include +#include #include +#include #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) @@ -78,7 +80,7 @@ class Type1 eProsima_user_DllExport Type1( const Type1& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -89,7 +91,7 @@ class Type1 eProsima_user_DllExport Type1( Type1&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -100,7 +102,7 @@ class Type1 const Type1& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -113,7 +115,7 @@ class Type1 Type1&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -124,7 +126,7 @@ class Type1 eProsima_user_DllExport bool operator ==( const Type1& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -138,38 +140,48 @@ class Type1 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; diff --git a/test/dds/xtypes/idl/XtypesTestsType1.idl b/test/dds/xtypes/idl/XtypesTestsType1.idl index ea93b2c8f91..4355c938a67 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1.idl +++ b/test/dds/xtypes/idl/XtypesTestsType1.idl @@ -1,4 +1,4 @@ struct Type1 { - unsigned short index; + string content; }; diff --git a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp index 1c5eb5326fa..53a7d086dda 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp @@ -24,7 +24,7 @@ #include "XtypesTestsType1.hpp" -constexpr uint32_t Type1_max_cdr_typesize {6UL}; +constexpr uint32_t Type1_max_cdr_typesize {264UL}; constexpr uint32_t Type1_max_key_cdr_typesize {0UL}; diff --git a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp index 38e813972bb..9468a84b58f 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp @@ -51,7 +51,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -71,7 +71,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -90,7 +90,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -108,7 +108,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } diff --git a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp index d31937de686..44d7b1ffa61 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp @@ -86,7 +86,7 @@ class Type1PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED diff --git a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx index 8f119f5f70d..dd35edea396 100644 --- a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx @@ -59,34 +59,42 @@ void register_Type1_type_identifier( header_Type1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type1); CompleteStructMemberSeq member_seq_Type1; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type1.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type1); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type1); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type1, member_content); } CompleteStructType struct_type_Type1 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type1, header_Type1, member_seq_Type1); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == diff --git a/test/dds/xtypes/idl/XtypesTestsType2.hpp b/test/dds/xtypes/idl/XtypesTestsType2.hpp index 32227eb5c70..9ff4b471155 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType2.hpp @@ -23,7 +23,9 @@ #define FAST_DDS_GENERATED__XTYPESTESTSTYPE2_HPP #include +#include #include +#include #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) @@ -78,7 +80,7 @@ class Type2 eProsima_user_DllExport Type2( const Type2& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -89,7 +91,7 @@ class Type2 eProsima_user_DllExport Type2( Type2&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -100,7 +102,7 @@ class Type2 const Type2& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -113,7 +115,7 @@ class Type2 Type2&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -124,7 +126,7 @@ class Type2 eProsima_user_DllExport bool operator ==( const Type2& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -138,38 +140,48 @@ class Type2 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - int16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport int16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport int16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - int16_t m_index{0}; + std::string m_content; }; diff --git a/test/dds/xtypes/idl/XtypesTestsType2.idl b/test/dds/xtypes/idl/XtypesTestsType2.idl index 41daff6d0c0..146762df835 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2.idl +++ b/test/dds/xtypes/idl/XtypesTestsType2.idl @@ -1,4 +1,4 @@ struct Type2 { - short index; + string content; }; diff --git a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp index 85ceced92eb..dd1045f5efd 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp @@ -24,7 +24,7 @@ #include "XtypesTestsType2.hpp" -constexpr uint32_t Type2_max_cdr_typesize {6UL}; +constexpr uint32_t Type2_max_cdr_typesize {264UL}; constexpr uint32_t Type2_max_key_cdr_typesize {0UL}; diff --git a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp index 47de377e77f..fe5f109efc9 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp @@ -51,7 +51,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -71,7 +71,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -90,7 +90,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -108,7 +108,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } diff --git a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp index 1a58ef71a5f..aa237c6169e 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp @@ -86,7 +86,7 @@ class Type2PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED diff --git a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx index 51438647037..d36febd7f2b 100644 --- a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx @@ -59,34 +59,42 @@ void register_Type2_type_identifier( header_Type2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type2); CompleteStructMemberSeq member_seq_Type2; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type2.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type2); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type2); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type2, member_content); } CompleteStructType struct_type_Type2 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type2, header_Type2, member_seq_Type2); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == diff --git a/test/dds/xtypes/idl/XtypesTestsType3.hpp b/test/dds/xtypes/idl/XtypesTestsType3.hpp index 4ac870be8fd..d2342c0561f 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType3.hpp @@ -23,7 +23,9 @@ #define FAST_DDS_GENERATED__XTYPESTESTSTYPE3_HPP #include +#include #include +#include #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) @@ -78,7 +80,7 @@ class Type3 eProsima_user_DllExport Type3( const Type3& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -89,7 +91,7 @@ class Type3 eProsima_user_DllExport Type3( Type3&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -100,7 +102,7 @@ class Type3 const Type3& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -113,7 +115,7 @@ class Type3 Type3&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -124,7 +126,7 @@ class Type3 eProsima_user_DllExport bool operator ==( const Type3& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -138,38 +140,48 @@ class Type3 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - int32_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport int32_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport int32_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - int32_t m_index{0}; + std::string m_content; }; diff --git a/test/dds/xtypes/idl/XtypesTestsType3.idl b/test/dds/xtypes/idl/XtypesTestsType3.idl index 89906398fce..f735d7d7e21 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3.idl +++ b/test/dds/xtypes/idl/XtypesTestsType3.idl @@ -1,4 +1,4 @@ struct Type3 { - long index; + string content; }; \ No newline at end of file diff --git a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp index 7581621406a..f3bd2c90fb6 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp @@ -24,7 +24,7 @@ #include "XtypesTestsType3.hpp" -constexpr uint32_t Type3_max_cdr_typesize {8UL}; +constexpr uint32_t Type3_max_cdr_typesize {264UL}; constexpr uint32_t Type3_max_key_cdr_typesize {0UL}; diff --git a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp index 09e7b8d79c6..11cc8c4e73b 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp @@ -51,7 +51,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -71,7 +71,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -90,7 +90,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -108,7 +108,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } diff --git a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp index ccc919eabbd..3dcf702541c 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp +++ b/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp @@ -86,7 +86,7 @@ class Type3PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED diff --git a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx index b9c3c283393..987042f8a82 100644 --- a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx @@ -59,34 +59,42 @@ void register_Type3_type_identifier( header_Type3 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type3); CompleteStructMemberSeq member_seq_Type3; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type3.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type3); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type3); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type3, member_content); } CompleteStructType struct_type_Type3 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type3, header_Type3, member_seq_Type3); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp index c869e9b9765..5dd5dc78dfc 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp @@ -23,7 +23,9 @@ #define FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_HPP #include +#include #include +#include #include "XtypesTestsType1.hpp" #include "XtypesTestsType2.hpp" #include "XtypesTestsType3.hpp" @@ -81,7 +83,7 @@ class Type4 eProsima_user_DllExport Type4( const Type4& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -92,7 +94,7 @@ class Type4 eProsima_user_DllExport Type4( Type4&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -103,7 +105,7 @@ class Type4 const Type4& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -116,7 +118,7 @@ class Type4 Type4&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -127,7 +129,7 @@ class Type4 eProsima_user_DllExport bool operator ==( const Type4& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -141,38 +143,48 @@ class Type4 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -204,7 +216,7 @@ class Type5 eProsima_user_DllExport Type5( const Type5& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -215,7 +227,7 @@ class Type5 eProsima_user_DllExport Type5( Type5&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -226,7 +238,7 @@ class Type5 const Type5& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -239,7 +251,7 @@ class Type5 Type5&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -250,7 +262,7 @@ class Type5 eProsima_user_DllExport bool operator ==( const Type5& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -264,38 +276,48 @@ class Type5 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -327,7 +349,7 @@ class Type6 eProsima_user_DllExport Type6( const Type6& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -338,7 +360,7 @@ class Type6 eProsima_user_DllExport Type6( Type6&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -349,7 +371,7 @@ class Type6 const Type6& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -362,7 +384,7 @@ class Type6 Type6&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -373,7 +395,7 @@ class Type6 eProsima_user_DllExport bool operator ==( const Type6& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -387,38 +409,48 @@ class Type6 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -450,7 +482,7 @@ class Type7 eProsima_user_DllExport Type7( const Type7& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -461,7 +493,7 @@ class Type7 eProsima_user_DllExport Type7( Type7&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -472,7 +504,7 @@ class Type7 const Type7& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -485,7 +517,7 @@ class Type7 Type7&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -496,7 +528,7 @@ class Type7 eProsima_user_DllExport bool operator ==( const Type7& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -510,38 +542,48 @@ class Type7 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -573,7 +615,7 @@ class Type8 eProsima_user_DllExport Type8( const Type8& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -584,7 +626,7 @@ class Type8 eProsima_user_DllExport Type8( Type8&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -595,7 +637,7 @@ class Type8 const Type8& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -608,7 +650,7 @@ class Type8 Type8&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -619,7 +661,7 @@ class Type8 eProsima_user_DllExport bool operator ==( const Type8& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -633,38 +675,48 @@ class Type8 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -696,7 +748,7 @@ class Type9 eProsima_user_DllExport Type9( const Type9& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -707,7 +759,7 @@ class Type9 eProsima_user_DllExport Type9( Type9&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -718,7 +770,7 @@ class Type9 const Type9& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -731,7 +783,7 @@ class Type9 Type9&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -742,7 +794,7 @@ class Type9 eProsima_user_DllExport bool operator ==( const Type9& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -756,38 +808,48 @@ class Type9 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -819,7 +881,7 @@ class Type10 eProsima_user_DllExport Type10( const Type10& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -830,7 +892,7 @@ class Type10 eProsima_user_DllExport Type10( Type10&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -841,7 +903,7 @@ class Type10 const Type10& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -854,7 +916,7 @@ class Type10 Type10&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -865,7 +927,7 @@ class Type10 eProsima_user_DllExport bool operator ==( const Type10& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -879,38 +941,48 @@ class Type10 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -942,7 +1014,7 @@ class Type11 eProsima_user_DllExport Type11( const Type11& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -953,7 +1025,7 @@ class Type11 eProsima_user_DllExport Type11( Type11&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -964,7 +1036,7 @@ class Type11 const Type11& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -977,7 +1049,7 @@ class Type11 Type11&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -988,7 +1060,7 @@ class Type11 eProsima_user_DllExport bool operator ==( const Type11& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1002,38 +1074,48 @@ class Type11 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -1065,7 +1147,7 @@ class Type12 eProsima_user_DllExport Type12( const Type12& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -1076,7 +1158,7 @@ class Type12 eProsima_user_DllExport Type12( Type12&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -1087,7 +1169,7 @@ class Type12 const Type12& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -1100,7 +1182,7 @@ class Type12 Type12&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -1111,7 +1193,7 @@ class Type12 eProsima_user_DllExport bool operator ==( const Type12& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1125,38 +1207,48 @@ class Type12 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -1188,7 +1280,7 @@ class Type13 eProsima_user_DllExport Type13( const Type13& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -1199,7 +1291,7 @@ class Type13 eProsima_user_DllExport Type13( Type13&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -1210,7 +1302,7 @@ class Type13 const Type13& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -1223,7 +1315,7 @@ class Type13 Type13&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -1234,7 +1326,7 @@ class Type13 eProsima_user_DllExport bool operator ==( const Type13& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1248,38 +1340,48 @@ class Type13 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -1311,7 +1413,7 @@ class Type14 eProsima_user_DllExport Type14( const Type14& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -1322,7 +1424,7 @@ class Type14 eProsima_user_DllExport Type14( Type14&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -1333,7 +1435,7 @@ class Type14 const Type14& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -1346,7 +1448,7 @@ class Type14 Type14&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -1357,7 +1459,7 @@ class Type14 eProsima_user_DllExport bool operator ==( const Type14& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1371,38 +1473,48 @@ class Type14 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -1434,7 +1546,7 @@ class Type15 eProsima_user_DllExport Type15( const Type15& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -1445,7 +1557,7 @@ class Type15 eProsima_user_DllExport Type15( Type15&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -1456,7 +1568,7 @@ class Type15 const Type15& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -1469,7 +1581,7 @@ class Type15 Type15&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -1480,7 +1592,7 @@ class Type15 eProsima_user_DllExport bool operator ==( const Type15& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1494,38 +1606,48 @@ class Type15 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -1557,7 +1679,7 @@ class Type16 eProsima_user_DllExport Type16( const Type16& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -1568,7 +1690,7 @@ class Type16 eProsima_user_DllExport Type16( Type16&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -1579,7 +1701,7 @@ class Type16 const Type16& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -1592,7 +1714,7 @@ class Type16 Type16&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -1603,7 +1725,7 @@ class Type16 eProsima_user_DllExport bool operator ==( const Type16& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1617,38 +1739,48 @@ class Type16 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -1680,7 +1812,7 @@ class Type17 eProsima_user_DllExport Type17( const Type17& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -1691,7 +1823,7 @@ class Type17 eProsima_user_DllExport Type17( Type17&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -1702,7 +1834,7 @@ class Type17 const Type17& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -1715,7 +1847,7 @@ class Type17 Type17&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -1726,7 +1858,7 @@ class Type17 eProsima_user_DllExport bool operator ==( const Type17& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1740,38 +1872,48 @@ class Type17 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -1803,7 +1945,7 @@ class Type18 eProsima_user_DllExport Type18( const Type18& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -1814,7 +1956,7 @@ class Type18 eProsima_user_DllExport Type18( Type18&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -1825,7 +1967,7 @@ class Type18 const Type18& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -1838,7 +1980,7 @@ class Type18 Type18&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -1849,7 +1991,7 @@ class Type18 eProsima_user_DllExport bool operator ==( const Type18& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1863,38 +2005,48 @@ class Type18 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -1926,7 +2078,7 @@ class Type19 eProsima_user_DllExport Type19( const Type19& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -1937,7 +2089,7 @@ class Type19 eProsima_user_DllExport Type19( Type19&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -1948,7 +2100,7 @@ class Type19 const Type19& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -1961,7 +2113,7 @@ class Type19 Type19&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -1972,7 +2124,7 @@ class Type19 eProsima_user_DllExport bool operator ==( const Type19& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -1986,38 +2138,48 @@ class Type19 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -2049,7 +2211,7 @@ class Type20 eProsima_user_DllExport Type20( const Type20& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -2060,7 +2222,7 @@ class Type20 eProsima_user_DllExport Type20( Type20&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -2071,7 +2233,7 @@ class Type20 const Type20& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -2084,7 +2246,7 @@ class Type20 Type20&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -2095,7 +2257,7 @@ class Type20 eProsima_user_DllExport bool operator ==( const Type20& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -2109,38 +2271,48 @@ class Type20 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -2172,7 +2344,7 @@ class Type21 eProsima_user_DllExport Type21( const Type21& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -2183,7 +2355,7 @@ class Type21 eProsima_user_DllExport Type21( Type21&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -2194,7 +2366,7 @@ class Type21 const Type21& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -2207,7 +2379,7 @@ class Type21 Type21&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -2218,7 +2390,7 @@ class Type21 eProsima_user_DllExport bool operator ==( const Type21& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -2232,38 +2404,48 @@ class Type21 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -2295,7 +2477,7 @@ class Type22 eProsima_user_DllExport Type22( const Type22& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -2306,7 +2488,7 @@ class Type22 eProsima_user_DllExport Type22( Type22&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -2317,7 +2499,7 @@ class Type22 const Type22& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -2330,7 +2512,7 @@ class Type22 Type22&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -2341,7 +2523,7 @@ class Type22 eProsima_user_DllExport bool operator ==( const Type22& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -2355,38 +2537,48 @@ class Type22 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -2418,7 +2610,7 @@ class Type23 eProsima_user_DllExport Type23( const Type23& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -2429,7 +2621,7 @@ class Type23 eProsima_user_DllExport Type23( Type23&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -2440,7 +2632,7 @@ class Type23 const Type23& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -2453,7 +2645,7 @@ class Type23 Type23&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -2464,7 +2656,7 @@ class Type23 eProsima_user_DllExport bool operator ==( const Type23& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -2478,38 +2670,48 @@ class Type23 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -2541,7 +2743,7 @@ class Type24 eProsima_user_DllExport Type24( const Type24& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -2552,7 +2754,7 @@ class Type24 eProsima_user_DllExport Type24( Type24&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -2563,7 +2765,7 @@ class Type24 const Type24& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -2576,7 +2778,7 @@ class Type24 Type24&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -2587,7 +2789,7 @@ class Type24 eProsima_user_DllExport bool operator ==( const Type24& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -2601,38 +2803,48 @@ class Type24 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -2664,7 +2876,7 @@ class Type25 eProsima_user_DllExport Type25( const Type25& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -2675,7 +2887,7 @@ class Type25 eProsima_user_DllExport Type25( Type25&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -2686,7 +2898,7 @@ class Type25 const Type25& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -2699,7 +2911,7 @@ class Type25 Type25&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -2710,7 +2922,7 @@ class Type25 eProsima_user_DllExport bool operator ==( const Type25& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -2724,38 +2936,48 @@ class Type25 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -2787,7 +3009,7 @@ class Type26 eProsima_user_DllExport Type26( const Type26& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -2798,7 +3020,7 @@ class Type26 eProsima_user_DllExport Type26( Type26&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -2809,7 +3031,7 @@ class Type26 const Type26& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -2822,7 +3044,7 @@ class Type26 Type26&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -2833,7 +3055,7 @@ class Type26 eProsima_user_DllExport bool operator ==( const Type26& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -2847,38 +3069,48 @@ class Type26 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -2910,7 +3142,7 @@ class Type27 eProsima_user_DllExport Type27( const Type27& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -2921,7 +3153,7 @@ class Type27 eProsima_user_DllExport Type27( Type27&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -2932,7 +3164,7 @@ class Type27 const Type27& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -2945,7 +3177,7 @@ class Type27 Type27&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -2956,7 +3188,7 @@ class Type27 eProsima_user_DllExport bool operator ==( const Type27& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -2970,38 +3202,48 @@ class Type27 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -3033,7 +3275,7 @@ class Type28 eProsima_user_DllExport Type28( const Type28& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -3044,7 +3286,7 @@ class Type28 eProsima_user_DllExport Type28( Type28&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -3055,7 +3297,7 @@ class Type28 const Type28& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -3068,7 +3310,7 @@ class Type28 Type28&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -3079,7 +3321,7 @@ class Type28 eProsima_user_DllExport bool operator ==( const Type28& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -3093,38 +3335,48 @@ class Type28 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -3156,7 +3408,7 @@ class Type29 eProsima_user_DllExport Type29( const Type29& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -3167,7 +3419,7 @@ class Type29 eProsima_user_DllExport Type29( Type29&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -3178,7 +3430,7 @@ class Type29 const Type29& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -3191,7 +3443,7 @@ class Type29 Type29&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -3202,7 +3454,7 @@ class Type29 eProsima_user_DllExport bool operator ==( const Type29& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -3216,38 +3468,48 @@ class Type29 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -3279,7 +3541,7 @@ class Type30 eProsima_user_DllExport Type30( const Type30& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -3290,7 +3552,7 @@ class Type30 eProsima_user_DllExport Type30( Type30&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -3301,7 +3563,7 @@ class Type30 const Type30& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -3314,7 +3576,7 @@ class Type30 Type30&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -3325,7 +3587,7 @@ class Type30 eProsima_user_DllExport bool operator ==( const Type30& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -3339,38 +3601,48 @@ class Type30 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -3402,7 +3674,7 @@ class Type31 eProsima_user_DllExport Type31( const Type31& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -3413,7 +3685,7 @@ class Type31 eProsima_user_DllExport Type31( Type31&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -3424,7 +3696,7 @@ class Type31 const Type31& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -3437,7 +3709,7 @@ class Type31 Type31&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -3448,7 +3720,7 @@ class Type31 eProsima_user_DllExport bool operator ==( const Type31& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -3462,38 +3734,48 @@ class Type31 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -3525,7 +3807,7 @@ class Type32 eProsima_user_DllExport Type32( const Type32& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -3536,7 +3818,7 @@ class Type32 eProsima_user_DllExport Type32( Type32&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -3547,7 +3829,7 @@ class Type32 const Type32& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -3560,7 +3842,7 @@ class Type32 Type32&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -3571,7 +3853,7 @@ class Type32 eProsima_user_DllExport bool operator ==( const Type32& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -3585,38 +3867,48 @@ class Type32 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -3648,7 +3940,7 @@ class Type33 eProsima_user_DllExport Type33( const Type33& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -3659,7 +3951,7 @@ class Type33 eProsima_user_DllExport Type33( Type33&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -3670,7 +3962,7 @@ class Type33 const Type33& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -3683,7 +3975,7 @@ class Type33 Type33&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -3694,7 +3986,7 @@ class Type33 eProsima_user_DllExport bool operator ==( const Type33& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -3708,38 +4000,48 @@ class Type33 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -3771,7 +4073,7 @@ class Type34 eProsima_user_DllExport Type34( const Type34& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -3782,7 +4084,7 @@ class Type34 eProsima_user_DllExport Type34( Type34&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -3793,7 +4095,7 @@ class Type34 const Type34& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -3806,7 +4108,7 @@ class Type34 Type34&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -3817,7 +4119,7 @@ class Type34 eProsima_user_DllExport bool operator ==( const Type34& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -3831,38 +4133,48 @@ class Type34 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -3894,7 +4206,7 @@ class Type35 eProsima_user_DllExport Type35( const Type35& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -3905,7 +4217,7 @@ class Type35 eProsima_user_DllExport Type35( Type35&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -3916,7 +4228,7 @@ class Type35 const Type35& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -3929,7 +4241,7 @@ class Type35 Type35&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -3940,7 +4252,7 @@ class Type35 eProsima_user_DllExport bool operator ==( const Type35& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -3954,38 +4266,48 @@ class Type35 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -4017,7 +4339,7 @@ class Type36 eProsima_user_DllExport Type36( const Type36& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -4028,7 +4350,7 @@ class Type36 eProsima_user_DllExport Type36( Type36&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -4039,7 +4361,7 @@ class Type36 const Type36& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -4052,7 +4374,7 @@ class Type36 Type36&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -4063,7 +4385,7 @@ class Type36 eProsima_user_DllExport bool operator ==( const Type36& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -4077,38 +4399,48 @@ class Type36 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -4140,7 +4472,7 @@ class Type37 eProsima_user_DllExport Type37( const Type37& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -4151,7 +4483,7 @@ class Type37 eProsima_user_DllExport Type37( Type37&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -4162,7 +4494,7 @@ class Type37 const Type37& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -4175,7 +4507,7 @@ class Type37 Type37&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -4186,7 +4518,7 @@ class Type37 eProsima_user_DllExport bool operator ==( const Type37& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -4200,38 +4532,48 @@ class Type37 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -4263,7 +4605,7 @@ class Type38 eProsima_user_DllExport Type38( const Type38& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -4274,7 +4616,7 @@ class Type38 eProsima_user_DllExport Type38( Type38&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -4285,7 +4627,7 @@ class Type38 const Type38& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -4298,7 +4640,7 @@ class Type38 Type38&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -4309,7 +4651,7 @@ class Type38 eProsima_user_DllExport bool operator ==( const Type38& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -4323,38 +4665,48 @@ class Type38 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -4386,7 +4738,7 @@ class Type39 eProsima_user_DllExport Type39( const Type39& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -4397,7 +4749,7 @@ class Type39 eProsima_user_DllExport Type39( Type39&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -4408,7 +4760,7 @@ class Type39 const Type39& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -4421,7 +4773,7 @@ class Type39 Type39&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -4432,7 +4784,7 @@ class Type39 eProsima_user_DllExport bool operator ==( const Type39& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -4446,38 +4798,48 @@ class Type39 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -4509,7 +4871,7 @@ class Type40 eProsima_user_DllExport Type40( const Type40& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -4520,7 +4882,7 @@ class Type40 eProsima_user_DllExport Type40( Type40&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -4531,7 +4893,7 @@ class Type40 const Type40& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -4544,7 +4906,7 @@ class Type40 Type40&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -4555,7 +4917,7 @@ class Type40 eProsima_user_DllExport bool operator ==( const Type40& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -4569,38 +4931,48 @@ class Type40 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -4632,7 +5004,7 @@ class Type41 eProsima_user_DllExport Type41( const Type41& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -4643,7 +5015,7 @@ class Type41 eProsima_user_DllExport Type41( Type41&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -4654,7 +5026,7 @@ class Type41 const Type41& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -4667,7 +5039,7 @@ class Type41 Type41&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -4678,7 +5050,7 @@ class Type41 eProsima_user_DllExport bool operator ==( const Type41& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -4692,38 +5064,48 @@ class Type41 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -4755,7 +5137,7 @@ class Type42 eProsima_user_DllExport Type42( const Type42& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -4766,7 +5148,7 @@ class Type42 eProsima_user_DllExport Type42( Type42&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -4777,7 +5159,7 @@ class Type42 const Type42& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -4790,7 +5172,7 @@ class Type42 Type42&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -4801,7 +5183,7 @@ class Type42 eProsima_user_DllExport bool operator ==( const Type42& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -4815,38 +5197,48 @@ class Type42 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -4878,7 +5270,7 @@ class Type43 eProsima_user_DllExport Type43( const Type43& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -4889,7 +5281,7 @@ class Type43 eProsima_user_DllExport Type43( Type43&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -4900,7 +5292,7 @@ class Type43 const Type43& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -4913,7 +5305,7 @@ class Type43 Type43&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -4924,7 +5316,7 @@ class Type43 eProsima_user_DllExport bool operator ==( const Type43& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -4938,38 +5330,48 @@ class Type43 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5001,7 +5403,7 @@ class Type44 eProsima_user_DllExport Type44( const Type44& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5012,7 +5414,7 @@ class Type44 eProsima_user_DllExport Type44( Type44&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -5023,7 +5425,7 @@ class Type44 const Type44& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -5036,7 +5438,7 @@ class Type44 Type44&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -5047,7 +5449,7 @@ class Type44 eProsima_user_DllExport bool operator ==( const Type44& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -5061,38 +5463,48 @@ class Type44 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5124,7 +5536,7 @@ class Type45 eProsima_user_DllExport Type45( const Type45& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5135,7 +5547,7 @@ class Type45 eProsima_user_DllExport Type45( Type45&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -5146,7 +5558,7 @@ class Type45 const Type45& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -5159,7 +5571,7 @@ class Type45 Type45&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -5170,7 +5582,7 @@ class Type45 eProsima_user_DllExport bool operator ==( const Type45& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -5184,38 +5596,48 @@ class Type45 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5247,7 +5669,7 @@ class Type46 eProsima_user_DllExport Type46( const Type46& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5258,7 +5680,7 @@ class Type46 eProsima_user_DllExport Type46( Type46&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -5269,7 +5691,7 @@ class Type46 const Type46& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -5282,7 +5704,7 @@ class Type46 Type46&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -5293,7 +5715,7 @@ class Type46 eProsima_user_DllExport bool operator ==( const Type46& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -5307,38 +5729,48 @@ class Type46 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5370,7 +5802,7 @@ class Type47 eProsima_user_DllExport Type47( const Type47& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5381,7 +5813,7 @@ class Type47 eProsima_user_DllExport Type47( Type47&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -5392,7 +5824,7 @@ class Type47 const Type47& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -5405,7 +5837,7 @@ class Type47 Type47&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -5416,7 +5848,7 @@ class Type47 eProsima_user_DllExport bool operator ==( const Type47& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -5430,38 +5862,48 @@ class Type47 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5493,7 +5935,7 @@ class Type48 eProsima_user_DllExport Type48( const Type48& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5504,7 +5946,7 @@ class Type48 eProsima_user_DllExport Type48( Type48&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -5515,7 +5957,7 @@ class Type48 const Type48& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -5528,7 +5970,7 @@ class Type48 Type48&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -5539,7 +5981,7 @@ class Type48 eProsima_user_DllExport bool operator ==( const Type48& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -5553,38 +5995,48 @@ class Type48 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5616,7 +6068,7 @@ class Type49 eProsima_user_DllExport Type49( const Type49& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5627,7 +6079,7 @@ class Type49 eProsima_user_DllExport Type49( Type49&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -5638,7 +6090,7 @@ class Type49 const Type49& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -5651,7 +6103,7 @@ class Type49 Type49&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -5662,7 +6114,7 @@ class Type49 eProsima_user_DllExport bool operator ==( const Type49& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -5676,38 +6128,48 @@ class Type49 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5739,7 +6201,7 @@ class Type50 eProsima_user_DllExport Type50( const Type50& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5750,7 +6212,7 @@ class Type50 eProsima_user_DllExport Type50( Type50&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -5761,7 +6223,7 @@ class Type50 const Type50& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -5774,7 +6236,7 @@ class Type50 Type50&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -5785,7 +6247,7 @@ class Type50 eProsima_user_DllExport bool operator ==( const Type50& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -5799,38 +6261,48 @@ class Type50 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5862,7 +6334,7 @@ class Type51 eProsima_user_DllExport Type51( const Type51& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5873,7 +6345,7 @@ class Type51 eProsima_user_DllExport Type51( Type51&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -5884,7 +6356,7 @@ class Type51 const Type51& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -5897,7 +6369,7 @@ class Type51 Type51&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -5908,7 +6380,7 @@ class Type51 eProsima_user_DllExport bool operator ==( const Type51& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -5922,38 +6394,48 @@ class Type51 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -5985,7 +6467,7 @@ class Type52 eProsima_user_DllExport Type52( const Type52& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -5996,7 +6478,7 @@ class Type52 eProsima_user_DllExport Type52( Type52&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6007,7 +6489,7 @@ class Type52 const Type52& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -6020,7 +6502,7 @@ class Type52 Type52&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -6031,7 +6513,7 @@ class Type52 eProsima_user_DllExport bool operator ==( const Type52& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -6045,38 +6527,48 @@ class Type52 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -6108,7 +6600,7 @@ class Type53 eProsima_user_DllExport Type53( const Type53& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -6119,7 +6611,7 @@ class Type53 eProsima_user_DllExport Type53( Type53&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6130,7 +6622,7 @@ class Type53 const Type53& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -6143,7 +6635,7 @@ class Type53 Type53&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -6154,7 +6646,7 @@ class Type53 eProsima_user_DllExport bool operator ==( const Type53& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -6168,38 +6660,48 @@ class Type53 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -6231,7 +6733,7 @@ class Type54 eProsima_user_DllExport Type54( const Type54& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -6242,7 +6744,7 @@ class Type54 eProsima_user_DllExport Type54( Type54&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6253,7 +6755,7 @@ class Type54 const Type54& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -6266,7 +6768,7 @@ class Type54 Type54&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -6277,7 +6779,7 @@ class Type54 eProsima_user_DllExport bool operator ==( const Type54& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -6291,38 +6793,48 @@ class Type54 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -6354,7 +6866,7 @@ class Type55 eProsima_user_DllExport Type55( const Type55& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -6365,7 +6877,7 @@ class Type55 eProsima_user_DllExport Type55( Type55&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6376,7 +6888,7 @@ class Type55 const Type55& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -6389,7 +6901,7 @@ class Type55 Type55&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -6400,7 +6912,7 @@ class Type55 eProsima_user_DllExport bool operator ==( const Type55& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -6414,38 +6926,48 @@ class Type55 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -6477,7 +6999,7 @@ class Type56 eProsima_user_DllExport Type56( const Type56& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -6488,7 +7010,7 @@ class Type56 eProsima_user_DllExport Type56( Type56&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6499,7 +7021,7 @@ class Type56 const Type56& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -6512,7 +7034,7 @@ class Type56 Type56&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -6523,7 +7045,7 @@ class Type56 eProsima_user_DllExport bool operator ==( const Type56& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -6537,38 +7059,48 @@ class Type56 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -6600,7 +7132,7 @@ class Type57 eProsima_user_DllExport Type57( const Type57& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -6611,7 +7143,7 @@ class Type57 eProsima_user_DllExport Type57( Type57&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6622,7 +7154,7 @@ class Type57 const Type57& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -6635,7 +7167,7 @@ class Type57 Type57&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -6646,7 +7178,7 @@ class Type57 eProsima_user_DllExport bool operator ==( const Type57& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -6660,38 +7192,48 @@ class Type57 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -6723,7 +7265,7 @@ class Type58 eProsima_user_DllExport Type58( const Type58& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -6734,7 +7276,7 @@ class Type58 eProsima_user_DllExport Type58( Type58&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6745,7 +7287,7 @@ class Type58 const Type58& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -6758,7 +7300,7 @@ class Type58 Type58&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -6769,7 +7311,7 @@ class Type58 eProsima_user_DllExport bool operator ==( const Type58& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -6783,38 +7325,48 @@ class Type58 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -6846,7 +7398,7 @@ class Type59 eProsima_user_DllExport Type59( const Type59& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -6857,7 +7409,7 @@ class Type59 eProsima_user_DllExport Type59( Type59&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6868,7 +7420,7 @@ class Type59 const Type59& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -6881,7 +7433,7 @@ class Type59 Type59&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -6892,7 +7444,7 @@ class Type59 eProsima_user_DllExport bool operator ==( const Type59& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -6906,38 +7458,48 @@ class Type59 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -6969,7 +7531,7 @@ class Type60 eProsima_user_DllExport Type60( const Type60& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -6980,7 +7542,7 @@ class Type60 eProsima_user_DllExport Type60( Type60&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -6991,7 +7553,7 @@ class Type60 const Type60& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7004,7 +7566,7 @@ class Type60 Type60&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7015,7 +7577,7 @@ class Type60 eProsima_user_DllExport bool operator ==( const Type60& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -7029,38 +7591,48 @@ class Type60 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -7092,7 +7664,7 @@ class Type61 eProsima_user_DllExport Type61( const Type61& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -7103,7 +7675,7 @@ class Type61 eProsima_user_DllExport Type61( Type61&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -7114,7 +7686,7 @@ class Type61 const Type61& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7127,7 +7699,7 @@ class Type61 Type61&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7138,7 +7710,7 @@ class Type61 eProsima_user_DllExport bool operator ==( const Type61& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -7152,38 +7724,48 @@ class Type61 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -7215,7 +7797,7 @@ class Type62 eProsima_user_DllExport Type62( const Type62& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -7226,7 +7808,7 @@ class Type62 eProsima_user_DllExport Type62( Type62&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -7237,7 +7819,7 @@ class Type62 const Type62& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7250,7 +7832,7 @@ class Type62 Type62&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7261,7 +7843,7 @@ class Type62 eProsima_user_DllExport bool operator ==( const Type62& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -7275,38 +7857,48 @@ class Type62 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -7338,7 +7930,7 @@ class Type63 eProsima_user_DllExport Type63( const Type63& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -7349,7 +7941,7 @@ class Type63 eProsima_user_DllExport Type63( Type63&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -7360,7 +7952,7 @@ class Type63 const Type63& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7373,7 +7965,7 @@ class Type63 Type63&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7384,7 +7976,7 @@ class Type63 eProsima_user_DllExport bool operator ==( const Type63& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -7398,38 +7990,48 @@ class Type63 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -7461,7 +8063,7 @@ class Type64 eProsima_user_DllExport Type64( const Type64& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -7472,7 +8074,7 @@ class Type64 eProsima_user_DllExport Type64( Type64&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -7483,7 +8085,7 @@ class Type64 const Type64& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7496,7 +8098,7 @@ class Type64 Type64&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7507,7 +8109,7 @@ class Type64 eProsima_user_DllExport bool operator ==( const Type64& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -7521,38 +8123,48 @@ class Type64 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -7584,7 +8196,7 @@ class Type65 eProsima_user_DllExport Type65( const Type65& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -7595,7 +8207,7 @@ class Type65 eProsima_user_DllExport Type65( Type65&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -7606,7 +8218,7 @@ class Type65 const Type65& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7619,7 +8231,7 @@ class Type65 Type65&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7630,7 +8242,7 @@ class Type65 eProsima_user_DllExport bool operator ==( const Type65& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -7644,38 +8256,48 @@ class Type65 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -7707,7 +8329,7 @@ class Type66 eProsima_user_DllExport Type66( const Type66& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -7718,7 +8340,7 @@ class Type66 eProsima_user_DllExport Type66( Type66&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -7729,7 +8351,7 @@ class Type66 const Type66& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7742,7 +8364,7 @@ class Type66 Type66&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7753,7 +8375,7 @@ class Type66 eProsima_user_DllExport bool operator ==( const Type66& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -7767,38 +8389,48 @@ class Type66 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -7830,7 +8462,7 @@ class Type67 eProsima_user_DllExport Type67( const Type67& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -7841,7 +8473,7 @@ class Type67 eProsima_user_DllExport Type67( Type67&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -7852,7 +8484,7 @@ class Type67 const Type67& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7865,7 +8497,7 @@ class Type67 Type67&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7876,7 +8508,7 @@ class Type67 eProsima_user_DllExport bool operator ==( const Type67& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -7890,38 +8522,48 @@ class Type67 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -7953,7 +8595,7 @@ class Type68 eProsima_user_DllExport Type68( const Type68& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -7964,7 +8606,7 @@ class Type68 eProsima_user_DllExport Type68( Type68&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -7975,7 +8617,7 @@ class Type68 const Type68& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -7988,7 +8630,7 @@ class Type68 Type68&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -7999,7 +8641,7 @@ class Type68 eProsima_user_DllExport bool operator ==( const Type68& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8013,38 +8655,48 @@ class Type68 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -8076,7 +8728,7 @@ class Type69 eProsima_user_DllExport Type69( const Type69& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -8087,7 +8739,7 @@ class Type69 eProsima_user_DllExport Type69( Type69&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -8098,7 +8750,7 @@ class Type69 const Type69& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -8111,7 +8763,7 @@ class Type69 Type69&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -8122,7 +8774,7 @@ class Type69 eProsima_user_DllExport bool operator ==( const Type69& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8136,38 +8788,48 @@ class Type69 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -8199,7 +8861,7 @@ class Type70 eProsima_user_DllExport Type70( const Type70& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -8210,7 +8872,7 @@ class Type70 eProsima_user_DllExport Type70( Type70&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -8221,7 +8883,7 @@ class Type70 const Type70& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -8234,7 +8896,7 @@ class Type70 Type70&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -8245,7 +8907,7 @@ class Type70 eProsima_user_DllExport bool operator ==( const Type70& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8259,38 +8921,48 @@ class Type70 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -8322,7 +8994,7 @@ class Type71 eProsima_user_DllExport Type71( const Type71& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -8333,7 +9005,7 @@ class Type71 eProsima_user_DllExport Type71( Type71&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -8344,7 +9016,7 @@ class Type71 const Type71& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -8357,7 +9029,7 @@ class Type71 Type71&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -8368,7 +9040,7 @@ class Type71 eProsima_user_DllExport bool operator ==( const Type71& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8382,38 +9054,48 @@ class Type71 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -8445,7 +9127,7 @@ class Type72 eProsima_user_DllExport Type72( const Type72& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -8456,7 +9138,7 @@ class Type72 eProsima_user_DllExport Type72( Type72&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -8467,7 +9149,7 @@ class Type72 const Type72& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -8480,7 +9162,7 @@ class Type72 Type72&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -8491,7 +9173,7 @@ class Type72 eProsima_user_DllExport bool operator ==( const Type72& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8505,38 +9187,48 @@ class Type72 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -8568,7 +9260,7 @@ class Type73 eProsima_user_DllExport Type73( const Type73& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -8579,7 +9271,7 @@ class Type73 eProsima_user_DllExport Type73( Type73&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -8590,7 +9282,7 @@ class Type73 const Type73& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -8603,7 +9295,7 @@ class Type73 Type73&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -8614,7 +9306,7 @@ class Type73 eProsima_user_DllExport bool operator ==( const Type73& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8628,38 +9320,48 @@ class Type73 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -8691,7 +9393,7 @@ class Type74 eProsima_user_DllExport Type74( const Type74& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -8702,7 +9404,7 @@ class Type74 eProsima_user_DllExport Type74( Type74&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -8713,7 +9415,7 @@ class Type74 const Type74& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -8726,7 +9428,7 @@ class Type74 Type74&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -8737,7 +9439,7 @@ class Type74 eProsima_user_DllExport bool operator ==( const Type74& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8751,38 +9453,48 @@ class Type74 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -8814,7 +9526,7 @@ class Type75 eProsima_user_DllExport Type75( const Type75& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -8825,7 +9537,7 @@ class Type75 eProsima_user_DllExport Type75( Type75&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -8836,7 +9548,7 @@ class Type75 const Type75& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -8849,7 +9561,7 @@ class Type75 Type75&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -8860,7 +9572,7 @@ class Type75 eProsima_user_DllExport bool operator ==( const Type75& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8874,38 +9586,48 @@ class Type75 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -8937,7 +9659,7 @@ class Type76 eProsima_user_DllExport Type76( const Type76& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -8948,7 +9670,7 @@ class Type76 eProsima_user_DllExport Type76( Type76&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -8959,7 +9681,7 @@ class Type76 const Type76& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -8972,7 +9694,7 @@ class Type76 Type76&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -8983,7 +9705,7 @@ class Type76 eProsima_user_DllExport bool operator ==( const Type76& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -8997,38 +9719,48 @@ class Type76 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -9060,7 +9792,7 @@ class Type77 eProsima_user_DllExport Type77( const Type77& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -9071,7 +9803,7 @@ class Type77 eProsima_user_DllExport Type77( Type77&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -9082,7 +9814,7 @@ class Type77 const Type77& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -9095,7 +9827,7 @@ class Type77 Type77&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -9106,7 +9838,7 @@ class Type77 eProsima_user_DllExport bool operator ==( const Type77& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -9120,38 +9852,48 @@ class Type77 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -9183,7 +9925,7 @@ class Type78 eProsima_user_DllExport Type78( const Type78& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -9194,7 +9936,7 @@ class Type78 eProsima_user_DllExport Type78( Type78&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -9205,7 +9947,7 @@ class Type78 const Type78& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -9218,7 +9960,7 @@ class Type78 Type78&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -9229,7 +9971,7 @@ class Type78 eProsima_user_DllExport bool operator ==( const Type78& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -9243,38 +9985,48 @@ class Type78 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -9306,7 +10058,7 @@ class Type79 eProsima_user_DllExport Type79( const Type79& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -9317,7 +10069,7 @@ class Type79 eProsima_user_DllExport Type79( Type79&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -9328,7 +10080,7 @@ class Type79 const Type79& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -9341,7 +10093,7 @@ class Type79 Type79&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -9352,7 +10104,7 @@ class Type79 eProsima_user_DllExport bool operator ==( const Type79& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -9366,38 +10118,48 @@ class Type79 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -9429,7 +10191,7 @@ class Type80 eProsima_user_DllExport Type80( const Type80& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -9440,7 +10202,7 @@ class Type80 eProsima_user_DllExport Type80( Type80&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -9451,7 +10213,7 @@ class Type80 const Type80& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -9464,7 +10226,7 @@ class Type80 Type80&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -9475,7 +10237,7 @@ class Type80 eProsima_user_DllExport bool operator ==( const Type80& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -9489,38 +10251,48 @@ class Type80 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -9552,7 +10324,7 @@ class Type81 eProsima_user_DllExport Type81( const Type81& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -9563,7 +10335,7 @@ class Type81 eProsima_user_DllExport Type81( Type81&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -9574,7 +10346,7 @@ class Type81 const Type81& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -9587,7 +10359,7 @@ class Type81 Type81&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -9598,7 +10370,7 @@ class Type81 eProsima_user_DllExport bool operator ==( const Type81& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -9612,38 +10384,48 @@ class Type81 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -9675,7 +10457,7 @@ class Type82 eProsima_user_DllExport Type82( const Type82& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -9686,7 +10468,7 @@ class Type82 eProsima_user_DllExport Type82( Type82&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -9697,7 +10479,7 @@ class Type82 const Type82& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -9710,7 +10492,7 @@ class Type82 Type82&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -9721,7 +10503,7 @@ class Type82 eProsima_user_DllExport bool operator ==( const Type82& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -9735,38 +10517,48 @@ class Type82 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -9798,7 +10590,7 @@ class Type83 eProsima_user_DllExport Type83( const Type83& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -9809,7 +10601,7 @@ class Type83 eProsima_user_DllExport Type83( Type83&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -9820,7 +10612,7 @@ class Type83 const Type83& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -9833,7 +10625,7 @@ class Type83 Type83&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -9844,7 +10636,7 @@ class Type83 eProsima_user_DllExport bool operator ==( const Type83& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -9858,38 +10650,48 @@ class Type83 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -9921,7 +10723,7 @@ class Type84 eProsima_user_DllExport Type84( const Type84& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -9932,7 +10734,7 @@ class Type84 eProsima_user_DllExport Type84( Type84&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -9943,7 +10745,7 @@ class Type84 const Type84& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -9956,7 +10758,7 @@ class Type84 Type84&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -9967,7 +10769,7 @@ class Type84 eProsima_user_DllExport bool operator ==( const Type84& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -9981,38 +10783,48 @@ class Type84 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -10044,7 +10856,7 @@ class Type85 eProsima_user_DllExport Type85( const Type85& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -10055,7 +10867,7 @@ class Type85 eProsima_user_DllExport Type85( Type85&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -10066,7 +10878,7 @@ class Type85 const Type85& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -10079,7 +10891,7 @@ class Type85 Type85&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -10090,7 +10902,7 @@ class Type85 eProsima_user_DllExport bool operator ==( const Type85& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -10104,38 +10916,48 @@ class Type85 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -10167,7 +10989,7 @@ class Type86 eProsima_user_DllExport Type86( const Type86& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -10178,7 +11000,7 @@ class Type86 eProsima_user_DllExport Type86( Type86&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -10189,7 +11011,7 @@ class Type86 const Type86& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -10202,7 +11024,7 @@ class Type86 Type86&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -10213,7 +11035,7 @@ class Type86 eProsima_user_DllExport bool operator ==( const Type86& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -10227,38 +11049,48 @@ class Type86 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -10290,7 +11122,7 @@ class Type87 eProsima_user_DllExport Type87( const Type87& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -10301,7 +11133,7 @@ class Type87 eProsima_user_DllExport Type87( Type87&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -10312,7 +11144,7 @@ class Type87 const Type87& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -10325,7 +11157,7 @@ class Type87 Type87&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -10336,7 +11168,7 @@ class Type87 eProsima_user_DllExport bool operator ==( const Type87& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -10350,38 +11182,48 @@ class Type87 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -10413,7 +11255,7 @@ class Type88 eProsima_user_DllExport Type88( const Type88& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -10424,7 +11266,7 @@ class Type88 eProsima_user_DllExport Type88( Type88&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -10435,7 +11277,7 @@ class Type88 const Type88& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -10448,7 +11290,7 @@ class Type88 Type88&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -10459,7 +11301,7 @@ class Type88 eProsima_user_DllExport bool operator ==( const Type88& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -10473,38 +11315,48 @@ class Type88 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -10536,7 +11388,7 @@ class Type89 eProsima_user_DllExport Type89( const Type89& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -10547,7 +11399,7 @@ class Type89 eProsima_user_DllExport Type89( Type89&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -10558,7 +11410,7 @@ class Type89 const Type89& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -10571,7 +11423,7 @@ class Type89 Type89&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -10582,7 +11434,7 @@ class Type89 eProsima_user_DllExport bool operator ==( const Type89& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -10596,38 +11448,48 @@ class Type89 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -10659,7 +11521,7 @@ class Type90 eProsima_user_DllExport Type90( const Type90& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -10670,7 +11532,7 @@ class Type90 eProsima_user_DllExport Type90( Type90&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -10681,7 +11543,7 @@ class Type90 const Type90& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -10694,7 +11556,7 @@ class Type90 Type90&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -10705,7 +11567,7 @@ class Type90 eProsima_user_DllExport bool operator ==( const Type90& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -10719,38 +11581,48 @@ class Type90 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -10782,7 +11654,7 @@ class Type91 eProsima_user_DllExport Type91( const Type91& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -10793,7 +11665,7 @@ class Type91 eProsima_user_DllExport Type91( Type91&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -10804,7 +11676,7 @@ class Type91 const Type91& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -10817,7 +11689,7 @@ class Type91 Type91&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -10828,7 +11700,7 @@ class Type91 eProsima_user_DllExport bool operator ==( const Type91& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -10842,38 +11714,48 @@ class Type91 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -10905,7 +11787,7 @@ class Type92 eProsima_user_DllExport Type92( const Type92& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -10916,7 +11798,7 @@ class Type92 eProsima_user_DllExport Type92( Type92&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -10927,7 +11809,7 @@ class Type92 const Type92& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -10940,7 +11822,7 @@ class Type92 Type92&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -10951,7 +11833,7 @@ class Type92 eProsima_user_DllExport bool operator ==( const Type92& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -10965,38 +11847,48 @@ class Type92 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -11028,7 +11920,7 @@ class Type93 eProsima_user_DllExport Type93( const Type93& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -11039,7 +11931,7 @@ class Type93 eProsima_user_DllExport Type93( Type93&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -11050,7 +11942,7 @@ class Type93 const Type93& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -11063,7 +11955,7 @@ class Type93 Type93&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -11074,7 +11966,7 @@ class Type93 eProsima_user_DllExport bool operator ==( const Type93& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -11088,38 +11980,48 @@ class Type93 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -11151,7 +12053,7 @@ class Type94 eProsima_user_DllExport Type94( const Type94& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -11162,7 +12064,7 @@ class Type94 eProsima_user_DllExport Type94( Type94&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -11173,7 +12075,7 @@ class Type94 const Type94& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -11186,7 +12088,7 @@ class Type94 Type94&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -11197,7 +12099,7 @@ class Type94 eProsima_user_DllExport bool operator ==( const Type94& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -11211,38 +12113,48 @@ class Type94 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -11274,7 +12186,7 @@ class Type95 eProsima_user_DllExport Type95( const Type95& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -11285,7 +12197,7 @@ class Type95 eProsima_user_DllExport Type95( Type95&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -11296,7 +12208,7 @@ class Type95 const Type95& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -11309,7 +12221,7 @@ class Type95 Type95&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -11320,7 +12232,7 @@ class Type95 eProsima_user_DllExport bool operator ==( const Type95& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -11334,38 +12246,48 @@ class Type95 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -11397,7 +12319,7 @@ class Type96 eProsima_user_DllExport Type96( const Type96& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -11408,7 +12330,7 @@ class Type96 eProsima_user_DllExport Type96( Type96&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -11419,7 +12341,7 @@ class Type96 const Type96& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -11432,7 +12354,7 @@ class Type96 Type96&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -11443,7 +12365,7 @@ class Type96 eProsima_user_DllExport bool operator ==( const Type96& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -11457,38 +12379,48 @@ class Type96 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -11520,7 +12452,7 @@ class Type97 eProsima_user_DllExport Type97( const Type97& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -11531,7 +12463,7 @@ class Type97 eProsima_user_DllExport Type97( Type97&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -11542,7 +12474,7 @@ class Type97 const Type97& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -11555,7 +12487,7 @@ class Type97 Type97&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -11566,7 +12498,7 @@ class Type97 eProsima_user_DllExport bool operator ==( const Type97& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -11580,38 +12512,48 @@ class Type97 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -11643,7 +12585,7 @@ class Type98 eProsima_user_DllExport Type98( const Type98& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -11654,7 +12596,7 @@ class Type98 eProsima_user_DllExport Type98( Type98&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -11665,7 +12607,7 @@ class Type98 const Type98& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -11678,7 +12620,7 @@ class Type98 Type98&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -11689,7 +12631,7 @@ class Type98 eProsima_user_DllExport bool operator ==( const Type98& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -11703,38 +12645,48 @@ class Type98 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -11766,7 +12718,7 @@ class Type99 eProsima_user_DllExport Type99( const Type99& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -11777,7 +12729,7 @@ class Type99 eProsima_user_DllExport Type99( Type99&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -11788,7 +12740,7 @@ class Type99 const Type99& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -11801,7 +12753,7 @@ class Type99 Type99&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -11812,7 +12764,7 @@ class Type99 eProsima_user_DllExport bool operator ==( const Type99& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -11826,38 +12778,48 @@ class Type99 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -11889,7 +12851,7 @@ class Type100 eProsima_user_DllExport Type100( const Type100& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -11900,7 +12862,7 @@ class Type100 eProsima_user_DllExport Type100( Type100&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -11911,7 +12873,7 @@ class Type100 const Type100& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -11924,7 +12886,7 @@ class Type100 Type100&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -11935,7 +12897,7 @@ class Type100 eProsima_user_DllExport bool operator ==( const Type100& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -11949,38 +12911,48 @@ class Type100 } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; /*! @@ -12012,7 +12984,7 @@ class TypeBig eProsima_user_DllExport TypeBig( const TypeBig& x) { - m_index = x.m_index; + m_content = x.m_content; m_dep1 = x.m_dep1; @@ -12223,7 +13195,7 @@ class TypeBig eProsima_user_DllExport TypeBig( TypeBig&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); m_dep1 = std::move(x.m_dep1); m_dep2 = std::move(x.m_dep2); m_dep3 = std::move(x.m_dep3); @@ -12334,7 +13306,7 @@ class TypeBig const TypeBig& x) { - m_index = x.m_index; + m_content = x.m_content; m_dep1 = x.m_dep1; @@ -12547,7 +13519,7 @@ class TypeBig TypeBig&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); m_dep1 = std::move(x.m_dep1); m_dep2 = std::move(x.m_dep2); m_dep3 = std::move(x.m_dep3); @@ -12658,7 +13630,7 @@ class TypeBig eProsima_user_DllExport bool operator ==( const TypeBig& x) const { - return (m_index == x.m_index && + return (m_content == x.m_content && m_dep1 == x.m_dep1 && m_dep2 == x.m_dep2 && m_dep3 == x.m_dep3 && @@ -12772,31 +13744,41 @@ class TypeBig } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content + */ + eProsima_user_DllExport void content( + const std::string& _content) + { + m_content = _content; + } + + /*! + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + std::string&& _content) { - m_index = _index; + m_content = std::move(_content); } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a reference to member content + * @return Reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport std::string& content() { - return m_index; + return m_content; } @@ -16703,7 +17685,7 @@ class TypeBig private: - uint16_t m_index{0}; + std::string m_content; Type1 m_dep1; Type2 m_dep2; Type3 m_dep3; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.idl b/test/dds/xtypes/idl/XtypesTestsTypeBig.idl index c0f9c0d69fd..01ab21fa156 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBig.idl +++ b/test/dds/xtypes/idl/XtypesTestsTypeBig.idl @@ -4,397 +4,397 @@ struct Type4 { - unsigned short index; + string content; }; struct Type5 { - unsigned short index; + string content; }; struct Type6 { - unsigned short index; + string content; }; struct Type7 { - unsigned short index; + string content; }; struct Type8 { - unsigned short index; + string content; }; struct Type9 { - unsigned short index; + string content; }; struct Type10 { - unsigned short index; + string content; }; struct Type11 { - unsigned short index; + string content; }; struct Type12 { - unsigned short index; + string content; }; struct Type13 { - unsigned short index; + string content; }; struct Type14 { - unsigned short index; + string content; }; struct Type15 { - unsigned short index; + string content; }; struct Type16 { - unsigned short index; + string content; }; struct Type17 { - unsigned short index; + string content; }; struct Type18 { - unsigned short index; + string content; }; struct Type19 { - unsigned short index; + string content; }; struct Type20 { - unsigned short index; + string content; }; struct Type21 { - unsigned short index; + string content; }; struct Type22 { - unsigned short index; + string content; }; struct Type23 { - unsigned short index; + string content; }; struct Type24 { - unsigned short index; + string content; }; struct Type25 { - unsigned short index; + string content; }; struct Type26 { - unsigned short index; + string content; }; struct Type27 { - unsigned short index; + string content; }; struct Type28 { - unsigned short index; + string content; }; struct Type29 { - unsigned short index; + string content; }; struct Type30 { - unsigned short index; + string content; }; struct Type31 { - unsigned short index; + string content; }; struct Type32 { - unsigned short index; + string content; }; struct Type33 { - unsigned short index; + string content; }; struct Type34 { - unsigned short index; + string content; }; struct Type35 { - unsigned short index; + string content; }; struct Type36 { - unsigned short index; + string content; }; struct Type37 { - unsigned short index; + string content; }; struct Type38 { - unsigned short index; + string content; }; struct Type39 { - unsigned short index; + string content; }; struct Type40 { - unsigned short index; + string content; }; struct Type41 { - unsigned short index; + string content; }; struct Type42 { - unsigned short index; + string content; }; struct Type43 { - unsigned short index; + string content; }; struct Type44 { - unsigned short index; + string content; }; struct Type45 { - unsigned short index; + string content; }; struct Type46 { - unsigned short index; + string content; }; struct Type47 { - unsigned short index; + string content; }; struct Type48 { - unsigned short index; + string content; }; struct Type49 { - unsigned short index; + string content; }; struct Type50 { - unsigned short index; + string content; }; struct Type51 { - unsigned short index; + string content; }; struct Type52 { - unsigned short index; + string content; }; struct Type53 { - unsigned short index; + string content; }; struct Type54 { - unsigned short index; + string content; }; struct Type55 { - unsigned short index; + string content; }; struct Type56 { - unsigned short index; + string content; }; struct Type57 { - unsigned short index; + string content; }; struct Type58 { - unsigned short index; + string content; }; struct Type59 { - unsigned short index; + string content; }; struct Type60 { - unsigned short index; + string content; }; struct Type61 { - unsigned short index; + string content; }; struct Type62 { - unsigned short index; + string content; }; struct Type63 { - unsigned short index; + string content; }; struct Type64 { - unsigned short index; + string content; }; struct Type65 { - unsigned short index; + string content; }; struct Type66 { - unsigned short index; + string content; }; struct Type67 { - unsigned short index; + string content; }; struct Type68 { - unsigned short index; + string content; }; struct Type69 { - unsigned short index; + string content; }; struct Type70 { - unsigned short index; + string content; }; struct Type71 { - unsigned short index; + string content; }; struct Type72 { - unsigned short index; + string content; }; struct Type73 { - unsigned short index; + string content; }; struct Type74 { - unsigned short index; + string content; }; struct Type75 { - unsigned short index; + string content; }; struct Type76 { - unsigned short index; + string content; }; struct Type77 { - unsigned short index; + string content; }; struct Type78 { - unsigned short index; + string content; }; struct Type79 { - unsigned short index; + string content; }; struct Type80 { - unsigned short index; + string content; }; struct Type81 { - unsigned short index; + string content; }; struct Type82 { - unsigned short index; + string content; }; struct Type83 { - unsigned short index; + string content; }; struct Type84 { - unsigned short index; + string content; }; struct Type85 { - unsigned short index; + string content; }; struct Type86 { - unsigned short index; + string content; }; struct Type87 { - unsigned short index; + string content; }; struct Type88 { - unsigned short index; + string content; }; struct Type89 { - unsigned short index; + string content; }; struct Type90 { - unsigned short index; + string content; }; struct Type91 { - unsigned short index; + string content; }; struct Type92 { - unsigned short index; + string content; }; struct Type93 { - unsigned short index; + string content; }; struct Type94 { - unsigned short index; + string content; }; struct Type95 { - unsigned short index; + string content; }; struct Type96 { - unsigned short index; + string content; }; struct Type97 { - unsigned short index; + string content; }; struct Type98 { - unsigned short index; + string content; }; struct Type99 { - unsigned short index; + string content; }; struct Type100 { - unsigned short index; + string content; }; struct TypeBig { - unsigned short index; + string content; Type1 dep1; Type2 dep2; Type3 dep3; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp index 958ba625253..53ff200c10a 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp @@ -24,301 +24,301 @@ #include "XtypesTestsTypeBig.hpp" -constexpr uint32_t Type30_max_cdr_typesize {6UL}; +constexpr uint32_t Type30_max_cdr_typesize {264UL}; constexpr uint32_t Type30_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type35_max_cdr_typesize {6UL}; +constexpr uint32_t Type35_max_cdr_typesize {264UL}; constexpr uint32_t Type35_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type36_max_cdr_typesize {6UL}; +constexpr uint32_t Type36_max_cdr_typesize {264UL}; constexpr uint32_t Type36_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type100_max_cdr_typesize {6UL}; +constexpr uint32_t Type100_max_cdr_typesize {264UL}; constexpr uint32_t Type100_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type37_max_cdr_typesize {6UL}; +constexpr uint32_t Type37_max_cdr_typesize {264UL}; constexpr uint32_t Type37_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type38_max_cdr_typesize {6UL}; +constexpr uint32_t Type38_max_cdr_typesize {264UL}; constexpr uint32_t Type38_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type31_max_cdr_typesize {6UL}; +constexpr uint32_t Type31_max_cdr_typesize {264UL}; constexpr uint32_t Type31_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type32_max_cdr_typesize {6UL}; +constexpr uint32_t Type32_max_cdr_typesize {264UL}; constexpr uint32_t Type32_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type33_max_cdr_typesize {6UL}; +constexpr uint32_t Type33_max_cdr_typesize {264UL}; constexpr uint32_t Type33_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type34_max_cdr_typesize {6UL}; +constexpr uint32_t Type34_max_cdr_typesize {264UL}; constexpr uint32_t Type34_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type28_max_cdr_typesize {6UL}; +constexpr uint32_t Type28_max_cdr_typesize {264UL}; constexpr uint32_t Type28_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type29_max_cdr_typesize {6UL}; +constexpr uint32_t Type29_max_cdr_typesize {264UL}; constexpr uint32_t Type29_max_key_cdr_typesize {0UL}; -constexpr uint32_t TypeBig_max_cdr_typesize {806UL}; +constexpr uint32_t TypeBig_max_cdr_typesize {26664UL}; constexpr uint32_t TypeBig_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type24_max_cdr_typesize {6UL}; +constexpr uint32_t Type24_max_cdr_typesize {264UL}; constexpr uint32_t Type24_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type25_max_cdr_typesize {6UL}; +constexpr uint32_t Type25_max_cdr_typesize {264UL}; constexpr uint32_t Type25_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type26_max_cdr_typesize {6UL}; +constexpr uint32_t Type26_max_cdr_typesize {264UL}; constexpr uint32_t Type26_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type27_max_cdr_typesize {6UL}; +constexpr uint32_t Type27_max_cdr_typesize {264UL}; constexpr uint32_t Type27_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type20_max_cdr_typesize {6UL}; +constexpr uint32_t Type20_max_cdr_typesize {264UL}; constexpr uint32_t Type20_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type21_max_cdr_typesize {6UL}; +constexpr uint32_t Type21_max_cdr_typesize {264UL}; constexpr uint32_t Type21_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type22_max_cdr_typesize {6UL}; +constexpr uint32_t Type22_max_cdr_typesize {264UL}; constexpr uint32_t Type22_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type23_max_cdr_typesize {6UL}; +constexpr uint32_t Type23_max_cdr_typesize {264UL}; constexpr uint32_t Type23_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type17_max_cdr_typesize {6UL}; +constexpr uint32_t Type17_max_cdr_typesize {264UL}; constexpr uint32_t Type17_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type18_max_cdr_typesize {6UL}; +constexpr uint32_t Type18_max_cdr_typesize {264UL}; constexpr uint32_t Type18_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type19_max_cdr_typesize {6UL}; +constexpr uint32_t Type19_max_cdr_typesize {264UL}; constexpr uint32_t Type19_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type50_max_cdr_typesize {6UL}; +constexpr uint32_t Type50_max_cdr_typesize {264UL}; constexpr uint32_t Type50_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type51_max_cdr_typesize {6UL}; +constexpr uint32_t Type51_max_cdr_typesize {264UL}; constexpr uint32_t Type51_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type52_max_cdr_typesize {6UL}; +constexpr uint32_t Type52_max_cdr_typesize {264UL}; constexpr uint32_t Type52_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type57_max_cdr_typesize {6UL}; +constexpr uint32_t Type57_max_cdr_typesize {264UL}; constexpr uint32_t Type57_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type58_max_cdr_typesize {6UL}; +constexpr uint32_t Type58_max_cdr_typesize {264UL}; constexpr uint32_t Type58_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type59_max_cdr_typesize {6UL}; +constexpr uint32_t Type59_max_cdr_typesize {264UL}; constexpr uint32_t Type59_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type53_max_cdr_typesize {6UL}; +constexpr uint32_t Type53_max_cdr_typesize {264UL}; constexpr uint32_t Type53_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type54_max_cdr_typesize {6UL}; +constexpr uint32_t Type54_max_cdr_typesize {264UL}; constexpr uint32_t Type54_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type55_max_cdr_typesize {6UL}; +constexpr uint32_t Type55_max_cdr_typesize {264UL}; constexpr uint32_t Type55_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type56_max_cdr_typesize {6UL}; +constexpr uint32_t Type56_max_cdr_typesize {264UL}; constexpr uint32_t Type56_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type40_max_cdr_typesize {6UL}; +constexpr uint32_t Type40_max_cdr_typesize {264UL}; constexpr uint32_t Type40_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type41_max_cdr_typesize {6UL}; +constexpr uint32_t Type41_max_cdr_typesize {264UL}; constexpr uint32_t Type41_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type46_max_cdr_typesize {6UL}; +constexpr uint32_t Type46_max_cdr_typesize {264UL}; constexpr uint32_t Type46_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type47_max_cdr_typesize {6UL}; +constexpr uint32_t Type47_max_cdr_typesize {264UL}; constexpr uint32_t Type47_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type48_max_cdr_typesize {6UL}; +constexpr uint32_t Type48_max_cdr_typesize {264UL}; constexpr uint32_t Type48_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type49_max_cdr_typesize {6UL}; +constexpr uint32_t Type49_max_cdr_typesize {264UL}; constexpr uint32_t Type49_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type42_max_cdr_typesize {6UL}; +constexpr uint32_t Type42_max_cdr_typesize {264UL}; constexpr uint32_t Type42_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type43_max_cdr_typesize {6UL}; +constexpr uint32_t Type43_max_cdr_typesize {264UL}; constexpr uint32_t Type43_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type44_max_cdr_typesize {6UL}; +constexpr uint32_t Type44_max_cdr_typesize {264UL}; constexpr uint32_t Type44_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type45_max_cdr_typesize {6UL}; +constexpr uint32_t Type45_max_cdr_typesize {264UL}; constexpr uint32_t Type45_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type39_max_cdr_typesize {6UL}; +constexpr uint32_t Type39_max_cdr_typesize {264UL}; constexpr uint32_t Type39_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type71_max_cdr_typesize {6UL}; +constexpr uint32_t Type71_max_cdr_typesize {264UL}; constexpr uint32_t Type71_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type72_max_cdr_typesize {6UL}; +constexpr uint32_t Type72_max_cdr_typesize {264UL}; constexpr uint32_t Type72_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type73_max_cdr_typesize {6UL}; +constexpr uint32_t Type73_max_cdr_typesize {264UL}; constexpr uint32_t Type73_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type74_max_cdr_typesize {6UL}; +constexpr uint32_t Type74_max_cdr_typesize {264UL}; constexpr uint32_t Type74_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type70_max_cdr_typesize {6UL}; +constexpr uint32_t Type70_max_cdr_typesize {264UL}; constexpr uint32_t Type70_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type79_max_cdr_typesize {6UL}; +constexpr uint32_t Type79_max_cdr_typesize {264UL}; constexpr uint32_t Type79_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type75_max_cdr_typesize {6UL}; +constexpr uint32_t Type75_max_cdr_typesize {264UL}; constexpr uint32_t Type75_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type76_max_cdr_typesize {6UL}; +constexpr uint32_t Type76_max_cdr_typesize {264UL}; constexpr uint32_t Type76_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type77_max_cdr_typesize {6UL}; +constexpr uint32_t Type77_max_cdr_typesize {264UL}; constexpr uint32_t Type77_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type78_max_cdr_typesize {6UL}; +constexpr uint32_t Type78_max_cdr_typesize {264UL}; constexpr uint32_t Type78_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type60_max_cdr_typesize {6UL}; +constexpr uint32_t Type60_max_cdr_typesize {264UL}; constexpr uint32_t Type60_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type61_max_cdr_typesize {6UL}; +constexpr uint32_t Type61_max_cdr_typesize {264UL}; constexpr uint32_t Type61_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type62_max_cdr_typesize {6UL}; +constexpr uint32_t Type62_max_cdr_typesize {264UL}; constexpr uint32_t Type62_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type63_max_cdr_typesize {6UL}; +constexpr uint32_t Type63_max_cdr_typesize {264UL}; constexpr uint32_t Type63_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type68_max_cdr_typesize {6UL}; +constexpr uint32_t Type68_max_cdr_typesize {264UL}; constexpr uint32_t Type68_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type69_max_cdr_typesize {6UL}; +constexpr uint32_t Type69_max_cdr_typesize {264UL}; constexpr uint32_t Type69_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type64_max_cdr_typesize {6UL}; +constexpr uint32_t Type64_max_cdr_typesize {264UL}; constexpr uint32_t Type64_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type65_max_cdr_typesize {6UL}; +constexpr uint32_t Type65_max_cdr_typesize {264UL}; constexpr uint32_t Type65_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type66_max_cdr_typesize {6UL}; +constexpr uint32_t Type66_max_cdr_typesize {264UL}; constexpr uint32_t Type66_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type67_max_cdr_typesize {6UL}; +constexpr uint32_t Type67_max_cdr_typesize {264UL}; constexpr uint32_t Type67_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type93_max_cdr_typesize {6UL}; +constexpr uint32_t Type93_max_cdr_typesize {264UL}; constexpr uint32_t Type93_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type94_max_cdr_typesize {6UL}; +constexpr uint32_t Type94_max_cdr_typesize {264UL}; constexpr uint32_t Type94_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type4_max_cdr_typesize {6UL}; +constexpr uint32_t Type4_max_cdr_typesize {264UL}; constexpr uint32_t Type4_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type95_max_cdr_typesize {6UL}; +constexpr uint32_t Type95_max_cdr_typesize {264UL}; constexpr uint32_t Type95_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type5_max_cdr_typesize {6UL}; +constexpr uint32_t Type5_max_cdr_typesize {264UL}; constexpr uint32_t Type5_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type96_max_cdr_typesize {6UL}; +constexpr uint32_t Type96_max_cdr_typesize {264UL}; constexpr uint32_t Type96_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type6_max_cdr_typesize {6UL}; +constexpr uint32_t Type6_max_cdr_typesize {264UL}; constexpr uint32_t Type6_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type7_max_cdr_typesize {6UL}; +constexpr uint32_t Type7_max_cdr_typesize {264UL}; constexpr uint32_t Type7_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type90_max_cdr_typesize {6UL}; +constexpr uint32_t Type90_max_cdr_typesize {264UL}; constexpr uint32_t Type90_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type8_max_cdr_typesize {6UL}; +constexpr uint32_t Type8_max_cdr_typesize {264UL}; constexpr uint32_t Type8_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type91_max_cdr_typesize {6UL}; +constexpr uint32_t Type91_max_cdr_typesize {264UL}; constexpr uint32_t Type91_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type9_max_cdr_typesize {6UL}; +constexpr uint32_t Type9_max_cdr_typesize {264UL}; constexpr uint32_t Type9_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type92_max_cdr_typesize {6UL}; +constexpr uint32_t Type92_max_cdr_typesize {264UL}; constexpr uint32_t Type92_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type13_max_cdr_typesize {6UL}; +constexpr uint32_t Type13_max_cdr_typesize {264UL}; constexpr uint32_t Type13_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type14_max_cdr_typesize {6UL}; +constexpr uint32_t Type14_max_cdr_typesize {264UL}; constexpr uint32_t Type14_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type15_max_cdr_typesize {6UL}; +constexpr uint32_t Type15_max_cdr_typesize {264UL}; constexpr uint32_t Type15_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type16_max_cdr_typesize {6UL}; +constexpr uint32_t Type16_max_cdr_typesize {264UL}; constexpr uint32_t Type16_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type97_max_cdr_typesize {6UL}; +constexpr uint32_t Type97_max_cdr_typesize {264UL}; constexpr uint32_t Type97_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type10_max_cdr_typesize {6UL}; +constexpr uint32_t Type10_max_cdr_typesize {264UL}; constexpr uint32_t Type10_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type98_max_cdr_typesize {6UL}; +constexpr uint32_t Type98_max_cdr_typesize {264UL}; constexpr uint32_t Type98_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type11_max_cdr_typesize {6UL}; +constexpr uint32_t Type11_max_cdr_typesize {264UL}; constexpr uint32_t Type11_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type99_max_cdr_typesize {6UL}; +constexpr uint32_t Type99_max_cdr_typesize {264UL}; constexpr uint32_t Type99_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type12_max_cdr_typesize {6UL}; +constexpr uint32_t Type12_max_cdr_typesize {264UL}; constexpr uint32_t Type12_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type82_max_cdr_typesize {6UL}; +constexpr uint32_t Type82_max_cdr_typesize {264UL}; constexpr uint32_t Type82_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type83_max_cdr_typesize {6UL}; +constexpr uint32_t Type83_max_cdr_typesize {264UL}; constexpr uint32_t Type83_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type84_max_cdr_typesize {6UL}; +constexpr uint32_t Type84_max_cdr_typesize {264UL}; constexpr uint32_t Type84_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type85_max_cdr_typesize {6UL}; +constexpr uint32_t Type85_max_cdr_typesize {264UL}; constexpr uint32_t Type85_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type80_max_cdr_typesize {6UL}; +constexpr uint32_t Type80_max_cdr_typesize {264UL}; constexpr uint32_t Type80_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type81_max_cdr_typesize {6UL}; +constexpr uint32_t Type81_max_cdr_typesize {264UL}; constexpr uint32_t Type81_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type86_max_cdr_typesize {6UL}; +constexpr uint32_t Type86_max_cdr_typesize {264UL}; constexpr uint32_t Type86_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type87_max_cdr_typesize {6UL}; +constexpr uint32_t Type87_max_cdr_typesize {264UL}; constexpr uint32_t Type87_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type88_max_cdr_typesize {6UL}; +constexpr uint32_t Type88_max_cdr_typesize {264UL}; constexpr uint32_t Type88_max_key_cdr_typesize {0UL}; -constexpr uint32_t Type89_max_cdr_typesize {6UL}; +constexpr uint32_t Type89_max_cdr_typesize {264UL}; constexpr uint32_t Type89_max_key_cdr_typesize {0UL}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp index d3799365660..7e9925fdc18 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp @@ -51,7 +51,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -71,7 +71,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -90,7 +90,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -108,7 +108,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -130,7 +130,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -150,7 +150,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -169,7 +169,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -187,7 +187,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -209,7 +209,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -229,7 +229,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -248,7 +248,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -266,7 +266,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -288,7 +288,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -308,7 +308,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -327,7 +327,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -345,7 +345,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -367,7 +367,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -387,7 +387,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -406,7 +406,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -424,7 +424,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -446,7 +446,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -466,7 +466,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -485,7 +485,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -503,7 +503,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -525,7 +525,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -545,7 +545,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -564,7 +564,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -582,7 +582,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -604,7 +604,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -624,7 +624,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -643,7 +643,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -661,7 +661,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -683,7 +683,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -703,7 +703,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -722,7 +722,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -740,7 +740,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -762,7 +762,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -782,7 +782,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -801,7 +801,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -819,7 +819,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -841,7 +841,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -861,7 +861,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -880,7 +880,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -898,7 +898,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -920,7 +920,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -940,7 +940,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -959,7 +959,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -977,7 +977,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -999,7 +999,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1019,7 +1019,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1038,7 +1038,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1056,7 +1056,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1078,7 +1078,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1098,7 +1098,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1117,7 +1117,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1135,7 +1135,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1157,7 +1157,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1177,7 +1177,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1196,7 +1196,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1214,7 +1214,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1236,7 +1236,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1256,7 +1256,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1275,7 +1275,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1293,7 +1293,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1315,7 +1315,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1335,7 +1335,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1354,7 +1354,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1372,7 +1372,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1394,7 +1394,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1414,7 +1414,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1433,7 +1433,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1451,7 +1451,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1473,7 +1473,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1493,7 +1493,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1512,7 +1512,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1530,7 +1530,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1552,7 +1552,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1572,7 +1572,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1591,7 +1591,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1609,7 +1609,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1631,7 +1631,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1651,7 +1651,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1670,7 +1670,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1688,7 +1688,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1710,7 +1710,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1730,7 +1730,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1749,7 +1749,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1767,7 +1767,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1789,7 +1789,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1809,7 +1809,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1828,7 +1828,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1846,7 +1846,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1868,7 +1868,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1888,7 +1888,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1907,7 +1907,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -1925,7 +1925,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -1947,7 +1947,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1967,7 +1967,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -1986,7 +1986,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2004,7 +2004,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2026,7 +2026,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2046,7 +2046,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2065,7 +2065,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2083,7 +2083,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2105,7 +2105,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2125,7 +2125,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2144,7 +2144,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2162,7 +2162,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2184,7 +2184,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2204,7 +2204,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2223,7 +2223,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2241,7 +2241,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2263,7 +2263,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2283,7 +2283,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2302,7 +2302,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2320,7 +2320,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2342,7 +2342,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2362,7 +2362,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2381,7 +2381,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2399,7 +2399,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2421,7 +2421,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2441,7 +2441,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2460,7 +2460,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2478,7 +2478,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2500,7 +2500,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2520,7 +2520,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2539,7 +2539,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2557,7 +2557,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2579,7 +2579,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2599,7 +2599,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2618,7 +2618,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2636,7 +2636,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2658,7 +2658,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2678,7 +2678,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2697,7 +2697,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2715,7 +2715,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2737,7 +2737,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2757,7 +2757,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2776,7 +2776,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2794,7 +2794,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2816,7 +2816,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2836,7 +2836,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2855,7 +2855,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2873,7 +2873,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2895,7 +2895,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2915,7 +2915,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -2934,7 +2934,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -2952,7 +2952,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -2974,7 +2974,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -2994,7 +2994,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3013,7 +3013,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3031,7 +3031,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3053,7 +3053,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3073,7 +3073,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3092,7 +3092,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3110,7 +3110,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3132,7 +3132,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3152,7 +3152,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3171,7 +3171,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3189,7 +3189,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3211,7 +3211,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3231,7 +3231,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3250,7 +3250,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3268,7 +3268,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3290,7 +3290,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3310,7 +3310,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3329,7 +3329,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3347,7 +3347,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3369,7 +3369,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3389,7 +3389,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3408,7 +3408,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3426,7 +3426,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3448,7 +3448,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3468,7 +3468,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3487,7 +3487,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3505,7 +3505,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3527,7 +3527,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3547,7 +3547,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3566,7 +3566,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3584,7 +3584,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3606,7 +3606,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3626,7 +3626,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3645,7 +3645,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3663,7 +3663,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3685,7 +3685,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3705,7 +3705,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3724,7 +3724,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3742,7 +3742,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3764,7 +3764,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3784,7 +3784,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3803,7 +3803,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3821,7 +3821,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3843,7 +3843,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3863,7 +3863,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3882,7 +3882,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3900,7 +3900,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -3922,7 +3922,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -3942,7 +3942,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -3961,7 +3961,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -3979,7 +3979,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4001,7 +4001,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4021,7 +4021,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4040,7 +4040,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4058,7 +4058,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4080,7 +4080,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4100,7 +4100,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4119,7 +4119,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4137,7 +4137,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4159,7 +4159,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4179,7 +4179,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4198,7 +4198,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4216,7 +4216,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4238,7 +4238,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4258,7 +4258,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4277,7 +4277,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4295,7 +4295,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4317,7 +4317,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4337,7 +4337,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4356,7 +4356,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4374,7 +4374,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4396,7 +4396,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4416,7 +4416,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4435,7 +4435,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4453,7 +4453,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4475,7 +4475,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4495,7 +4495,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4514,7 +4514,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4532,7 +4532,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4554,7 +4554,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4574,7 +4574,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4593,7 +4593,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4611,7 +4611,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4633,7 +4633,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4653,7 +4653,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4672,7 +4672,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4690,7 +4690,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4712,7 +4712,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4732,7 +4732,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4751,7 +4751,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4769,7 +4769,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4791,7 +4791,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4811,7 +4811,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4830,7 +4830,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4848,7 +4848,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4870,7 +4870,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4890,7 +4890,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4909,7 +4909,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -4927,7 +4927,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -4949,7 +4949,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -4969,7 +4969,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -4988,7 +4988,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5006,7 +5006,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5028,7 +5028,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5048,7 +5048,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5067,7 +5067,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5085,7 +5085,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5107,7 +5107,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5127,7 +5127,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5146,7 +5146,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5164,7 +5164,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5186,7 +5186,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5206,7 +5206,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5225,7 +5225,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5243,7 +5243,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5265,7 +5265,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5285,7 +5285,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5304,7 +5304,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5322,7 +5322,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5344,7 +5344,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5364,7 +5364,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5383,7 +5383,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5401,7 +5401,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5423,7 +5423,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5443,7 +5443,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5462,7 +5462,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5480,7 +5480,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5502,7 +5502,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5522,7 +5522,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5541,7 +5541,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5559,7 +5559,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5581,7 +5581,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5601,7 +5601,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5620,7 +5620,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5638,7 +5638,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5660,7 +5660,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5680,7 +5680,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5699,7 +5699,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5717,7 +5717,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5739,7 +5739,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5759,7 +5759,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5778,7 +5778,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5796,7 +5796,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5818,7 +5818,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5838,7 +5838,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5857,7 +5857,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5875,7 +5875,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5897,7 +5897,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5917,7 +5917,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -5936,7 +5936,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -5954,7 +5954,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -5976,7 +5976,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -5996,7 +5996,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6015,7 +6015,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6033,7 +6033,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6055,7 +6055,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6075,7 +6075,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6094,7 +6094,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6112,7 +6112,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6134,7 +6134,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6154,7 +6154,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6173,7 +6173,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6191,7 +6191,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6213,7 +6213,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6233,7 +6233,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6252,7 +6252,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6270,7 +6270,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6292,7 +6292,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6312,7 +6312,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6331,7 +6331,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6349,7 +6349,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6371,7 +6371,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6391,7 +6391,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6410,7 +6410,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6428,7 +6428,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6450,7 +6450,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6470,7 +6470,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6489,7 +6489,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6507,7 +6507,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6529,7 +6529,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6549,7 +6549,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6568,7 +6568,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6586,7 +6586,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6608,7 +6608,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6628,7 +6628,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6647,7 +6647,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6665,7 +6665,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6687,7 +6687,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6707,7 +6707,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6726,7 +6726,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6744,7 +6744,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6766,7 +6766,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6786,7 +6786,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6805,7 +6805,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6823,7 +6823,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6845,7 +6845,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6865,7 +6865,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6884,7 +6884,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6902,7 +6902,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -6924,7 +6924,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -6944,7 +6944,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -6963,7 +6963,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -6981,7 +6981,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7003,7 +7003,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7023,7 +7023,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7042,7 +7042,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7060,7 +7060,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7082,7 +7082,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7102,7 +7102,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7121,7 +7121,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7139,7 +7139,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7161,7 +7161,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7181,7 +7181,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7200,7 +7200,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7218,7 +7218,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7240,7 +7240,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7260,7 +7260,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7279,7 +7279,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7297,7 +7297,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7319,7 +7319,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7339,7 +7339,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7358,7 +7358,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7376,7 +7376,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7398,7 +7398,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7418,7 +7418,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7437,7 +7437,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7455,7 +7455,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7477,7 +7477,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7497,7 +7497,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7516,7 +7516,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7534,7 +7534,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7556,7 +7556,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7576,7 +7576,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7595,7 +7595,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7613,7 +7613,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7635,7 +7635,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -7655,7 +7655,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -7674,7 +7674,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -7692,7 +7692,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } @@ -7714,7 +7714,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), data.dep1(), current_alignment); @@ -8034,7 +8034,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() << eprosima::fastcdr::MemberId(1) << data.dep1() << eprosima::fastcdr::MemberId(2) << data.dep2() << eprosima::fastcdr::MemberId(3) << data.dep3() @@ -8153,7 +8153,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; case 1: @@ -8971,7 +8971,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); serialize_key(scdr, data.dep1()); diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp index 536852d28b0..5743d097e41 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp @@ -89,7 +89,7 @@ class Type4PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -170,7 +170,7 @@ class Type5PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -251,7 +251,7 @@ class Type6PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -332,7 +332,7 @@ class Type7PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -413,7 +413,7 @@ class Type8PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -494,7 +494,7 @@ class Type9PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -575,7 +575,7 @@ class Type10PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -656,7 +656,7 @@ class Type11PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -737,7 +737,7 @@ class Type12PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -818,7 +818,7 @@ class Type13PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -899,7 +899,7 @@ class Type14PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -980,7 +980,7 @@ class Type15PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1061,7 +1061,7 @@ class Type16PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1142,7 +1142,7 @@ class Type17PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1223,7 +1223,7 @@ class Type18PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1304,7 +1304,7 @@ class Type19PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1385,7 +1385,7 @@ class Type20PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1466,7 +1466,7 @@ class Type21PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1547,7 +1547,7 @@ class Type22PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1628,7 +1628,7 @@ class Type23PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1709,7 +1709,7 @@ class Type24PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1790,7 +1790,7 @@ class Type25PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1871,7 +1871,7 @@ class Type26PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -1952,7 +1952,7 @@ class Type27PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2033,7 +2033,7 @@ class Type28PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2114,7 +2114,7 @@ class Type29PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2195,7 +2195,7 @@ class Type30PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2276,7 +2276,7 @@ class Type31PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2357,7 +2357,7 @@ class Type32PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2438,7 +2438,7 @@ class Type33PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2519,7 +2519,7 @@ class Type34PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2600,7 +2600,7 @@ class Type35PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2681,7 +2681,7 @@ class Type36PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2762,7 +2762,7 @@ class Type37PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2843,7 +2843,7 @@ class Type38PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -2924,7 +2924,7 @@ class Type39PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3005,7 +3005,7 @@ class Type40PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3086,7 +3086,7 @@ class Type41PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3167,7 +3167,7 @@ class Type42PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3248,7 +3248,7 @@ class Type43PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3329,7 +3329,7 @@ class Type44PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3410,7 +3410,7 @@ class Type45PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3491,7 +3491,7 @@ class Type46PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3572,7 +3572,7 @@ class Type47PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3653,7 +3653,7 @@ class Type48PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3734,7 +3734,7 @@ class Type49PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3815,7 +3815,7 @@ class Type50PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3896,7 +3896,7 @@ class Type51PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -3977,7 +3977,7 @@ class Type52PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4058,7 +4058,7 @@ class Type53PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4139,7 +4139,7 @@ class Type54PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4220,7 +4220,7 @@ class Type55PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4301,7 +4301,7 @@ class Type56PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4382,7 +4382,7 @@ class Type57PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4463,7 +4463,7 @@ class Type58PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4544,7 +4544,7 @@ class Type59PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4625,7 +4625,7 @@ class Type60PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4706,7 +4706,7 @@ class Type61PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4787,7 +4787,7 @@ class Type62PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4868,7 +4868,7 @@ class Type63PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -4949,7 +4949,7 @@ class Type64PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5030,7 +5030,7 @@ class Type65PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5111,7 +5111,7 @@ class Type66PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5192,7 +5192,7 @@ class Type67PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5273,7 +5273,7 @@ class Type68PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5354,7 +5354,7 @@ class Type69PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5435,7 +5435,7 @@ class Type70PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5516,7 +5516,7 @@ class Type71PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5597,7 +5597,7 @@ class Type72PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5678,7 +5678,7 @@ class Type73PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5759,7 +5759,7 @@ class Type74PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5840,7 +5840,7 @@ class Type75PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -5921,7 +5921,7 @@ class Type76PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6002,7 +6002,7 @@ class Type77PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6083,7 +6083,7 @@ class Type78PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6164,7 +6164,7 @@ class Type79PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6245,7 +6245,7 @@ class Type80PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6326,7 +6326,7 @@ class Type81PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6407,7 +6407,7 @@ class Type82PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6488,7 +6488,7 @@ class Type83PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6569,7 +6569,7 @@ class Type84PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6650,7 +6650,7 @@ class Type85PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6731,7 +6731,7 @@ class Type86PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6812,7 +6812,7 @@ class Type87PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6893,7 +6893,7 @@ class Type88PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -6974,7 +6974,7 @@ class Type89PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7055,7 +7055,7 @@ class Type90PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7136,7 +7136,7 @@ class Type91PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7217,7 +7217,7 @@ class Type92PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7298,7 +7298,7 @@ class Type93PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7379,7 +7379,7 @@ class Type94PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7460,7 +7460,7 @@ class Type95PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7541,7 +7541,7 @@ class Type96PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7622,7 +7622,7 @@ class Type97PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7703,7 +7703,7 @@ class Type98PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7784,7 +7784,7 @@ class Type99PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7865,7 +7865,7 @@ class Type100PubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED @@ -7946,7 +7946,7 @@ class TypeBigPubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx index 5a7f516a68e..eab4dba3698 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx @@ -62,34 +62,42 @@ void register_Type4_type_identifier( header_Type4 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type4); CompleteStructMemberSeq member_seq_Type4; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type4.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type4); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type4, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type4); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type4, member_content); } CompleteStructType struct_type_Type4 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type4, header_Type4, member_seq_Type4); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -121,34 +129,42 @@ void register_Type5_type_identifier( header_Type5 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type5); CompleteStructMemberSeq member_seq_Type5; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type5.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type5); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type5, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type5); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type5, member_content); } CompleteStructType struct_type_Type5 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type5, header_Type5, member_seq_Type5); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -180,34 +196,42 @@ void register_Type6_type_identifier( header_Type6 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type6); CompleteStructMemberSeq member_seq_Type6; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type6.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type6); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type6, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type6); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type6, member_content); } CompleteStructType struct_type_Type6 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type6, header_Type6, member_seq_Type6); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -239,34 +263,42 @@ void register_Type7_type_identifier( header_Type7 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type7); CompleteStructMemberSeq member_seq_Type7; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type7.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type7); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type7, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type7); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type7, member_content); } CompleteStructType struct_type_Type7 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type7, header_Type7, member_seq_Type7); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -298,34 +330,42 @@ void register_Type8_type_identifier( header_Type8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type8); CompleteStructMemberSeq member_seq_Type8; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type8.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type8); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type8, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type8); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type8, member_content); } CompleteStructType struct_type_Type8 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type8, header_Type8, member_seq_Type8); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -357,34 +397,42 @@ void register_Type9_type_identifier( header_Type9 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type9); CompleteStructMemberSeq member_seq_Type9; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type9.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type9); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type9, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type9); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type9, member_content); } CompleteStructType struct_type_Type9 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type9, header_Type9, member_seq_Type9); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -416,34 +464,42 @@ void register_Type10_type_identifier( header_Type10 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type10); CompleteStructMemberSeq member_seq_Type10; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type10.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type10); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type10, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type10); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type10, member_content); } CompleteStructType struct_type_Type10 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type10, header_Type10, member_seq_Type10); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -475,34 +531,42 @@ void register_Type11_type_identifier( header_Type11 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type11); CompleteStructMemberSeq member_seq_Type11; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type11.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type11); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type11, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type11); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type11, member_content); } CompleteStructType struct_type_Type11 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type11, header_Type11, member_seq_Type11); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -534,34 +598,42 @@ void register_Type12_type_identifier( header_Type12 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type12); CompleteStructMemberSeq member_seq_Type12; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type12.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type12); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type12, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type12); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type12, member_content); } CompleteStructType struct_type_Type12 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type12, header_Type12, member_seq_Type12); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -593,34 +665,42 @@ void register_Type13_type_identifier( header_Type13 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type13); CompleteStructMemberSeq member_seq_Type13; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type13.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type13); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type13, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type13); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type13, member_content); } CompleteStructType struct_type_Type13 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type13, header_Type13, member_seq_Type13); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -652,34 +732,42 @@ void register_Type14_type_identifier( header_Type14 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type14); CompleteStructMemberSeq member_seq_Type14; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type14.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type14); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type14, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type14); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type14, member_content); } CompleteStructType struct_type_Type14 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type14, header_Type14, member_seq_Type14); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -711,34 +799,42 @@ void register_Type15_type_identifier( header_Type15 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type15); CompleteStructMemberSeq member_seq_Type15; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type15.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type15); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type15, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type15); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type15, member_content); } CompleteStructType struct_type_Type15 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type15, header_Type15, member_seq_Type15); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -770,34 +866,42 @@ void register_Type16_type_identifier( header_Type16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type16); CompleteStructMemberSeq member_seq_Type16; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type16.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type16); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type16, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type16); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type16, member_content); } CompleteStructType struct_type_Type16 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type16, header_Type16, member_seq_Type16); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -829,34 +933,42 @@ void register_Type17_type_identifier( header_Type17 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type17); CompleteStructMemberSeq member_seq_Type17; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type17.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type17); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type17, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type17); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type17, member_content); } CompleteStructType struct_type_Type17 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type17, header_Type17, member_seq_Type17); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -888,34 +1000,42 @@ void register_Type18_type_identifier( header_Type18 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type18); CompleteStructMemberSeq member_seq_Type18; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type18.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type18); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type18, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type18); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type18, member_content); } CompleteStructType struct_type_Type18 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type18, header_Type18, member_seq_Type18); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -947,34 +1067,42 @@ void register_Type19_type_identifier( header_Type19 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type19); CompleteStructMemberSeq member_seq_Type19; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type19.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type19); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type19, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type19); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type19, member_content); } CompleteStructType struct_type_Type19 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type19, header_Type19, member_seq_Type19); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1006,34 +1134,42 @@ void register_Type20_type_identifier( header_Type20 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type20); CompleteStructMemberSeq member_seq_Type20; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type20.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type20); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type20, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type20); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type20, member_content); } CompleteStructType struct_type_Type20 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type20, header_Type20, member_seq_Type20); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1065,34 +1201,42 @@ void register_Type21_type_identifier( header_Type21 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type21); CompleteStructMemberSeq member_seq_Type21; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type21.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type21); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type21, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type21); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type21, member_content); } CompleteStructType struct_type_Type21 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type21, header_Type21, member_seq_Type21); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1124,34 +1268,42 @@ void register_Type22_type_identifier( header_Type22 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type22); CompleteStructMemberSeq member_seq_Type22; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type22.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type22); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type22, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type22); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type22, member_content); } CompleteStructType struct_type_Type22 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type22, header_Type22, member_seq_Type22); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1183,34 +1335,42 @@ void register_Type23_type_identifier( header_Type23 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type23); CompleteStructMemberSeq member_seq_Type23; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type23.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type23); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type23, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type23); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type23, member_content); } CompleteStructType struct_type_Type23 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type23, header_Type23, member_seq_Type23); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1242,34 +1402,42 @@ void register_Type24_type_identifier( header_Type24 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type24); CompleteStructMemberSeq member_seq_Type24; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type24.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type24); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type24, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type24); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type24, member_content); } CompleteStructType struct_type_Type24 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type24, header_Type24, member_seq_Type24); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1301,34 +1469,42 @@ void register_Type25_type_identifier( header_Type25 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type25); CompleteStructMemberSeq member_seq_Type25; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type25.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type25); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type25, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type25); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type25, member_content); } CompleteStructType struct_type_Type25 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type25, header_Type25, member_seq_Type25); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1360,34 +1536,42 @@ void register_Type26_type_identifier( header_Type26 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type26); CompleteStructMemberSeq member_seq_Type26; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type26.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type26); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type26, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type26); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type26, member_content); } CompleteStructType struct_type_Type26 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type26, header_Type26, member_seq_Type26); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1419,34 +1603,42 @@ void register_Type27_type_identifier( header_Type27 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type27); CompleteStructMemberSeq member_seq_Type27; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type27.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type27); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type27, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type27); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type27, member_content); } CompleteStructType struct_type_Type27 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type27, header_Type27, member_seq_Type27); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1478,34 +1670,42 @@ void register_Type28_type_identifier( header_Type28 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type28); CompleteStructMemberSeq member_seq_Type28; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type28.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type28); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type28, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type28); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type28, member_content); } CompleteStructType struct_type_Type28 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type28, header_Type28, member_seq_Type28); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1537,34 +1737,42 @@ void register_Type29_type_identifier( header_Type29 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type29); CompleteStructMemberSeq member_seq_Type29; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type29.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type29); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type29, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type29); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type29, member_content); } CompleteStructType struct_type_Type29 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type29, header_Type29, member_seq_Type29); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1596,34 +1804,42 @@ void register_Type30_type_identifier( header_Type30 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type30); CompleteStructMemberSeq member_seq_Type30; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type30.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type30); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type30, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type30); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type30, member_content); } CompleteStructType struct_type_Type30 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type30, header_Type30, member_seq_Type30); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1655,34 +1871,42 @@ void register_Type31_type_identifier( header_Type31 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type31); CompleteStructMemberSeq member_seq_Type31; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type31.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type31); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type31, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type31); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type31, member_content); } CompleteStructType struct_type_Type31 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type31, header_Type31, member_seq_Type31); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1714,34 +1938,42 @@ void register_Type32_type_identifier( header_Type32 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type32); CompleteStructMemberSeq member_seq_Type32; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type32.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type32); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type32, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type32); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type32, member_content); } CompleteStructType struct_type_Type32 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type32, header_Type32, member_seq_Type32); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1773,34 +2005,42 @@ void register_Type33_type_identifier( header_Type33 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type33); CompleteStructMemberSeq member_seq_Type33; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type33.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type33); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type33, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type33); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type33, member_content); } CompleteStructType struct_type_Type33 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type33, header_Type33, member_seq_Type33); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1832,34 +2072,42 @@ void register_Type34_type_identifier( header_Type34 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type34); CompleteStructMemberSeq member_seq_Type34; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type34.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type34); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type34, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type34); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type34, member_content); } CompleteStructType struct_type_Type34 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type34, header_Type34, member_seq_Type34); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1891,34 +2139,42 @@ void register_Type35_type_identifier( header_Type35 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type35); CompleteStructMemberSeq member_seq_Type35; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type35.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type35); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type35, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type35); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type35, member_content); } CompleteStructType struct_type_Type35 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type35, header_Type35, member_seq_Type35); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -1950,34 +2206,42 @@ void register_Type36_type_identifier( header_Type36 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type36); CompleteStructMemberSeq member_seq_Type36; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type36.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type36); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type36, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type36); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type36, member_content); } CompleteStructType struct_type_Type36 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type36, header_Type36, member_seq_Type36); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2009,34 +2273,42 @@ void register_Type37_type_identifier( header_Type37 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type37); CompleteStructMemberSeq member_seq_Type37; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type37.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type37); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type37, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type37); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type37, member_content); } CompleteStructType struct_type_Type37 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type37, header_Type37, member_seq_Type37); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2068,34 +2340,42 @@ void register_Type38_type_identifier( header_Type38 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type38); CompleteStructMemberSeq member_seq_Type38; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type38.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type38); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type38, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type38); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type38, member_content); } CompleteStructType struct_type_Type38 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type38, header_Type38, member_seq_Type38); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2127,34 +2407,42 @@ void register_Type39_type_identifier( header_Type39 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type39); CompleteStructMemberSeq member_seq_Type39; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type39.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type39); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type39, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type39); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type39, member_content); } CompleteStructType struct_type_Type39 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type39, header_Type39, member_seq_Type39); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2186,34 +2474,42 @@ void register_Type40_type_identifier( header_Type40 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type40); CompleteStructMemberSeq member_seq_Type40; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type40.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type40); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type40, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type40); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type40, member_content); } CompleteStructType struct_type_Type40 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type40, header_Type40, member_seq_Type40); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2245,34 +2541,42 @@ void register_Type41_type_identifier( header_Type41 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type41); CompleteStructMemberSeq member_seq_Type41; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type41.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type41); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type41, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type41); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type41, member_content); } CompleteStructType struct_type_Type41 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type41, header_Type41, member_seq_Type41); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2304,34 +2608,42 @@ void register_Type42_type_identifier( header_Type42 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type42); CompleteStructMemberSeq member_seq_Type42; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type42.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type42); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type42, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type42); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type42, member_content); } CompleteStructType struct_type_Type42 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type42, header_Type42, member_seq_Type42); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2363,34 +2675,42 @@ void register_Type43_type_identifier( header_Type43 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type43); CompleteStructMemberSeq member_seq_Type43; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type43.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type43); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type43, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type43); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type43, member_content); } CompleteStructType struct_type_Type43 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type43, header_Type43, member_seq_Type43); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2422,34 +2742,42 @@ void register_Type44_type_identifier( header_Type44 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type44); CompleteStructMemberSeq member_seq_Type44; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type44.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type44); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type44, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type44); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type44, member_content); } CompleteStructType struct_type_Type44 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type44, header_Type44, member_seq_Type44); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2481,34 +2809,42 @@ void register_Type45_type_identifier( header_Type45 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type45); CompleteStructMemberSeq member_seq_Type45; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type45.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type45); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type45, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type45); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type45, member_content); } CompleteStructType struct_type_Type45 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type45, header_Type45, member_seq_Type45); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2540,34 +2876,42 @@ void register_Type46_type_identifier( header_Type46 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type46); CompleteStructMemberSeq member_seq_Type46; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type46.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type46); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type46, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type46); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type46, member_content); } CompleteStructType struct_type_Type46 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type46, header_Type46, member_seq_Type46); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2599,34 +2943,42 @@ void register_Type47_type_identifier( header_Type47 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type47); CompleteStructMemberSeq member_seq_Type47; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type47.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type47); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type47, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type47); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type47, member_content); } CompleteStructType struct_type_Type47 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type47, header_Type47, member_seq_Type47); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2658,34 +3010,42 @@ void register_Type48_type_identifier( header_Type48 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type48); CompleteStructMemberSeq member_seq_Type48; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type48.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type48); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type48, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type48); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type48, member_content); } CompleteStructType struct_type_Type48 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type48, header_Type48, member_seq_Type48); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2717,34 +3077,42 @@ void register_Type49_type_identifier( header_Type49 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type49); CompleteStructMemberSeq member_seq_Type49; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type49.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type49); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type49, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type49); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type49, member_content); } CompleteStructType struct_type_Type49 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type49, header_Type49, member_seq_Type49); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2776,34 +3144,42 @@ void register_Type50_type_identifier( header_Type50 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type50); CompleteStructMemberSeq member_seq_Type50; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type50.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type50); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type50, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type50); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type50, member_content); } CompleteStructType struct_type_Type50 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type50, header_Type50, member_seq_Type50); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2835,34 +3211,42 @@ void register_Type51_type_identifier( header_Type51 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type51); CompleteStructMemberSeq member_seq_Type51; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type51.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type51); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type51, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type51); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type51, member_content); } CompleteStructType struct_type_Type51 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type51, header_Type51, member_seq_Type51); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2894,34 +3278,42 @@ void register_Type52_type_identifier( header_Type52 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type52); CompleteStructMemberSeq member_seq_Type52; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type52.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type52); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type52, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type52); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type52, member_content); } CompleteStructType struct_type_Type52 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type52, header_Type52, member_seq_Type52); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -2953,34 +3345,42 @@ void register_Type53_type_identifier( header_Type53 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type53); CompleteStructMemberSeq member_seq_Type53; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type53.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type53); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type53, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type53); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type53, member_content); } CompleteStructType struct_type_Type53 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type53, header_Type53, member_seq_Type53); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3012,34 +3412,42 @@ void register_Type54_type_identifier( header_Type54 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type54); CompleteStructMemberSeq member_seq_Type54; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type54.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type54); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type54, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type54); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type54, member_content); } CompleteStructType struct_type_Type54 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type54, header_Type54, member_seq_Type54); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3071,34 +3479,42 @@ void register_Type55_type_identifier( header_Type55 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type55); CompleteStructMemberSeq member_seq_Type55; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type55.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type55); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type55, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type55); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type55, member_content); } CompleteStructType struct_type_Type55 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type55, header_Type55, member_seq_Type55); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3130,34 +3546,42 @@ void register_Type56_type_identifier( header_Type56 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type56); CompleteStructMemberSeq member_seq_Type56; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type56.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type56); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type56, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type56); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type56, member_content); } CompleteStructType struct_type_Type56 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type56, header_Type56, member_seq_Type56); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3189,34 +3613,42 @@ void register_Type57_type_identifier( header_Type57 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type57); CompleteStructMemberSeq member_seq_Type57; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type57.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type57); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type57, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type57); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type57, member_content); } CompleteStructType struct_type_Type57 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type57, header_Type57, member_seq_Type57); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3248,34 +3680,42 @@ void register_Type58_type_identifier( header_Type58 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type58); CompleteStructMemberSeq member_seq_Type58; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type58.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type58); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type58, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type58); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type58, member_content); } CompleteStructType struct_type_Type58 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type58, header_Type58, member_seq_Type58); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3307,34 +3747,42 @@ void register_Type59_type_identifier( header_Type59 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type59); CompleteStructMemberSeq member_seq_Type59; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type59.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type59); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type59, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type59); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type59, member_content); } CompleteStructType struct_type_Type59 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type59, header_Type59, member_seq_Type59); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3366,34 +3814,42 @@ void register_Type60_type_identifier( header_Type60 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type60); CompleteStructMemberSeq member_seq_Type60; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type60.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type60); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type60, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type60); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type60, member_content); } CompleteStructType struct_type_Type60 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type60, header_Type60, member_seq_Type60); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3425,34 +3881,42 @@ void register_Type61_type_identifier( header_Type61 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type61); CompleteStructMemberSeq member_seq_Type61; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type61.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type61); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type61, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type61); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type61, member_content); } CompleteStructType struct_type_Type61 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type61, header_Type61, member_seq_Type61); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3484,34 +3948,42 @@ void register_Type62_type_identifier( header_Type62 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type62); CompleteStructMemberSeq member_seq_Type62; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type62.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type62); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type62, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type62); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type62, member_content); } CompleteStructType struct_type_Type62 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type62, header_Type62, member_seq_Type62); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3543,34 +4015,42 @@ void register_Type63_type_identifier( header_Type63 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type63); CompleteStructMemberSeq member_seq_Type63; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type63.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type63); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type63, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type63); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type63, member_content); } CompleteStructType struct_type_Type63 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type63, header_Type63, member_seq_Type63); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3602,34 +4082,42 @@ void register_Type64_type_identifier( header_Type64 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type64); CompleteStructMemberSeq member_seq_Type64; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type64.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type64); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type64, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type64); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type64, member_content); } CompleteStructType struct_type_Type64 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type64, header_Type64, member_seq_Type64); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3661,34 +4149,42 @@ void register_Type65_type_identifier( header_Type65 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type65); CompleteStructMemberSeq member_seq_Type65; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type65.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type65); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type65, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type65); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type65, member_content); } CompleteStructType struct_type_Type65 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type65, header_Type65, member_seq_Type65); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3720,34 +4216,42 @@ void register_Type66_type_identifier( header_Type66 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type66); CompleteStructMemberSeq member_seq_Type66; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type66.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type66); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type66, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type66); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type66, member_content); } CompleteStructType struct_type_Type66 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type66, header_Type66, member_seq_Type66); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3779,34 +4283,42 @@ void register_Type67_type_identifier( header_Type67 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type67); CompleteStructMemberSeq member_seq_Type67; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type67.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type67); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type67, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type67); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type67, member_content); } CompleteStructType struct_type_Type67 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type67, header_Type67, member_seq_Type67); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3838,34 +4350,42 @@ void register_Type68_type_identifier( header_Type68 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type68); CompleteStructMemberSeq member_seq_Type68; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type68.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type68); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type68, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type68); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type68, member_content); } CompleteStructType struct_type_Type68 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type68, header_Type68, member_seq_Type68); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3897,34 +4417,42 @@ void register_Type69_type_identifier( header_Type69 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type69); CompleteStructMemberSeq member_seq_Type69; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type69.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type69); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type69, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type69); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type69, member_content); } CompleteStructType struct_type_Type69 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type69, header_Type69, member_seq_Type69); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -3956,34 +4484,42 @@ void register_Type70_type_identifier( header_Type70 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type70); CompleteStructMemberSeq member_seq_Type70; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type70.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type70); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type70, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type70); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type70, member_content); } CompleteStructType struct_type_Type70 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type70, header_Type70, member_seq_Type70); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4015,34 +4551,42 @@ void register_Type71_type_identifier( header_Type71 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type71); CompleteStructMemberSeq member_seq_Type71; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type71.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type71); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type71, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type71); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type71, member_content); } CompleteStructType struct_type_Type71 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type71, header_Type71, member_seq_Type71); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4074,34 +4618,42 @@ void register_Type72_type_identifier( header_Type72 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type72); CompleteStructMemberSeq member_seq_Type72; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type72.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type72); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type72, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type72); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type72, member_content); } CompleteStructType struct_type_Type72 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type72, header_Type72, member_seq_Type72); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4133,34 +4685,42 @@ void register_Type73_type_identifier( header_Type73 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type73); CompleteStructMemberSeq member_seq_Type73; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type73.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type73); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type73, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type73); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type73, member_content); } CompleteStructType struct_type_Type73 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type73, header_Type73, member_seq_Type73); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4192,34 +4752,42 @@ void register_Type74_type_identifier( header_Type74 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type74); CompleteStructMemberSeq member_seq_Type74; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type74.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type74); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type74, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type74); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type74, member_content); } CompleteStructType struct_type_Type74 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type74, header_Type74, member_seq_Type74); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4251,34 +4819,42 @@ void register_Type75_type_identifier( header_Type75 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type75); CompleteStructMemberSeq member_seq_Type75; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type75.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type75); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type75, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type75); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type75, member_content); } CompleteStructType struct_type_Type75 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type75, header_Type75, member_seq_Type75); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4310,34 +4886,42 @@ void register_Type76_type_identifier( header_Type76 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type76); CompleteStructMemberSeq member_seq_Type76; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type76.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type76); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type76, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type76); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type76, member_content); } CompleteStructType struct_type_Type76 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type76, header_Type76, member_seq_Type76); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4369,34 +4953,42 @@ void register_Type77_type_identifier( header_Type77 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type77); CompleteStructMemberSeq member_seq_Type77; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type77.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type77); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type77, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type77); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type77, member_content); } CompleteStructType struct_type_Type77 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type77, header_Type77, member_seq_Type77); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4428,34 +5020,42 @@ void register_Type78_type_identifier( header_Type78 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type78); CompleteStructMemberSeq member_seq_Type78; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type78.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type78); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type78, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type78); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type78, member_content); } CompleteStructType struct_type_Type78 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type78, header_Type78, member_seq_Type78); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4487,34 +5087,42 @@ void register_Type79_type_identifier( header_Type79 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type79); CompleteStructMemberSeq member_seq_Type79; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type79.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type79); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type79, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type79); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type79, member_content); } CompleteStructType struct_type_Type79 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type79, header_Type79, member_seq_Type79); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4546,34 +5154,42 @@ void register_Type80_type_identifier( header_Type80 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type80); CompleteStructMemberSeq member_seq_Type80; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type80.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type80); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type80, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type80); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type80, member_content); } CompleteStructType struct_type_Type80 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type80, header_Type80, member_seq_Type80); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4605,34 +5221,42 @@ void register_Type81_type_identifier( header_Type81 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type81); CompleteStructMemberSeq member_seq_Type81; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type81.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type81); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type81, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type81); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type81, member_content); } CompleteStructType struct_type_Type81 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type81, header_Type81, member_seq_Type81); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4664,34 +5288,42 @@ void register_Type82_type_identifier( header_Type82 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type82); CompleteStructMemberSeq member_seq_Type82; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type82.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type82); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type82, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type82); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type82, member_content); } CompleteStructType struct_type_Type82 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type82, header_Type82, member_seq_Type82); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4723,34 +5355,42 @@ void register_Type83_type_identifier( header_Type83 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type83); CompleteStructMemberSeq member_seq_Type83; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type83.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type83); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type83, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type83); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type83, member_content); } CompleteStructType struct_type_Type83 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type83, header_Type83, member_seq_Type83); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4782,34 +5422,42 @@ void register_Type84_type_identifier( header_Type84 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type84); CompleteStructMemberSeq member_seq_Type84; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type84.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type84); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type84, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type84); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type84, member_content); } CompleteStructType struct_type_Type84 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type84, header_Type84, member_seq_Type84); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4841,34 +5489,42 @@ void register_Type85_type_identifier( header_Type85 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type85); CompleteStructMemberSeq member_seq_Type85; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type85.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type85); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type85, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type85); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type85, member_content); } CompleteStructType struct_type_Type85 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type85, header_Type85, member_seq_Type85); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4900,34 +5556,42 @@ void register_Type86_type_identifier( header_Type86 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type86); CompleteStructMemberSeq member_seq_Type86; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type86.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type86); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type86, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type86); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type86, member_content); } CompleteStructType struct_type_Type86 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type86, header_Type86, member_seq_Type86); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -4959,34 +5623,42 @@ void register_Type87_type_identifier( header_Type87 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type87); CompleteStructMemberSeq member_seq_Type87; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type87.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type87); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type87, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type87); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type87, member_content); } CompleteStructType struct_type_Type87 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type87, header_Type87, member_seq_Type87); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5018,34 +5690,42 @@ void register_Type88_type_identifier( header_Type88 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type88); CompleteStructMemberSeq member_seq_Type88; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type88.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type88); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type88, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type88); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type88, member_content); } CompleteStructType struct_type_Type88 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type88, header_Type88, member_seq_Type88); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5077,34 +5757,42 @@ void register_Type89_type_identifier( header_Type89 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type89); CompleteStructMemberSeq member_seq_Type89; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type89.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type89); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type89, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type89); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type89, member_content); } CompleteStructType struct_type_Type89 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type89, header_Type89, member_seq_Type89); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5136,34 +5824,42 @@ void register_Type90_type_identifier( header_Type90 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type90); CompleteStructMemberSeq member_seq_Type90; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type90.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type90); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type90, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type90); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type90, member_content); } CompleteStructType struct_type_Type90 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type90, header_Type90, member_seq_Type90); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5195,34 +5891,42 @@ void register_Type91_type_identifier( header_Type91 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type91); CompleteStructMemberSeq member_seq_Type91; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type91.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type91); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type91, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type91); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type91, member_content); } CompleteStructType struct_type_Type91 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type91, header_Type91, member_seq_Type91); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5254,34 +5958,42 @@ void register_Type92_type_identifier( header_Type92 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type92); CompleteStructMemberSeq member_seq_Type92; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type92.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type92); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type92, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type92); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type92, member_content); } CompleteStructType struct_type_Type92 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type92, header_Type92, member_seq_Type92); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5313,34 +6025,42 @@ void register_Type93_type_identifier( header_Type93 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type93); CompleteStructMemberSeq member_seq_Type93; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type93.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type93); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type93, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type93); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type93, member_content); } CompleteStructType struct_type_Type93 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type93, header_Type93, member_seq_Type93); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5372,34 +6092,42 @@ void register_Type94_type_identifier( header_Type94 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type94); CompleteStructMemberSeq member_seq_Type94; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type94.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type94); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type94, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type94); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type94, member_content); } CompleteStructType struct_type_Type94 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type94, header_Type94, member_seq_Type94); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5431,34 +6159,42 @@ void register_Type95_type_identifier( header_Type95 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type95); CompleteStructMemberSeq member_seq_Type95; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type95.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type95); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type95, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type95); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type95, member_content); } CompleteStructType struct_type_Type95 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type95, header_Type95, member_seq_Type95); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5490,34 +6226,42 @@ void register_Type96_type_identifier( header_Type96 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type96); CompleteStructMemberSeq member_seq_Type96; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type96.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type96); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type96, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type96); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type96, member_content); } CompleteStructType struct_type_Type96 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type96, header_Type96, member_seq_Type96); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5549,34 +6293,42 @@ void register_Type97_type_identifier( header_Type97 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type97); CompleteStructMemberSeq member_seq_Type97; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type97.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type97); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type97, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type97); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type97, member_content); } CompleteStructType struct_type_Type97 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type97, header_Type97, member_seq_Type97); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5608,34 +6360,42 @@ void register_Type98_type_identifier( header_Type98 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type98); CompleteStructMemberSeq member_seq_Type98; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type98.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type98); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type98, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type98); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type98, member_content); } CompleteStructType struct_type_Type98 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type98, header_Type98, member_seq_Type98); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5667,34 +6427,42 @@ void register_Type99_type_identifier( header_Type99 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type99); CompleteStructMemberSeq member_seq_Type99; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type99.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type99); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type99, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type99); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type99, member_content); } CompleteStructType struct_type_Type99 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type99, header_Type99, member_seq_Type99); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5726,34 +6494,42 @@ void register_Type100_type_identifier( header_Type100 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Type100); CompleteStructMemberSeq member_seq_Type100; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_Type100.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Type100); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_Type100, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_Type100); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_Type100, member_content); } CompleteStructType struct_type_Type100 = TypeObjectUtils::build_complete_struct_type(struct_flags_Type100, header_Type100, member_seq_Type100); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == @@ -5785,34 +6561,42 @@ void register_TypeBig_type_identifier( header_TypeBig = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeBig); CompleteStructMemberSeq member_seq_TypeBig; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_TypeBig.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_TypeBig); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_TypeBig); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeBig, member_content); } { TypeIdentifierPair type_ids_dep1; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp index 931d3df1e46..cb844f0bf03 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp @@ -23,7 +23,9 @@ #define FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_HPP #include +#include #include +#include #include "XtypesTestsType1.hpp" #include "XtypesTestsType2.hpp" #include "XtypesTestsType3.hpp" @@ -81,7 +83,7 @@ class TypeDep eProsima_user_DllExport TypeDep( const TypeDep& x) { - m_index = x.m_index; + m_content = x.m_content; m_var_type1 = x.m_var_type1; @@ -98,7 +100,7 @@ class TypeDep eProsima_user_DllExport TypeDep( TypeDep&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); m_var_type1 = std::move(x.m_var_type1); m_var_type2 = std::move(x.m_var_type2); m_var_type3 = std::move(x.m_var_type3); @@ -112,7 +114,7 @@ class TypeDep const TypeDep& x) { - m_index = x.m_index; + m_content = x.m_content; m_var_type1 = x.m_var_type1; @@ -131,7 +133,7 @@ class TypeDep TypeDep&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); m_var_type1 = std::move(x.m_var_type1); m_var_type2 = std::move(x.m_var_type2); m_var_type3 = std::move(x.m_var_type3); @@ -145,7 +147,7 @@ class TypeDep eProsima_user_DllExport bool operator ==( const TypeDep& x) const { - return (m_index == x.m_index && + return (m_content == x.m_content && m_var_type1 == x.m_var_type1 && m_var_type2 == x.m_var_type2 && m_var_type3 == x.m_var_type3); @@ -162,31 +164,41 @@ class TypeDep } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } @@ -310,7 +322,7 @@ class TypeDep private: - uint16_t m_index{0}; + std::string m_content; Type1 m_var_type1; Type2 m_var_type2; Type3 m_var_type3; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.idl b/test/dds/xtypes/idl/XtypesTestsTypeDep.idl index 3eef39f8d44..ba4498972e0 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDep.idl +++ b/test/dds/xtypes/idl/XtypesTestsTypeDep.idl @@ -4,7 +4,7 @@ struct TypeDep { - unsigned short index; + string content; Type1 var_type1; Type2 var_type2; Type3 var_type3; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp index 3a5ddd34e94..5210e7f4c65 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp @@ -24,7 +24,7 @@ #include "XtypesTestsTypeDep.hpp" -constexpr uint32_t TypeDep_max_cdr_typesize {32UL}; +constexpr uint32_t TypeDep_max_cdr_typesize {1056UL}; constexpr uint32_t TypeDep_max_key_cdr_typesize {0UL}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp index d0e29adb477..f27ed7a9845 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp @@ -51,7 +51,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), data.var_type1(), current_alignment); @@ -80,7 +80,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() << eprosima::fastcdr::MemberId(1) << data.var_type1() << eprosima::fastcdr::MemberId(2) << data.var_type2() << eprosima::fastcdr::MemberId(3) << data.var_type3() @@ -102,7 +102,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; case 1: @@ -144,7 +144,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); serialize_key(scdr, data.var_type1()); diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp index f7c6b4893ad..b826eaf6c40 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp @@ -89,7 +89,7 @@ class TypeDepPubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx index 8110620c9b1..4144b3c382b 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx +++ b/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx @@ -62,34 +62,42 @@ void register_TypeDep_type_identifier( header_TypeDep = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeDep); CompleteStructMemberSeq member_seq_TypeDep; { - TypeIdentifierPair type_ids_index; - ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; - return_code_index = + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_index); + "anonymous_string_unbounded", type_ids_content); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - return; + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - MemberId member_id_index = 0x00000000; - bool common_index_ec {false}; - CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; - if (!common_index_ec) + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); return; } - MemberName name_index = "index"; - eprosima::fastcdr::optional member_ann_builtin_index; + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; ann_custom_TypeDep.reset(); - CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_TypeDep); - CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); - TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_index); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_TypeDep); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeDep, member_content); } { TypeIdentifierPair type_ids_var_type1; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp index feceafd70e5..0153b206286 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp @@ -23,7 +23,9 @@ #define FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_HPP #include +#include #include +#include #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) @@ -78,7 +80,7 @@ class TypeNoTypeObject eProsima_user_DllExport TypeNoTypeObject( const TypeNoTypeObject& x) { - m_index = x.m_index; + m_content = x.m_content; } @@ -89,7 +91,7 @@ class TypeNoTypeObject eProsima_user_DllExport TypeNoTypeObject( TypeNoTypeObject&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); } /*! @@ -100,7 +102,7 @@ class TypeNoTypeObject const TypeNoTypeObject& x) { - m_index = x.m_index; + m_content = x.m_content; return *this; } @@ -113,7 +115,7 @@ class TypeNoTypeObject TypeNoTypeObject&& x) noexcept { - m_index = x.m_index; + m_content = std::move(x.m_content); return *this; } @@ -124,7 +126,7 @@ class TypeNoTypeObject eProsima_user_DllExport bool operator ==( const TypeNoTypeObject& x) const { - return (m_index == x.m_index); + return (m_content == x.m_content); } /*! @@ -138,38 +140,48 @@ class TypeNoTypeObject } /*! - * @brief This function sets a value in member index - * @param _index New value for member index + * @brief This function copies the value in member content + * @param _content New value to be copied in member content */ - eProsima_user_DllExport void index( - uint16_t _index) + eProsima_user_DllExport void content( + const std::string& _content) { - m_index = _index; + m_content = _content; } /*! - * @brief This function returns the value of member index - * @return Value of member index + * @brief This function moves the value in member content + * @param _content New value to be moved in member content */ - eProsima_user_DllExport uint16_t index() const + eProsima_user_DllExport void content( + std::string&& _content) { - return m_index; + m_content = std::move(_content); } /*! - * @brief This function returns a reference to member index - * @return Reference to member index + * @brief This function returns a constant reference to member content + * @return Constant reference to member content */ - eProsima_user_DllExport uint16_t& index() + eProsima_user_DllExport const std::string& content() const { - return m_index; + return m_content; + } + + /*! + * @brief This function returns a reference to member content + * @return Reference to member content + */ + eProsima_user_DllExport std::string& content() + { + return m_content; } private: - uint16_t m_index{0}; + std::string m_content; }; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl index e3a298754c8..172fda6eb93 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl @@ -1,4 +1,4 @@ struct TypeNoTypeObject { - unsigned short index; + string content; }; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp index 03590c5fa5b..1bcc7c5bc3e 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp @@ -24,7 +24,7 @@ #include "XtypesTestsTypeNoTypeObject.hpp" -constexpr uint32_t TypeNoTypeObject_max_cdr_typesize {6UL}; +constexpr uint32_t TypeNoTypeObject_max_cdr_typesize {264UL}; constexpr uint32_t TypeNoTypeObject_max_key_cdr_typesize {0UL}; diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp index 9bfd7914409..05e4315ba57 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp @@ -51,7 +51,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.index(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -71,7 +71,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.index() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -90,7 +90,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.index(); + dcdr >> data.content(); break; default: @@ -108,7 +108,7 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.index(); + scdr << data.content(); } diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h index 5ee6c513cfa..505c0276a89 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h @@ -94,7 +94,7 @@ class TypeNoTypeObjectPubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp index 64044e027c7..075ba461bac 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp +++ b/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp @@ -86,7 +86,7 @@ class TypeNoTypeObjectPubSubType : public eprosima::fastdds::dds::TopicDataType #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { - return true; + return false; } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 26c5b709a18..e5f216b475d 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -67,13 +67,14 @@ def execute_commands(commands, logger): for command in commands: logger.info(f'Executing: {command}') processes.append(subprocess.Popen(command)) - time.sleep(1) # Delay for consistency + time.sleep(0.5) # Delay for consistency ret_value = 0 for proc in processes: proc.communicate() ret_value += proc.returncode + # time.sleep(1) # Delay for consistency return ret_value From 359837d6448774e16513bc6edb997bbfb8fd7c64 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Mon, 12 Feb 2024 11:16:09 +0100 Subject: [PATCH 15/45] Refs #20165: Fixed Log macro namespace. And TypeObjectRegistry::register_type_object. Signed-off-by: adriancampo --- .../xtypes/type_lookup_service/CMakeLists.txt | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt index 2e4a22fe2a0..f40b3720b2c 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt +++ b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt @@ -16,19 +16,18 @@ file(GLOB DDSSQLFILTER_SOURCES ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/DDSSQ set(TYPELOOKUPSERVICETESTS_SOURCE TypeLookupServiceTests.cpp ${DDSSQLFILTER_SOURCES} - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/AnnotationDescriptor.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicData.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicDataFactory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicDataPtr.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicPubSubType.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicType.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypeBuilder.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypeBuilderFactory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypeBuilderPtr.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypeMember.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/DynamicTypePtr.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/MemberDescriptor.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/TypeDescriptor.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataFactory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataFactoryImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactoryImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeMemberImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/TypeDescriptorImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/VerbatimTextDescriptorImpl.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp From 2b99f80c2c4b9e9175bcb764c9d883734dbfbfc0 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Mon, 12 Feb 2024 16:33:49 +0100 Subject: [PATCH 16/45] Refs #20165: Fix for type with no TypeObject. Signed-off-by: adriancampo --- test/dds/xtypes/TypeLookupServicePublisher.cpp | 7 ++++++- test/dds/xtypes/TypeLookupServiceSubscriber.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index ab77508bea6..232f8587c6a 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -442,7 +442,7 @@ void TypeLookupServicePublisher::on_data_reader_discovery( // Check if the type is already created if (nullptr == participant_->find_type(discovered_reader_type_name)) { - // Check type registration + // Check for TypeObjectRegistry inconsistency const bool should_be_registered = discovered_reader_type_name.find("NoTypeObject") == std::string::npos; if ((should_be_registered && !check_registered_type(info.type_information)) || (!should_be_registered && check_registered_type(info.type_information))) @@ -456,6 +456,11 @@ void TypeLookupServicePublisher::on_data_reader_discovery( { create_types_threads.emplace_back(&TypeLookupServicePublisher::create_discovered_type, this, info); } + else + { + create_types_threads.emplace_back( + &TypeLookupServicePublisher::create_known_type, this, discovered_reader_type_name); + } } } } diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index a92e53c6226..ef4100cb82f 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -462,7 +462,7 @@ void TypeLookupServiceSubscriber::on_data_writer_discovery( // Check if the type is already created if (participant_->find_type(discovered_writer_type_name) == nullptr) { - // Check type registration + // Check for TypeObjectRegistry inconsistency const bool should_be_registered = discovered_writer_type_name.find("NoTypeObject") == std::string::npos; if ((should_be_registered && !check_registered_type(info.type_information)) || @@ -477,6 +477,11 @@ void TypeLookupServiceSubscriber::on_data_writer_discovery( { create_types_threads.emplace_back(&TypeLookupServiceSubscriber::create_discovered_type, this, info); } + else + { + create_types_threads.emplace_back( + &TypeLookupServiceSubscriber::create_known_type, this, discovered_writer_type_name); + } } } } From 5a7201867154b8536f1895a799dadd4c6a4b15ca Mon Sep 17 00:00:00 2001 From: adriancampo Date: Tue, 13 Feb 2024 07:31:11 +0100 Subject: [PATCH 17/45] Refs #20165: Update TypeLookupManager mock. Signed-off-by: adriancampo --- .../type_lookup_service/TypeLookupManager.hpp | 11 +++++--- .../xtypes/type_lookup_service/CMakeLists.txt | 26 +++++++++---------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp b/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp index b843f41bcd7..a1a93fa72b6 100644 --- a/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp +++ b/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp @@ -131,16 +131,16 @@ class TypeLookupManager MOCK_CONST_METHOD2(get_type_dependencies, SampleIdentity( const xtypes::TypeIdentifierSeq&, - const fastdds::rtps::GuidPrefix_t&)); + const fastdds::rtps::GUID_t&)); MOCK_CONST_METHOD3(get_type_dependencies, SampleIdentity( const xtypes::TypeIdentifierSeq&, - const fastdds::rtps::GuidPrefix_t&, + const fastdds::rtps::GUID_t&, const std::vector&)); MOCK_CONST_METHOD2(get_types, SampleIdentity( const xtypes::TypeIdentifierSeq&, - const fastdds::rtps::GuidPrefix_t&)); + const fastdds::rtps::GUID_t&)); MOCK_METHOD2(async_get_type, ReturnCode_t( eprosima::ProxyPool::smart_ptr&, @@ -178,6 +178,11 @@ class TypeLookupManager MOCK_METHOD1(remove_remote_endpoints, void( fastdds::rtps::ParticipantProxyData*)); + MOCK_METHOD1(remove_builtin_request_writer_history_change, void( + fastdds::rtps::CacheChange_t*)); + + MOCK_METHOD1(remove_builtin_reply_writer_history_change, void( + fastdds::rtps::CacheChange_t*)); // *INDENT-ON* fastdds::rtps::RTPSParticipantImpl* participant_ = nullptr; diff --git a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt index f40b3720b2c..a173e960256 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt +++ b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt @@ -16,18 +16,6 @@ file(GLOB DDSSQLFILTER_SOURCES ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/DDSSQ set(TYPELOOKUPSERVICETESTS_SOURCE TypeLookupServiceTests.cpp ${DDSSQLFILTER_SOURCES} - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataFactory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataFactoryImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactoryImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeMemberImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/TypeDescriptorImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/VerbatimTextDescriptorImpl.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp @@ -76,6 +64,19 @@ ${DDSSQLFILTER_SOURCES} ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TopicProxyFactory.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TypeSupport.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/utils/QosConverters.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataFactory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataFactoryImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicPubSubType.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactory.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactoryImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeMemberImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/TypeDescriptorImpl.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/VerbatimTextDescriptorImpl.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/exception/Exception.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp @@ -91,7 +92,6 @@ ${DDSSQLFILTER_SOURCES} ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/TopicPayloadPool.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/TopicPayloadPoolRegistry.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/transport/PortBasedTransportDescriptor.cpp - # ${PROJECT_SOURCE_DIR}/src/cpp/rtps/writer/LocatorSelectorSender.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLDynamicParser.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLElementParser.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLParser.cpp From 6e2d5f8cac0afcad241a53a38340648ddfe0f24d Mon Sep 17 00:00:00 2001 From: adriancampo Date: Sun, 18 Feb 2024 11:29:47 +0100 Subject: [PATCH 18/45] Refs #20165: Added testing for dds-types-tests. Signed-off-by: adriancampo --- test/dds-types-test/relative_path_include.hpp | 179 ---- .../relative_path_includeCdrAux.hpp | 55 -- .../relative_path_includeCdrAux.ipp | 121 --- .../relative_path_includePubSubTypes.cxx | 217 ----- .../relative_path_includePubSubTypes.hpp | 124 --- ...relative_path_includeTypeObjectSupport.cxx | 99 -- test/dds/xtypes/{ => BaseCases}/Case0.json | 0 test/dds/xtypes/{ => BaseCases}/Case1.json | 0 test/dds/xtypes/{ => BaseCases}/Case10.json | 0 test/dds/xtypes/{ => BaseCases}/Case2.json | 0 test/dds/xtypes/{ => BaseCases}/Case3.json | 0 test/dds/xtypes/{ => BaseCases}/Case4.json | 0 test/dds/xtypes/{ => BaseCases}/Case5.json | 0 test/dds/xtypes/{ => BaseCases}/Case6.json | 0 test/dds/xtypes/{ => BaseCases}/Case7.json | 0 test/dds/xtypes/{ => BaseCases}/Case8.json | 0 test/dds/xtypes/{ => BaseCases}/Case9.json | 0 .../XtypesTestsType1.hpp | 0 .../XtypesTestsType1.idl | 0 .../XtypesTestsType1CdrAux.hpp | 0 .../XtypesTestsType1CdrAux.ipp | 0 .../XtypesTestsType1PubSubTypes.cxx | 0 .../XtypesTestsType1PubSubTypes.hpp | 0 .../XtypesTestsType1TypeObjectSupport.cxx | 0 .../XtypesTestsType1TypeObjectSupport.hpp | 0 .../XtypesTestsType2.hpp | 0 .../XtypesTestsType2.idl | 0 .../XtypesTestsType2CdrAux.hpp | 0 .../XtypesTestsType2CdrAux.ipp | 0 .../XtypesTestsType2PubSubTypes.cxx | 0 .../XtypesTestsType2PubSubTypes.hpp | 0 .../XtypesTestsType2TypeObjectSupport.cxx | 0 .../XtypesTestsType2TypeObjectSupport.hpp | 0 .../XtypesTestsType3.hpp | 0 .../XtypesTestsType3.idl | 0 .../XtypesTestsType3CdrAux.hpp | 0 .../XtypesTestsType3CdrAux.ipp | 0 .../XtypesTestsType3PubSubTypes.cxx | 0 .../XtypesTestsType3PubSubTypes.hpp | 0 .../XtypesTestsType3TypeObjectSupport.cxx | 0 .../XtypesTestsType3TypeObjectSupport.hpp | 0 .../XtypesTestsTypeBig.hpp | 0 .../XtypesTestsTypeBig.idl | 0 .../XtypesTestsTypeBigCdrAux.hpp | 0 .../XtypesTestsTypeBigCdrAux.ipp | 0 .../XtypesTestsTypeBigPubSubTypes.cxx | 0 .../XtypesTestsTypeBigPubSubTypes.hpp | 0 .../XtypesTestsTypeBigTypeObjectSupport.cxx | 0 .../XtypesTestsTypeBigTypeObjectSupport.hpp | 0 .../XtypesTestsTypeDep.hpp | 0 .../XtypesTestsTypeDep.idl | 0 .../XtypesTestsTypeDepCdrAux.hpp | 0 .../XtypesTestsTypeDepCdrAux.ipp | 0 .../XtypesTestsTypeDepPubSubTypes.cxx | 0 .../XtypesTestsTypeDepPubSubTypes.hpp | 0 .../XtypesTestsTypeDepTypeObjectSupport.cxx | 0 .../XtypesTestsTypeDepTypeObjectSupport.hpp | 0 .../XtypesTestsTypeNoTypeObject.hpp | 0 .../XtypesTestsTypeNoTypeObject.idl | 0 .../XtypesTestsTypeNoTypeObjectCdrAux.hpp | 0 .../XtypesTestsTypeNoTypeObjectCdrAux.ipp | 0 ...XtypesTestsTypeNoTypeObjectPubSubTypes.cxx | 5 +- .../XtypesTestsTypeNoTypeObjectPubSubTypes.h | 0 ...XtypesTestsTypeNoTypeObjectPubSubTypes.hpp | 0 ...TestsTypeNoTypeObjectTypeObjectSupport.cxx | 108 ++ ...estsTypeNoTypeObjectTypeObjectSupport.hpp} | 13 +- test/dds/xtypes/CMakeLists.txt | 54 +- .../dds/xtypes/TypeLookupServicePublisher.cpp | 140 +-- test/dds/xtypes/TypeLookupServicePublisher.h | 922 +++++++++++++++++- .../xtypes/TypeLookupServiceSubscriber.cpp | 142 +-- test/dds/xtypes/TypeLookupServiceSubscriber.h | 918 ++++++++++++++++- test/dds/xtypes/TypeLookupServiceTestsTypes.h | 37 +- test/dds/xtypes/TypeLookupService_main.cpp | 10 +- .../Case_aliases_AliasAlias.json | 20 + .../Case_aliases_AliasArray.json | 20 + .../Case_aliases_AliasBitmask.json | 20 + .../Case_aliases_AliasBitset.json | 20 + .../Case_aliases_AliasBool.json | 20 + .../Case_aliases_AliasChar16.json | 20 + .../Case_aliases_AliasChar8.json | 20 + .../Case_aliases_AliasEnum.json | 20 + .../Case_aliases_AliasFloat128.json | 20 + .../Case_aliases_AliasFloat32.json | 20 + .../Case_aliases_AliasFloat64.json | 20 + .../Case_aliases_AliasInt16.json | 20 + .../Case_aliases_AliasInt32.json | 20 + .../Case_aliases_AliasInt64.json | 20 + .../Case_aliases_AliasMap.json | 20 + .../Case_aliases_AliasMultiArray.json | 20 + .../Case_aliases_AliasOctet.json | 20 + .../Case_aliases_AliasSequence.json | 20 + .../Case_aliases_AliasString16.json | 20 + .../Case_aliases_AliasString8.json | 20 + .../Case_aliases_AliasStruct.json | 20 + .../Case_aliases_AliasUInt32.json | 20 + .../Case_aliases_AliasUInt64.json | 20 + .../Case_aliases_AliasUint16.json | 20 + .../Case_aliases_AliasUnion.json | 20 + .../Case_annotations_AnnotatedStruct.json | 20 + ...Case_annotations_EmptyAnnotatedStruct.json | 20 + ...se_appendable_AppendableBooleanStruct.json | 20 + .../Case_appendable_AppendableCharStruct.json | 20 + ...ase_appendable_AppendableDoubleStruct.json | 20 + ...able_AppendableEmptyInheritanceStruct.json | 20 + ...Case_appendable_AppendableEmptyStruct.json | 20 + ...le_AppendableExtensibilityInheritance.json | 20 + ...Case_appendable_AppendableFloatStruct.json | 20 + ...able_AppendableInheritanceEmptyStruct.json | 20 + ...ppendable_AppendableInheritanceStruct.json | 20 + ...appendable_AppendableLongDoubleStruct.json | 20 + ...e_appendable_AppendableLongLongStruct.json | 20 + .../Case_appendable_AppendableLongStruct.json | 20 + ...Case_appendable_AppendableOctetStruct.json | 20 + ...Case_appendable_AppendableShortStruct.json | 20 + ..._appendable_AppendableULongLongStruct.json | 20 + ...Case_appendable_AppendableULongStruct.json | 20 + ...ase_appendable_AppendableUShortStruct.json | 20 + ...Case_appendable_AppendableUnionStruct.json | 20 + ...Case_appendable_AppendableWCharStruct.json | 20 + .../Case_arrays_ArrayAlias.json | 20 + .../Case_arrays_ArrayBitMask.json | 20 + .../Case_arrays_ArrayBitset.json | 20 + .../Case_arrays_ArrayBoolean.json | 20 + .../Case_arrays_ArrayBoundedString.json | 20 + .../Case_arrays_ArrayBoundedWString.json | 20 + .../Case_arrays_ArrayChar.json | 20 + .../Case_arrays_ArrayDouble.json | 20 + .../Case_arrays_ArrayEnum.json | 20 + .../Case_arrays_ArrayFloat.json | 20 + .../Case_arrays_ArrayLong.json | 20 + .../Case_arrays_ArrayLongDouble.json | 20 + .../Case_arrays_ArrayLongLong.json | 20 + .../TypesTestsCases/Case_arrays_ArrayMap.json | 20 + .../Case_arrays_ArrayMultiDimensionAlias.json | 20 + ...ase_arrays_ArrayMultiDimensionBitMask.json | 20 + ...Case_arrays_ArrayMultiDimensionBitset.json | 20 + ...ase_arrays_ArrayMultiDimensionBoolean.json | 20 + ...rays_ArrayMultiDimensionBoundedString.json | 20 + ...ays_ArrayMultiDimensionBoundedWString.json | 20 + .../Case_arrays_ArrayMultiDimensionChar.json | 20 + ...Case_arrays_ArrayMultiDimensionDouble.json | 20 + .../Case_arrays_ArrayMultiDimensionEnum.json | 20 + .../Case_arrays_ArrayMultiDimensionFloat.json | 20 + ...rays_ArrayMultiDimensionLiteralsAlias.json | 20 + ...ys_ArrayMultiDimensionLiteralsBitMask.json | 20 + ...ays_ArrayMultiDimensionLiteralsBitSet.json | 20 + ...ys_ArrayMultiDimensionLiteralsBoolean.json | 20 + ...ayMultiDimensionLiteralsBoundedString.json | 20 + ...yMultiDimensionLiteralsBoundedWString.json | 20 + ...rrays_ArrayMultiDimensionLiteralsChar.json | 20 + ...ays_ArrayMultiDimensionLiteralsDouble.json | 20 + ...rrays_ArrayMultiDimensionLiteralsEnum.json | 20 + ...rays_ArrayMultiDimensionLiteralsFloat.json | 20 + ...rrays_ArrayMultiDimensionLiteralsLong.json | 20 + ...ArrayMultiDimensionLiteralsLongDouble.json | 20 + ...s_ArrayMultiDimensionLiteralsLongLong.json | 20 + ...arrays_ArrayMultiDimensionLiteralsMap.json | 20 + ...rays_ArrayMultiDimensionLiteralsOctet.json | 20 + ...s_ArrayMultiDimensionLiteralsSequence.json | 20 + ...rays_ArrayMultiDimensionLiteralsShort.json | 20 + ...ays_ArrayMultiDimensionLiteralsString.json | 20 + ..._ArrayMultiDimensionLiteralsStructure.json | 20 + ...rays_ArrayMultiDimensionLiteralsULong.json | 20 + ..._ArrayMultiDimensionLiteralsULongLong.json | 20 + ...ays_ArrayMultiDimensionLiteralsUShort.json | 20 + ...rays_ArrayMultiDimensionLiteralsUnion.json | 20 + ...rays_ArrayMultiDimensionLiteralsWChar.json | 20 + ...ys_ArrayMultiDimensionLiteralsWString.json | 20 + .../Case_arrays_ArrayMultiDimensionLong.json | 20 + ..._arrays_ArrayMultiDimensionLongDouble.json | 20 + ...se_arrays_ArrayMultiDimensionLongLong.json | 20 + .../Case_arrays_ArrayMultiDimensionMap.json | 20 + .../Case_arrays_ArrayMultiDimensionOctet.json | 20 + ...se_arrays_ArrayMultiDimensionSequence.json | 20 + .../Case_arrays_ArrayMultiDimensionShort.json | 20 + ...Case_arrays_ArrayMultiDimensionString.json | 20 + ...e_arrays_ArrayMultiDimensionStructure.json | 20 + .../Case_arrays_ArrayMultiDimensionULong.json | 20 + ...e_arrays_ArrayMultiDimensionULongLong.json | 20 + ...Case_arrays_ArrayMultiDimensionUShort.json | 20 + .../Case_arrays_ArrayMultiDimensionUnion.json | 20 + .../Case_arrays_ArrayMultiDimensionWChar.json | 20 + ...ase_arrays_ArrayMultiDimensionWString.json | 20 + .../Case_arrays_ArrayOctet.json | 20 + .../Case_arrays_ArraySequence.json | 20 + .../Case_arrays_ArrayShort.json | 20 + .../Case_arrays_ArrayShortArray.json | 20 + ...ays_ArraySingleDimensionLiteralsAlias.json | 20 + ...s_ArraySingleDimensionLiteralsBitMask.json | 20 + ...ys_ArraySingleDimensionLiteralsBitset.json | 20 + ...s_ArraySingleDimensionLiteralsBoolean.json | 20 + ...ySingleDimensionLiteralsBoundedString.json | 20 + ...SingleDimensionLiteralsBoundedWString.json | 20 + ...rays_ArraySingleDimensionLiteralsChar.json | 20 + ...ys_ArraySingleDimensionLiteralsDouble.json | 20 + ...rays_ArraySingleDimensionLiteralsEnum.json | 20 + ...ays_ArraySingleDimensionLiteralsFloat.json | 20 + ...rays_ArraySingleDimensionLiteralsLong.json | 20 + ...rraySingleDimensionLiteralsLongDouble.json | 20 + ..._ArraySingleDimensionLiteralsLongLong.json | 20 + ...rrays_ArraySingleDimensionLiteralsMap.json | 20 + ...ays_ArraySingleDimensionLiteralsOctet.json | 20 + ..._ArraySingleDimensionLiteralsSequence.json | 20 + ...ays_ArraySingleDimensionLiteralsShort.json | 20 + ...rraySingleDimensionLiteralsShortArray.json | 20 + ...ys_ArraySingleDimensionLiteralsString.json | 20 + ...ArraySingleDimensionLiteralsStructure.json | 20 + ...ays_ArraySingleDimensionLiteralsUnion.json | 20 + ...aySingleDimensionLiteralsUnsignedLong.json | 20 + ...ngleDimensionLiteralsUnsignedLongLong.json | 20 + ...ySingleDimensionLiteralsUnsignedShort.json | 20 + ...ays_ArraySingleDimensionLiteralsWChar.json | 20 + ...s_ArraySingleDimensionLiteralsWString.json | 20 + .../Case_arrays_ArrayString.json | 20 + .../Case_arrays_ArrayStructure.json | 20 + .../Case_arrays_ArrayULong.json | 20 + .../Case_arrays_ArrayULongLong.json | 20 + .../Case_arrays_ArrayUShort.json | 20 + .../Case_arrays_ArrayUnion.json | 20 + .../Case_arrays_ArrayWChar.json | 20 + .../Case_arrays_ArrayWString.json | 20 + .../Case_arrays_BoundedBigArrays.json | 20 + .../Case_arrays_BoundedSmallArrays.json | 20 + .../Case_bitsets_BitsetStruct.json | 20 + .../Case_constants_ConstsLiteralsStruct.json | 20 + ...constants_Module2ConstsLiteralsStruct.json | 20 + ..._constants_ModuleConstsLiteralsStruct.json | 20 + ...ns_ForwardDeclarationsRecursiveStruct.json | 20 + .../Case_declarations_ForwardStruct.json | 20 + ...clarations_ModuledCommonNameStructure.json | 20 + ...ledForwardDeclarationsRecursiveStruct.json | 20 + ...ase_declarations_ModuledForwardStruct.json | 20 + .../Case_enumerations_BitMaskStructure.json | 20 + ..._enumerations_BoundedBitMaskStructure.json | 20 + .../Case_enumerations_EnumStructure.json | 20 + .../Case_external_InnerStructExternal.json | 20 + .../Case_external_array_short_external.json | 20 + .../Case_external_boolean_external.json | 20 + .../Case_external_char_external.json | 20 + .../Case_external_double_external.json | 20 + ...xternal_ext_and_inner_struct_external.json | 20 + .../Case_external_ext_struct_external.json | 20 + .../Case_external_float_external.json | 20 + .../Case_external_long_external.json | 20 + .../Case_external_longdouble_external.json | 20 + .../Case_external_longlong_external.json | 20 + .../Case_external_map_short_external.json | 20 + .../Case_external_octet_external.json | 20 + .../Case_external_recursive_structure.json | 20 + .../Case_external_recursive_test_1.json | 20 + .../Case_external_recursive_test_2.json | 20 + ...se_external_recursive_union_container.json | 20 + ...Case_external_sequence_short_external.json | 20 + .../Case_external_short_external.json | 20 + ...Case_external_string_bounded_external.json | 20 + ...se_external_string_unbounded_external.json | 20 + .../Case_external_struct_external.json | 20 + ...ase_external_struct_external_optional.json | 20 + .../Case_external_ulong_external.json | 20 + .../Case_external_ulonglong_external.json | 20 + .../Case_external_ushort_external.json | 20 + .../Case_external_wchar_external.json | 20 + .../Case_final_FinalBooleanStruct.json | 20 + .../Case_final_FinalCharStruct.json | 20 + .../Case_final_FinalDoubleStruct.json | 20 + ...ase_final_FinalEmptyInheritanceStruct.json | 20 + .../Case_final_FinalEmptyStruct.json | 20 + ...e_final_FinalExtensibilityInheritance.json | 20 + .../Case_final_FinalFloatStruct.json | 20 + .../Case_final_FinalInheritanceStruct.json | 20 + .../Case_final_FinalLongDoubleStruct.json | 20 + .../Case_final_FinalLongLongStruct.json | 20 + .../Case_final_FinalLongStruct.json | 20 + .../Case_final_FinalOctetStruct.json | 20 + .../Case_final_FinalShortStruct.json | 20 + .../Case_final_FinalULongLongStruct.json | 20 + .../Case_final_FinalULongStruct.json | 20 + .../Case_final_FinalUShortStruct.json | 20 + .../Case_final_FinalUnionStruct.json | 20 + .../Case_final_FinalWCharStruct.json | 20 + .../Case_final_InheritanceEmptyStruct.json | 20 + ...inner_types_InnerEmptyStructureHelper.json | 20 + ...asic_inner_types_InnerStructureHelper.json | 20 + ...ritance_BitsetsChildInheritanceStruct.json | 20 + ...itance_InnerEmptyStructureHelperChild.json | 20 + ...inheritance_InnerStructureHelperChild.json | 20 + ...itance_InnerStructureHelperChildChild.json | 20 + ...itance_InnerStructureHelperEmptyChild.json | 20 + ...e_InnerStructureHelperEmptyChildChild.json | 20 + ...eritance_StructAliasInheritanceStruct.json | 20 + ...heritance_StructuresInheritanceStruct.json | 20 + .../Case_key_InheritanceKeyedEmptyStruct.json | 20 + .../Case_key_KeyedBooleanStruct.json | 20 + .../Case_key_KeyedCharStruct.json | 20 + .../Case_key_KeyedDoubleStruct.json | 20 + .../Case_key_KeyedEmptyInheritanceStruct.json | 20 + .../Case_key_KeyedEmptyStruct.json | 20 + .../Case_key_KeyedFloatStruct.json | 20 + .../Case_key_KeyedInheritanceStruct.json | 20 + .../Case_key_KeyedLongDoubleStruct.json | 20 + .../Case_key_KeyedLongLongStruct.json | 20 + .../Case_key_KeyedLongStruct.json | 20 + .../Case_key_KeyedOctetStruct.json | 20 + .../Case_key_KeyedShortStruct.json | 20 + .../Case_key_KeyedULongLongStruct.json | 20 + .../Case_key_KeyedULongStruct.json | 20 + .../Case_key_KeyedUShortStruct.json | 20 + .../Case_key_KeyedWCharStruct.json | 20 + .../Case_maps_BoundedLargeMap.json | 20 + .../Case_maps_BoundedSmallMap.json | 20 + ...pInnerAliasBoundedStringHelperBoolean.json | 20 + ..._MapInnerAliasBoundedStringHelperChar.json | 20 + ...apInnerAliasBoundedStringHelperDouble.json | 20 + ...MapInnerAliasBoundedStringHelperFloat.json | 20 + ...ndedStringHelperInnerAliasArrayHelper.json | 20 + ...ngHelperInnerAliasBoundedStringHelper.json | 20 + ...gHelperInnerAliasBoundedWStringHelper.json | 20 + ...asBoundedStringHelperInnerAliasHelper.json | 20 + ...oundedStringHelperInnerAliasMapHelper.json | 20 + ...dStringHelperInnerAliasSequenceHelper.json | 20 + ...BoundedStringHelperInnerBitMaskHelper.json | 20 + ...sBoundedStringHelperInnerBitsetHelper.json | 20 + ...iasBoundedStringHelperInnerEnumHelper.json | 20 + ...undedStringHelperInnerStructureHelper.json | 20 + ...asBoundedStringHelperInnerUnionHelper.json | 20 + ..._MapInnerAliasBoundedStringHelperLong.json | 20 + ...nerAliasBoundedStringHelperLongDouble.json | 20 + ...InnerAliasBoundedStringHelperLongLong.json | 20 + ...MapInnerAliasBoundedStringHelperOctet.json | 20 + ...MapInnerAliasBoundedStringHelperShort.json | 20 + ...apInnerAliasBoundedStringHelperString.json | 20 + ...MapInnerAliasBoundedStringHelperULong.json | 20 + ...nnerAliasBoundedStringHelperULongLong.json | 20 + ...apInnerAliasBoundedStringHelperUShort.json | 20 + ...MapInnerAliasBoundedStringHelperWChar.json | 20 + ...pInnerAliasBoundedStringHelperWString.json | 20 + ...InnerAliasBoundedWStringHelperBoolean.json | 20 + ...MapInnerAliasBoundedWStringHelperChar.json | 20 + ...pInnerAliasBoundedWStringHelperDouble.json | 20 + ...apInnerAliasBoundedWStringHelperFloat.json | 20 + ...dedWStringHelperInnerAliasArrayHelper.json | 20 + ...ngHelperInnerAliasBoundedStringHelper.json | 20 + ...gHelperInnerAliasBoundedWStringHelper.json | 20 + ...sBoundedWStringHelperInnerAliasHelper.json | 20 + ...undedWStringHelperInnerAliasMapHelper.json | 20 + ...WStringHelperInnerAliasSequenceHelper.json | 20 + ...oundedWStringHelperInnerBitMaskHelper.json | 20 + ...BoundedWStringHelperInnerBitsetHelper.json | 20 + ...asBoundedWStringHelperInnerEnumHelper.json | 20 + ...ndedWStringHelperInnerStructureHelper.json | 20 + ...sBoundedWStringHelperInnerUnionHelper.json | 20 + ...MapInnerAliasBoundedWStringHelperLong.json | 20 + ...erAliasBoundedWStringHelperLongDouble.json | 20 + ...nnerAliasBoundedWStringHelperLongLong.json | 20 + ...apInnerAliasBoundedWStringHelperOctet.json | 20 + ...apInnerAliasBoundedWStringHelperShort.json | 20 + ...pInnerAliasBoundedWStringHelperString.json | 20 + ...apInnerAliasBoundedWStringHelperULong.json | 20 + ...nerAliasBoundedWStringHelperULongLong.json | 20 + ...pInnerAliasBoundedWStringHelperUShort.json | 20 + ...apInnerAliasBoundedWStringHelperWChar.json | 20 + ...InnerAliasBoundedWStringHelperWString.json | 20 + .../Case_maps_MapKeyULongLongValueDouble.json | 20 + .../Case_maps_MapKeyULongValueLongDouble.json | 20 + .../Case_maps_MapKeyULongValueLongLong.json | 20 + .../Case_maps_MapLongBoolean.json | 20 + .../Case_maps_MapLongChar.json | 20 + .../Case_maps_MapLongDouble.json | 20 + .../Case_maps_MapLongFloat.json | 20 + ...ase_maps_MapLongInnerAliasArrayHelper.json | 20 + ..._MapLongInnerAliasBoundedStringHelper.json | 20 + ...MapLongInnerAliasBoundedWStringHelper.json | 20 + .../Case_maps_MapLongInnerAliasHelper.json | 20 + .../Case_maps_MapLongInnerAliasMapHelper.json | 20 + ..._maps_MapLongInnerAliasSequenceHelper.json | 20 + .../Case_maps_MapLongInnerBitMaskHelper.json | 20 + .../Case_maps_MapLongInnerBitsetHelper.json | 20 + .../Case_maps_MapLongInnerEnumHelper.json | 20 + ...Case_maps_MapLongInnerStructureHelper.json | 20 + .../Case_maps_MapLongInnerUnionHelper.json | 20 + .../Case_maps_MapLongKeyLongDoubleValue.json | 20 + .../Case_maps_MapLongKeyLongLongValue.json | 20 + .../Case_maps_MapLongLong.json | 20 + .../Case_maps_MapLongLongBoolean.json | 20 + .../Case_maps_MapLongLongChar.json | 20 + .../Case_maps_MapLongLongFloat.json | 20 + ...maps_MapLongLongInnerAliasArrayHelper.json | 20 + ...LongLongInnerAliasBoundedStringHelper.json | 20 + ...ongLongInnerAliasBoundedWStringHelper.json | 20 + ...Case_maps_MapLongLongInnerAliasHelper.json | 20 + ...e_maps_MapLongLongInnerAliasMapHelper.json | 20 + ...s_MapLongLongInnerAliasSequenceHelper.json | 20 + ...se_maps_MapLongLongInnerBitMaskHelper.json | 20 + ...ase_maps_MapLongLongInnerBitsetHelper.json | 20 + .../Case_maps_MapLongLongInnerEnumHelper.json | 20 + ..._maps_MapLongLongInnerStructureHelper.json | 20 + ...Case_maps_MapLongLongInnerUnionHelper.json | 20 + .../Case_maps_MapLongLongKeyDoubleValue.json | 20 + .../Case_maps_MapLongLongKeyLongValue.json | 20 + .../Case_maps_MapLongLongLongDouble.json | 20 + .../Case_maps_MapLongLongLongLong.json | 20 + .../Case_maps_MapLongLongOctet.json | 20 + .../Case_maps_MapLongLongShort.json | 20 + .../Case_maps_MapLongLongString.json | 20 + .../Case_maps_MapLongLongULong.json | 20 + .../Case_maps_MapLongLongULongLong.json | 20 + .../Case_maps_MapLongLongUShort.json | 20 + .../Case_maps_MapLongLongWChar.json | 20 + .../Case_maps_MapLongLongWString.json | 20 + .../Case_maps_MapLongOctet.json | 20 + .../Case_maps_MapLongShort.json | 20 + .../Case_maps_MapLongString.json | 20 + .../Case_maps_MapLongULong.json | 20 + .../Case_maps_MapLongULongLong.json | 20 + .../Case_maps_MapLongUShort.json | 20 + .../Case_maps_MapLongWChar.json | 20 + .../Case_maps_MapLongWString.json | 20 + .../Case_maps_MapShortBoolean.json | 20 + .../Case_maps_MapShortChar.json | 20 + .../Case_maps_MapShortDouble.json | 20 + .../Case_maps_MapShortFloat.json | 20 + ...se_maps_MapShortInnerAliasArrayHelper.json | 20 + ...MapShortInnerAliasBoundedStringHelper.json | 20 + ...apShortInnerAliasBoundedWStringHelper.json | 20 + .../Case_maps_MapShortInnerAliasHelper.json | 20 + ...Case_maps_MapShortInnerAliasMapHelper.json | 20 + ...maps_MapShortInnerAliasSequenceHelper.json | 20 + .../Case_maps_MapShortInnerBitMaskHelper.json | 20 + .../Case_maps_MapShortInnerBitsetHelper.json | 20 + .../Case_maps_MapShortInnerEnumHelper.json | 20 + ...ase_maps_MapShortInnerStructureHelper.json | 20 + .../Case_maps_MapShortInnerUnionHelper.json | 20 + .../Case_maps_MapShortLong.json | 20 + .../Case_maps_MapShortLongDouble.json | 20 + .../Case_maps_MapShortLongLong.json | 20 + .../Case_maps_MapShortOctet.json | 20 + .../Case_maps_MapShortShort.json | 20 + .../Case_maps_MapShortString.json | 20 + .../Case_maps_MapShortULong.json | 20 + .../Case_maps_MapShortULongLong.json | 20 + .../Case_maps_MapShortUShort.json | 20 + .../Case_maps_MapShortWChar.json | 20 + .../Case_maps_MapShortWString.json | 20 + .../Case_maps_MapStringBoolean.json | 20 + .../Case_maps_MapStringChar.json | 20 + .../Case_maps_MapStringDouble.json | 20 + .../Case_maps_MapStringFloat.json | 20 + ...e_maps_MapStringInnerAliasArrayHelper.json | 20 + ...apStringInnerAliasBoundedStringHelper.json | 20 + ...pStringInnerAliasBoundedWStringHelper.json | 20 + .../Case_maps_MapStringInnerAliasHelper.json | 20 + ...ase_maps_MapStringInnerAliasMapHelper.json | 20 + ...aps_MapStringInnerAliasSequenceHelper.json | 20 + ...Case_maps_MapStringInnerBitMaskHelper.json | 20 + .../Case_maps_MapStringInnerBitsetHelper.json | 20 + .../Case_maps_MapStringInnerEnumHelper.json | 20 + ...se_maps_MapStringInnerStructureHelper.json | 20 + .../Case_maps_MapStringInnerUnionHelper.json | 20 + .../Case_maps_MapStringLong.json | 20 + .../Case_maps_MapStringLongDouble.json | 20 + .../Case_maps_MapStringLongLong.json | 20 + .../Case_maps_MapStringOctet.json | 20 + .../Case_maps_MapStringShort.json | 20 + .../Case_maps_MapStringString.json | 20 + .../Case_maps_MapStringULong.json | 20 + .../Case_maps_MapStringULongLong.json | 20 + .../Case_maps_MapStringUShort.json | 20 + .../Case_maps_MapStringWChar.json | 20 + .../Case_maps_MapStringWString.json | 20 + .../Case_maps_MapULongBoolean.json | 20 + .../Case_maps_MapULongChar.json | 20 + .../Case_maps_MapULongDouble.json | 20 + .../Case_maps_MapULongFloat.json | 20 + ...se_maps_MapULongInnerAliasArrayHelper.json | 20 + ...MapULongInnerAliasBoundedStringHelper.json | 20 + ...apULongInnerAliasBoundedWStringHelper.json | 20 + .../Case_maps_MapULongInnerAliasHelper.json | 20 + ...Case_maps_MapULongInnerAliasMapHelper.json | 20 + ...maps_MapULongInnerAliasSequenceHelper.json | 20 + .../Case_maps_MapULongInnerBitMaskHelper.json | 20 + .../Case_maps_MapULongInnerBitsetHelper.json | 20 + .../Case_maps_MapULongInnerEnumHelper.json | 20 + ...ase_maps_MapULongInnerStructureHelper.json | 20 + .../Case_maps_MapULongInnerUnionHelper.json | 20 + .../Case_maps_MapULongLong.json | 20 + .../Case_maps_MapULongLongBoolean.json | 20 + .../Case_maps_MapULongLongChar.json | 20 + .../Case_maps_MapULongLongFloat.json | 20 + ...aps_MapULongLongInnerAliasArrayHelper.json | 20 + ...LongLongInnerAliasBoundedStringHelper.json | 20 + ...ongLongInnerAliasBoundedWStringHelper.json | 20 + ...ase_maps_MapULongLongInnerAliasHelper.json | 20 + ..._maps_MapULongLongInnerAliasMapHelper.json | 20 + ..._MapULongLongInnerAliasSequenceHelper.json | 20 + ...e_maps_MapULongLongInnerBitMaskHelper.json | 20 + ...se_maps_MapULongLongInnerBitsetHelper.json | 20 + ...Case_maps_MapULongLongInnerEnumHelper.json | 20 + ...maps_MapULongLongInnerStructureHelper.json | 20 + ...ase_maps_MapULongLongInnerUnionHelper.json | 20 + .../Case_maps_MapULongLongLong.json | 20 + .../Case_maps_MapULongLongLongDouble.json | 20 + .../Case_maps_MapULongLongLongLong.json | 20 + .../Case_maps_MapULongLongOctet.json | 20 + .../Case_maps_MapULongLongShort.json | 20 + .../Case_maps_MapULongLongString.json | 20 + .../Case_maps_MapULongLongULong.json | 20 + .../Case_maps_MapULongLongULongLong.json | 20 + .../Case_maps_MapULongLongUShort.json | 20 + .../Case_maps_MapULongLongWChar.json | 20 + .../Case_maps_MapULongLongWString.json | 20 + .../Case_maps_MapULongOctet.json | 20 + .../Case_maps_MapULongShort.json | 20 + .../Case_maps_MapULongString.json | 20 + .../Case_maps_MapULongULong.json | 20 + .../Case_maps_MapULongULongLong.json | 20 + .../Case_maps_MapULongUShort.json | 20 + .../Case_maps_MapULongWChar.json | 20 + .../Case_maps_MapULongWString.json | 20 + .../Case_maps_MapUShortBoolean.json | 20 + .../Case_maps_MapUShortChar.json | 20 + .../Case_maps_MapUShortDouble.json | 20 + .../Case_maps_MapUShortFloat.json | 20 + ...e_maps_MapUShortInnerAliasArrayHelper.json | 20 + ...apUShortInnerAliasBoundedStringHelper.json | 20 + ...pUShortInnerAliasBoundedWStringHelper.json | 20 + .../Case_maps_MapUShortInnerAliasHelper.json | 20 + ...ase_maps_MapUShortInnerAliasMapHelper.json | 20 + ...aps_MapUShortInnerAliasSequenceHelper.json | 20 + ...Case_maps_MapUShortInnerBitMaskHelper.json | 20 + .../Case_maps_MapUShortInnerBitsetHelper.json | 20 + .../Case_maps_MapUShortInnerEnumHelper.json | 20 + ...se_maps_MapUShortInnerStructureHelper.json | 20 + .../Case_maps_MapUShortInnerUnionHelper.json | 20 + .../Case_maps_MapUShortLong.json | 20 + .../Case_maps_MapUShortLongDouble.json | 20 + .../Case_maps_MapUShortLongLong.json | 20 + .../Case_maps_MapUShortOctet.json | 20 + .../Case_maps_MapUShortShort.json | 20 + .../Case_maps_MapUShortString.json | 20 + .../Case_maps_MapUShortULong.json | 20 + .../Case_maps_MapUShortULongLong.json | 20 + .../Case_maps_MapUShortUShort.json | 20 + .../Case_maps_MapUShortWChar.json | 20 + .../Case_maps_MapUShortWString.json | 20 + .../Case_maps_MapWStringBoolean.json | 20 + .../Case_maps_MapWStringChar.json | 20 + .../Case_maps_MapWStringDouble.json | 20 + .../Case_maps_MapWStringFloat.json | 20 + ..._maps_MapWStringInnerAliasArrayHelper.json | 20 + ...pWStringInnerAliasBoundedStringHelper.json | 20 + ...WStringInnerAliasBoundedWStringHelper.json | 20 + .../Case_maps_MapWStringInnerAliasHelper.json | 20 + ...se_maps_MapWStringInnerAliasMapHelper.json | 20 + ...ps_MapWStringInnerAliasSequenceHelper.json | 20 + ...ase_maps_MapWStringInnerBitMaskHelper.json | 20 + ...Case_maps_MapWStringInnerBitsetHelper.json | 20 + .../Case_maps_MapWStringInnerEnumHelper.json | 20 + ...e_maps_MapWStringInnerStructureHelper.json | 20 + .../Case_maps_MapWStringInnerUnionHelper.json | 20 + .../Case_maps_MapWStringLong.json | 20 + .../Case_maps_MapWStringLongDouble.json | 20 + .../Case_maps_MapWStringLongLong.json | 20 + .../Case_maps_MapWStringOctet.json | 20 + .../Case_maps_MapWStringShort.json | 20 + .../Case_maps_MapWStringString.json | 20 + .../Case_maps_MapWStringULong.json | 20 + .../Case_maps_MapWStringULongLong.json | 20 + .../Case_maps_MapWStringUShort.json | 20 + .../Case_maps_MapWStringWChar.json | 20 + .../Case_maps_MapWStringWString.json | 20 + .../Case_member_id_AutoidDefault.json | 20 + .../Case_member_id_AutoidHash.json | 20 + .../Case_member_id_AutoidSequential.json | 20 + .../Case_member_id_DerivedAutoidDefault.json | 20 + .../Case_member_id_DerivedAutoidHash.json | 20 + ...ase_member_id_DerivedAutoidSequential.json | 20 + ...ember_id_DerivedEmptyAutoidSequential.json | 20 + .../Case_member_id_FixHashid.json | 20 + .../Case_member_id_FixHashidDefault.json | 20 + .../Case_member_id_FixHexId.json | 20 + .../TypesTestsCases/Case_member_id_FixId.json | 20 + .../Case_member_id_FixMix.json | 20 + .../Case_mutable_MutableBooleanStruct.json | 20 + .../Case_mutable_MutableCharStruct.json | 20 + .../Case_mutable_MutableDoubleStruct.json | 20 + ...mutable_MutableEmptyInheritanceStruct.json | 20 + .../Case_mutable_MutableEmptyStruct.json | 20 + ...table_MutableExtensibilityInheritance.json | 20 + .../Case_mutable_MutableFloatStruct.json | 20 + ...mutable_MutableInheritanceEmptyStruct.json | 20 + ...Case_mutable_MutableInheritanceStruct.json | 20 + .../Case_mutable_MutableLongDoubleStruct.json | 20 + .../Case_mutable_MutableLongLongStruct.json | 20 + .../Case_mutable_MutableLongStruct.json | 20 + .../Case_mutable_MutableOctetStruct.json | 20 + .../Case_mutable_MutableShortStruct.json | 20 + .../Case_mutable_MutableULongLongStruct.json | 20 + .../Case_mutable_MutableULongStruct.json | 20 + .../Case_mutable_MutableUShortStruct.json | 20 + .../Case_mutable_MutableUnionStruct.json | 20 + .../Case_mutable_MutableWCharStruct.json | 20 + .../Case_optional_InnerStructOptional.json | 20 + ...optional_array_short_align_1_optional.json | 20 + ...optional_array_short_align_2_optional.json | 20 + ...optional_array_short_align_4_optional.json | 20 + .../Case_optional_array_short_optional.json | 20 + ...ase_optional_boolean_align_1_optional.json | 20 + ...ase_optional_boolean_align_2_optional.json | 20 + ...ase_optional_boolean_align_4_optional.json | 20 + .../Case_optional_boolean_optional.json | 20 + .../Case_optional_char_align_1_optional.json | 20 + .../Case_optional_char_align_2_optional.json | 20 + .../Case_optional_char_align_4_optional.json | 20 + .../Case_optional_char_optional.json | 20 + ...Case_optional_double_align_1_optional.json | 20 + ...Case_optional_double_align_2_optional.json | 20 + ...Case_optional_double_align_4_optional.json | 20 + .../Case_optional_double_optional.json | 20 + .../Case_optional_float_align_1_optional.json | 20 + .../Case_optional_float_align_2_optional.json | 20 + .../Case_optional_float_align_4_optional.json | 20 + .../Case_optional_float_optional.json | 20 + .../Case_optional_long_align_1_optional.json | 20 + .../Case_optional_long_align_2_optional.json | 20 + .../Case_optional_long_align_4_optional.json | 20 + .../Case_optional_long_optional.json | 20 + ..._optional_longdouble_align_1_optional.json | 20 + ..._optional_longdouble_align_2_optional.json | 20 + ..._optional_longdouble_align_4_optional.json | 20 + .../Case_optional_longdouble_optional.json | 20 + ...se_optional_longlong_align_1_optional.json | 20 + ...se_optional_longlong_align_2_optional.json | 20 + ...se_optional_longlong_align_4_optional.json | 20 + .../Case_optional_longlong_optional.json | 20 + ...e_optional_map_short_align_1_optional.json | 20 + ...e_optional_map_short_align_2_optional.json | 20 + ...e_optional_map_short_align_4_optional.json | 20 + .../Case_optional_map_short_optional.json | 20 + .../Case_optional_octet_align_1_optional.json | 20 + .../Case_optional_octet_align_2_optional.json | 20 + .../Case_optional_octet_align_4_optional.json | 20 + .../Case_optional_octet_optional.json | 20 + ..._optional_opt_struct_align_1_optional.json | 20 + ..._optional_opt_struct_align_2_optional.json | 20 + ..._optional_opt_struct_align_4_optional.json | 20 + .../Case_optional_opt_struct_optional.json | 20 + ...ional_sequence_short_align_1_optional.json | 20 + ...ional_sequence_short_align_2_optional.json | 20 + ...ional_sequence_short_align_4_optional.json | 20 + ...Case_optional_sequence_short_optional.json | 20 + .../Case_optional_short_align_1_optional.json | 20 + .../Case_optional_short_align_2_optional.json | 20 + .../Case_optional_short_align_4_optional.json | 20 + .../Case_optional_short_optional.json | 20 + ...ional_string_bounded_align_1_optional.json | 20 + ...ional_string_bounded_align_2_optional.json | 20 + ...ional_string_bounded_align_4_optional.json | 20 + ...Case_optional_string_bounded_optional.json | 20 + ...nal_string_unbounded_align_1_optional.json | 20 + ...nal_string_unbounded_align_2_optional.json | 20 + ...nal_string_unbounded_align_4_optional.json | 20 + ...se_optional_string_unbounded_optional.json | 20 + ...Case_optional_struct_align_1_optional.json | 20 + ...Case_optional_struct_align_2_optional.json | 20 + ...Case_optional_struct_align_4_optional.json | 20 + .../Case_optional_struct_optional.json | 20 + .../Case_optional_ulong_align_1_optional.json | 20 + .../Case_optional_ulong_align_2_optional.json | 20 + .../Case_optional_ulong_align_4_optional.json | 20 + .../Case_optional_ulong_optional.json | 20 + ...e_optional_ulonglong_align_1_optional.json | 20 + ...e_optional_ulonglong_align_2_optional.json | 20 + ...e_optional_ulonglong_align_4_optional.json | 20 + .../Case_optional_ulonglong_optional.json | 20 + ...Case_optional_ushort_align_1_optional.json | 20 + ...Case_optional_ushort_align_2_optional.json | 20 + ...Case_optional_ushort_align_4_optional.json | 20 + .../Case_optional_ushort_optional.json | 20 + .../Case_optional_wchar_align_1_optional.json | 20 + .../Case_optional_wchar_align_2_optional.json | 20 + .../Case_optional_wchar_align_4_optional.json | 20 + .../Case_optional_wchar_optional.json | 20 + .../Case_primitives_BooleanStruct.json | 20 + .../Case_primitives_CharStruct.json | 20 + .../Case_primitives_DoubleStruct.json | 20 + .../Case_primitives_FloatStruct.json | 20 + .../Case_primitives_Int16Struct.json | 20 + .../Case_primitives_Int32Struct.json | 20 + .../Case_primitives_Int64Struct.json | 20 + .../Case_primitives_Int8Struct.json | 20 + .../Case_primitives_LongDoubleStruct.json | 20 + .../Case_primitives_LongLongStruct.json | 20 + .../Case_primitives_LongStruct.json | 20 + .../Case_primitives_OctetStruct.json | 20 + .../Case_primitives_ShortStruct.json | 20 + .../Case_primitives_ULongLongStruct.json | 20 + .../Case_primitives_ULongStruct.json | 20 + .../Case_primitives_UShortStruct.json | 20 + .../Case_primitives_Uint16Struct.json | 20 + .../Case_primitives_Uint32Struct.json | 20 + .../Case_primitives_Uint64Struct.json | 20 + .../Case_primitives_Uint8Struct.json | 20 + .../Case_primitives_WCharStruct.json | 20 + .../Case_sequences_BoundedBigSequences.json | 20 + .../Case_sequences_BoundedSmallSequences.json | 20 + .../Case_sequences_SequenceAlias.json | 20 + .../Case_sequences_SequenceBitMask.json | 20 + .../Case_sequences_SequenceBitset.json | 20 + .../Case_sequences_SequenceBoolean.json | 20 + .../Case_sequences_SequenceChar.json | 20 + .../Case_sequences_SequenceDouble.json | 20 + .../Case_sequences_SequenceEnum.json | 20 + .../Case_sequences_SequenceFloat.json | 20 + .../Case_sequences_SequenceLong.json | 20 + .../Case_sequences_SequenceLongDouble.json | 20 + .../Case_sequences_SequenceLongLong.json | 20 + .../Case_sequences_SequenceMap.json | 20 + .../Case_sequences_SequenceOctet.json | 20 + .../Case_sequences_SequenceSequence.json | 20 + .../Case_sequences_SequenceShort.json | 20 + .../Case_sequences_SequenceShortArray.json | 20 + .../Case_sequences_SequenceString.json | 20 + .../Case_sequences_SequenceStringBounded.json | 20 + .../Case_sequences_SequenceStructure.json | 20 + .../Case_sequences_SequenceULong.json | 20 + .../Case_sequences_SequenceULongLong.json | 20 + .../Case_sequences_SequenceUShort.json | 20 + .../Case_sequences_SequenceUnion.json | 20 + .../Case_sequences_SequenceWChar.json | 20 + .../Case_sequences_SequenceWString.json | 20 + ...Case_sequences_SequenceWStringBounded.json | 20 + .../Case_strings_LargeStringStruct.json | 20 + .../Case_strings_LargeWStringStruct.json | 20 + .../Case_strings_SmallStringStruct.json | 20 + .../Case_strings_SmallWStringStruct.json | 20 + .../Case_strings_StringStruct.json | 20 + .../Case_strings_WStringStruct.json | 20 + .../Case_structures_StructAlias.json | 20 + .../Case_structures_StructBitMask.json | 20 + .../Case_structures_StructBitset.json | 20 + .../Case_structures_StructBoolean.json | 20 + .../Case_structures_StructBoundedString.json | 20 + .../Case_structures_StructBoundedWString.json | 20 + .../Case_structures_StructChar16.json | 20 + .../Case_structures_StructChar8.json | 20 + .../Case_structures_StructDouble.json | 20 + .../Case_structures_StructEmpty.json | 20 + .../Case_structures_StructEnum.json | 20 + .../Case_structures_StructFloat.json | 20 + .../Case_structures_StructLong.json | 20 + .../Case_structures_StructLongDouble.json | 20 + .../Case_structures_StructLongLong.json | 20 + .../Case_structures_StructMap.json | 20 + .../Case_structures_StructOctet.json | 20 + .../Case_structures_StructSequence.json | 20 + .../Case_structures_StructShort.json | 20 + .../Case_structures_StructShortArray.json | 20 + .../Case_structures_StructString.json | 20 + .../Case_structures_StructStructure.json | 20 + .../Case_structures_StructUnion.json | 20 + .../Case_structures_StructUnsignedLong.json | 20 + ...ase_structures_StructUnsignedLongLong.json | 20 + .../Case_structures_StructUnsignedShort.json | 20 + .../Case_structures_StructWString.json | 20 + .../Case_structures_Structures.json | 20 + .../TypesTestsCases/Case_structures_bar.json | 20 + .../TypesTestsCases/Case_structures_foo.json | 20 + .../Case_structures_root1.json | 20 + .../Case_structures_root2.json | 20 + .../Case_unions_UnionArray.json | 20 + .../Case_unions_UnionBoolean.json | 20 + .../Case_unions_UnionBoundedString.json | 20 + .../Case_unions_UnionBoundedWString.json | 20 + .../Case_unions_UnionChar.json | 20 + .../Case_unions_UnionDiscriminatorAlias.json | 20 + ...Case_unions_UnionDiscriminatorBoolean.json | 20 + .../Case_unions_UnionDiscriminatorChar.json | 20 + .../Case_unions_UnionDiscriminatorEnum.json | 20 + ...se_unions_UnionDiscriminatorEnumLabel.json | 20 + .../Case_unions_UnionDiscriminatorLong.json | 20 + ...ase_unions_UnionDiscriminatorLongLong.json | 20 + .../Case_unions_UnionDiscriminatorOctet.json | 20 + .../Case_unions_UnionDiscriminatorShort.json | 20 + .../Case_unions_UnionDiscriminatorULong.json | 20 + ...se_unions_UnionDiscriminatorULongLong.json | 20 + .../Case_unions_UnionDiscriminatorUShort.json | 20 + .../Case_unions_UnionDiscriminatorWChar.json | 20 + .../Case_unions_UnionDouble.json | 20 + .../Case_unions_UnionFloat.json | 20 + .../Case_unions_UnionInnerAliasHelper.json | 20 + .../Case_unions_UnionInnerBitMaskHelper.json | 20 + .../Case_unions_UnionInnerBitsetHelper.json | 20 + .../Case_unions_UnionInnerEnumHelper.json | 20 + ...Case_unions_UnionInnerStructureHelper.json | 20 + .../Case_unions_UnionInnerUnionHelper.json | 20 + .../Case_unions_UnionLong.json | 20 + .../Case_unions_UnionLongDouble.json | 20 + .../Case_unions_UnionLongLong.json | 20 + .../TypesTestsCases/Case_unions_UnionMap.json | 20 + .../Case_unions_UnionOctet.json | 20 + .../Case_unions_UnionSequence.json | 20 + .../Case_unions_UnionShort.json | 20 + .../Case_unions_UnionString.json | 20 + .../Case_unions_UnionULong.json | 20 + .../Case_unions_UnionULongLong.json | 20 + .../Case_unions_UnionUShort.json | 20 + .../Case_unions_UnionWChar.json | 20 + .../Case_unions_UnionWString.json | 20 + test/dds/xtypes/test_build.py | 2 +- .../xtypes/update_header_and_create_cases.py | 211 ++++ .../scripts/update_generated_code_from_idl.sh | 1 + 811 files changed, 16893 insertions(+), 1165 deletions(-) delete mode 100644 test/dds-types-test/relative_path_include.hpp delete mode 100644 test/dds-types-test/relative_path_includeCdrAux.hpp delete mode 100644 test/dds-types-test/relative_path_includeCdrAux.ipp delete mode 100644 test/dds-types-test/relative_path_includePubSubTypes.cxx delete mode 100644 test/dds-types-test/relative_path_includePubSubTypes.hpp delete mode 100644 test/dds-types-test/relative_path_includeTypeObjectSupport.cxx rename test/dds/xtypes/{ => BaseCases}/Case0.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case1.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case10.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case2.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case3.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case4.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case5.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case6.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case7.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case8.json (100%) rename test/dds/xtypes/{ => BaseCases}/Case9.json (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType1.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType1.idl (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType1CdrAux.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType1CdrAux.ipp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType1PubSubTypes.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType1PubSubTypes.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType1TypeObjectSupport.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType1TypeObjectSupport.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType2.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType2.idl (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType2CdrAux.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType2CdrAux.ipp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType2PubSubTypes.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType2PubSubTypes.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType2TypeObjectSupport.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType2TypeObjectSupport.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType3.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType3.idl (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType3CdrAux.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType3CdrAux.ipp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType3PubSubTypes.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType3PubSubTypes.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType3TypeObjectSupport.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsType3TypeObjectSupport.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeBig.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeBig.idl (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeBigCdrAux.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeBigCdrAux.ipp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeBigPubSubTypes.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeBigPubSubTypes.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeBigTypeObjectSupport.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeBigTypeObjectSupport.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeDep.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeDep.idl (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeDepCdrAux.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeDepCdrAux.ipp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeDepPubSubTypes.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeDepPubSubTypes.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeDepTypeObjectSupport.cxx (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeDepTypeObjectSupport.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeNoTypeObject.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeNoTypeObject.idl (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeNoTypeObjectCdrAux.hpp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeNoTypeObjectCdrAux.ipp (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx (98%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeNoTypeObjectPubSubTypes.h (100%) rename test/dds/xtypes/{idl => BaseCasesIDLs}/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp (100%) create mode 100644 test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.cxx rename test/{dds-types-test/relative_path_includeTypeObjectSupport.hpp => dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp} (78%) create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasAlias.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasArray.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitmask.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitset.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBool.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar16.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar8.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasEnum.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat128.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat32.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat64.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt16.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt32.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt64.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMultiArray.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasSequence.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString16.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString8.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt32.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt64.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUint16.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUnion.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_annotations_AnnotatedStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_annotations_EmptyAnnotatedStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableBooleanStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableExtensibilityInheritance.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableFloatStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceEmptyStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableOctetStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUnionStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableWCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayAlias.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitMask.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitset.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayEnum.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionAlias.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitMask.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitset.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionEnum.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsAlias.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitMask.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitSet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsEnum.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsSequence.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUnion.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionSequence.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUnion.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySequence.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShortArray.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsAlias.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitMask.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitset.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsEnum.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsSequence.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShortArray.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnion.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUnion.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedBigArrays.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedSmallArrays.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_bitsets_BitsetStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_constants_ConstsLiteralsStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardDeclarationsRecursiveStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledCommonNameStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardDeclarationsRecursiveStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_enumerations_BitMaskStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_enumerations_BoundedBitMaskStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_enumerations_EnumStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_InnerStructExternal.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_array_short_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_boolean_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_char_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_double_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ext_and_inner_struct_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ext_struct_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_float_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_long_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_longdouble_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_longlong_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_map_short_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_octet_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_recursive_structure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_1.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_2.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_recursive_union_container.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_sequence_short_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_short_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_string_bounded_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_string_unbounded_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_struct_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_struct_external_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ulong_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ulonglong_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ushort_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_wchar_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalBooleanStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalExtensibilityInheritance.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalFloatStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalLongDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalLongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalOctetStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalULongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalULongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalUShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalUnionStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalWCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_InheritanceEmptyStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerEmptyStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_BitsetsChildInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerEmptyStructureHelperChild.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChild.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChildChild.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChild.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChildChild.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_StructAliasInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_StructuresInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_InheritanceKeyedEmptyStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedBooleanStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedFloatStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedOctetStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedUShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedWCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_BoundedLargeMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_BoundedSmallMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongLongValueDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongDoubleValue.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongLongValue.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyDoubleValue.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyLongValue.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasArrayHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedWStringHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasMapHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasSequenceHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidDefault.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidHash.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidSequential.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidDefault.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidHash.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidSequential.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedEmptyAutoidSequential.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashid.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashidDefault.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixHexId.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixId.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixMix.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableBooleanStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableExtensibilityInheritance.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableFloatStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceEmptyStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableOctetStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUnionStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableWCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_InnerStructOptional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_array_short_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_boolean_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_char_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_char_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_char_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_char_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_double_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_double_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_double_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_double_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_float_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_float_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_float_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_float_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_long_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_long_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_long_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_long_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longlong_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_map_short_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_octet_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_short_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_short_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_short_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_short_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_struct_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulong_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ushort_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_1_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_2_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_4_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_wchar_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_BooleanStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_CharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_DoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_FloatStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Int16Struct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Int32Struct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Int64Struct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Int8Struct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_LongDoubleStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_LongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_LongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_OctetStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_ShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_ULongLongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_ULongStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_UShortStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Uint16Struct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Uint32Struct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Uint64Struct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Uint8Struct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_WCharStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedBigSequences.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedSmallSequences.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceAlias.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitMask.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitset.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceEnum.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceSequence.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShortArray.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStringBounded.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUnion.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWStringBounded.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_LargeStringStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_LargeWStringStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_SmallStringStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_SmallWStringStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_StringStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_WStringStruct.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructAlias.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBitMask.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBitset.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructChar16.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructChar8.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructEmpty.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructEnum.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructSequence.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructShortArray.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructStructure.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructUnion.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_Structures.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_bar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_foo.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_root1.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_root2.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionArray.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorAlias.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorBoolean.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnum.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnumLabel.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionFloat.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerAliasHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitMaskHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitsetHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerEnumHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerStructureHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerUnionHelper.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongDouble.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionMap.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionOctet.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionSequence.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionULong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionULongLong.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionUShort.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionWChar.json create mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionWString.json create mode 100755 test/dds/xtypes/update_header_and_create_cases.py diff --git a/test/dds-types-test/relative_path_include.hpp b/test/dds-types-test/relative_path_include.hpp deleted file mode 100644 index 92b0f212674..00000000000 --- a/test/dds-types-test/relative_path_include.hpp +++ /dev/null @@ -1,179 +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 relative_path_include.hpp - * This header file contains the declaration of the described types in the IDL file. - * - * This file was generated by the tool fastddsgen. - */ - -#ifndef FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_HPP -#define FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_HPP - -#include -#include -#include "../IDL/helpers/basic_inner_types.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 - -#if defined(_WIN32) -#if defined(EPROSIMA_USER_DLL_EXPORT) -#if defined(RELATIVE_PATH_INCLUDE_SOURCE) -#define RELATIVE_PATH_INCLUDE_DllAPI __declspec( dllexport ) -#else -#define RELATIVE_PATH_INCLUDE_DllAPI __declspec( dllimport ) -#endif // RELATIVE_PATH_INCLUDE_SOURCE -#else -#define RELATIVE_PATH_INCLUDE_DllAPI -#endif // EPROSIMA_USER_DLL_EXPORT -#else -#define RELATIVE_PATH_INCLUDE_DllAPI -#endif // _WIN32 - -/*! - * @brief This class represents the structure RelativePathIncludeStruct defined by the user in the IDL file. - * @ingroup relative_path_include - */ -class RelativePathIncludeStruct -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport RelativePathIncludeStruct() - { - } - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~RelativePathIncludeStruct() - { - } - - /*! - * @brief Copy constructor. - * @param x Reference to the object RelativePathIncludeStruct that will be copied. - */ - eProsima_user_DllExport RelativePathIncludeStruct( - const RelativePathIncludeStruct& x) - { - m_value = x.m_value; - - } - - /*! - * @brief Move constructor. - * @param x Reference to the object RelativePathIncludeStruct that will be copied. - */ - eProsima_user_DllExport RelativePathIncludeStruct( - RelativePathIncludeStruct&& x) noexcept - { - m_value = x.m_value; - } - - /*! - * @brief Copy assignment. - * @param x Reference to the object RelativePathIncludeStruct that will be copied. - */ - eProsima_user_DllExport RelativePathIncludeStruct& operator =( - const RelativePathIncludeStruct& x) - { - - m_value = x.m_value; - - return *this; - } - - /*! - * @brief Move assignment. - * @param x Reference to the object RelativePathIncludeStruct that will be copied. - */ - eProsima_user_DllExport RelativePathIncludeStruct& operator =( - RelativePathIncludeStruct&& x) noexcept - { - - m_value = x.m_value; - return *this; - } - - /*! - * @brief Comparison operator. - * @param x RelativePathIncludeStruct object to compare. - */ - eProsima_user_DllExport bool operator ==( - const RelativePathIncludeStruct& x) const - { - return (m_value == x.m_value); - } - - /*! - * @brief Comparison operator. - * @param x RelativePathIncludeStruct object to compare. - */ - eProsima_user_DllExport bool operator !=( - const RelativePathIncludeStruct& x) const - { - return !(*this == x); - } - - /*! - * @brief This function sets a value in member value - * @param _value New value for member value - */ - eProsima_user_DllExport void value( - InnerEnumHelper _value) - { - m_value = _value; - } - - /*! - * @brief This function returns the value of member value - * @return Value of member value - */ - eProsima_user_DllExport InnerEnumHelper value() const - { - return m_value; - } - - /*! - * @brief This function returns a reference to member value - * @return Reference to member value - */ - eProsima_user_DllExport InnerEnumHelper& value() - { - return m_value; - } - - - -private: - - InnerEnumHelper m_value{InnerEnumHelper::ENUM_VALUE_1}; - -}; - -#endif // _FAST_DDS_GENERATED_RELATIVE_PATH_INCLUDE_HPP_ - - diff --git a/test/dds-types-test/relative_path_includeCdrAux.hpp b/test/dds-types-test/relative_path_includeCdrAux.hpp deleted file mode 100644 index a8c51274052..00000000000 --- a/test/dds-types-test/relative_path_includeCdrAux.hpp +++ /dev/null @@ -1,55 +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 relative_path_includeCdrAux.hpp - * This source file contains some definitions of CDR related functions. - * - * This file was generated by the tool fastddsgen. - */ - -#ifndef FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_HPP -#define FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_HPP - -#include "relative_path_include.hpp" - -constexpr uint32_t RelativePathIncludeStruct_max_cdr_typesize {8UL}; -constexpr uint32_t RelativePathIncludeStruct_max_key_cdr_typesize {0UL}; - - - - - - - - - - - -namespace eprosima { -namespace fastcdr { - -class Cdr; -class CdrSizeCalculator; - -eProsima_user_DllExport void serialize_key( - eprosima::fastcdr::Cdr& scdr, - const RelativePathIncludeStruct& data); - - -} // namespace fastcdr -} // namespace eprosima - -#endif // FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_HPP - diff --git a/test/dds-types-test/relative_path_includeCdrAux.ipp b/test/dds-types-test/relative_path_includeCdrAux.ipp deleted file mode 100644 index 19dcc4baad6..00000000000 --- a/test/dds-types-test/relative_path_includeCdrAux.ipp +++ /dev/null @@ -1,121 +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 relative_path_includeCdrAux.ipp - * This source file contains some declarations of CDR related functions. - * - * This file was generated by the tool fastddsgen. - */ - -#ifndef FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_IPP -#define FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_IPP - -#include "relative_path_includeCdrAux.hpp" - -#include -#include - - -#include -using namespace eprosima::fastcdr::exception; - -namespace eprosima { -namespace fastcdr { - -template<> -eProsima_user_DllExport size_t calculate_serialized_size( - eprosima::fastcdr::CdrSizeCalculator& calculator, - const RelativePathIncludeStruct& data, - size_t& current_alignment) -{ - static_cast(data); - - eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); - size_t calculated_size {calculator.begin_calculate_type_serialized_size( - eprosima::fastcdr::CdrVersion::XCDRv2 == calculator.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, - current_alignment)}; - - - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.value(), current_alignment); - - - calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); - - return calculated_size; -} - -template<> -eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& scdr, - const RelativePathIncludeStruct& data) -{ - eprosima::fastcdr::Cdr::state current_state(scdr); - scdr.begin_serialize_type(current_state, - eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); - - scdr - << eprosima::fastcdr::MemberId(0) << data.value() -; - scdr.end_serialize_type(current_state); -} - -template<> -eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr, - RelativePathIncludeStruct& data) -{ - cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, - [&data](eprosima::fastcdr::Cdr& dcdr, const eprosima::fastcdr::MemberId& mid) -> bool - { - bool ret_value = true; - switch (mid.id) - { - case 0: - dcdr >> data.value(); - break; - - default: - ret_value = false; - break; - } - return ret_value; - }); -} - -void serialize_key( - eprosima::fastcdr::Cdr& scdr, - const RelativePathIncludeStruct& data) -{ - - static_cast(scdr); - static_cast(data); - scdr << data.value(); - -} - - - -} // namespace fastcdr -} // namespace eprosima - -#endif // FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_IPP - diff --git a/test/dds-types-test/relative_path_includePubSubTypes.cxx b/test/dds-types-test/relative_path_includePubSubTypes.cxx deleted file mode 100644 index 5ba34503087..00000000000 --- a/test/dds-types-test/relative_path_includePubSubTypes.cxx +++ /dev/null @@ -1,217 +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 relative_path_includePubSubTypes.cpp - * This header file contains the implementation of the serialization functions. - * - * This file was generated by the tool fastddsgen. - */ - -#include "relative_path_includePubSubTypes.hpp" - -#include -#include - -#include "relative_path_includeCdrAux.hpp" -#include "relative_path_includeTypeObjectSupport.hpp" - -using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; -using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; -using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; - -RelativePathIncludeStructPubSubType::RelativePathIncludeStructPubSubType() -{ - set_name("RelativePathIncludeStruct"); - uint32_t type_size = RelativePathIncludeStruct_max_cdr_typesize; - type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ - max_serialized_type_size = type_size + 4; /*encapsulation*/ - is_compute_key_provided = false; - uint32_t key_length = RelativePathIncludeStruct_max_key_cdr_typesize > 16 ? RelativePathIncludeStruct_max_key_cdr_typesize : 16; - key_buffer_ = reinterpret_cast(malloc(key_length)); - memset(key_buffer_, 0, key_length); -} - -RelativePathIncludeStructPubSubType::~RelativePathIncludeStructPubSubType() -{ - if (key_buffer_ != nullptr) - { - free(key_buffer_); - } -} - -bool RelativePathIncludeStructPubSubType::serialize( - const void* const data, - SerializedPayload_t& payload, - DataRepresentationId_t data_representation) -{ - const RelativePathIncludeStruct* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.max_size); - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); - payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; - ser.set_encoding_flag( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : - eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); - - try - { - // Serialize encapsulation - ser.serialize_encapsulation(); - // Serialize the object. - ser << *p_type; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return false; - } - - // Get the serialized length - payload.length = static_cast(ser.get_serialized_data_length()); - return true; -} - -bool RelativePathIncludeStructPubSubType::deserialize( - SerializedPayload_t& payload, - void* data) -{ - try - { - // Convert DATA to pointer of your type - RelativePathIncludeStruct* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload.data), payload.length); - - // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); - - // Deserialize encapsulation. - deser.read_encapsulation(); - payload.encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; - - // Deserialize the object. - deser >> *p_type; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return false; - } - - return true; -} - -uint32_t RelativePathIncludeStructPubSubType::calculate_serialized_size( - const void* const data, - DataRepresentationId_t data_representation) -{ - try - { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; - } - catch (eprosima::fastcdr::exception::Exception& /*exception*/) - { - return 0; - } -} - -void* RelativePathIncludeStructPubSubType::create_data() -{ - return reinterpret_cast(new RelativePathIncludeStruct()); -} - -void RelativePathIncludeStructPubSubType::delete_data( - void* data) -{ - delete(reinterpret_cast(data)); -} - -bool RelativePathIncludeStructPubSubType::compute_key( - SerializedPayload_t& payload, - InstanceHandle_t& handle, - bool force_md5) -{ - if (!is_compute_key_provided) - { - return false; - } - - RelativePathIncludeStruct data; - if (deserialize(payload, static_cast(&data))) - { - return compute_key(static_cast(&data), handle, force_md5); - } - - return false; -} - -bool RelativePathIncludeStructPubSubType::compute_key( - const void* const data, - InstanceHandle_t& handle, - bool force_md5) -{ - if (!is_compute_key_provided) - { - return false; - } - - const RelativePathIncludeStruct* p_type = static_cast(data); - - // Object that manages the raw buffer. - eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), - RelativePathIncludeStruct_max_key_cdr_typesize); - - // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2); - ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); - eprosima::fastcdr::serialize_key(ser, *p_type); - if (force_md5 || RelativePathIncludeStruct_max_key_cdr_typesize > 16) - { - md5_.init(); - md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); - md5_.finalize(); - for (uint8_t i = 0; i < 16; ++i) - { - handle.value[i] = md5_.digest[i]; - } - } - else - { - for (uint8_t i = 0; i < 16; ++i) - { - handle.value[i] = key_buffer_[i]; - } - } - return true; -} - -void RelativePathIncludeStructPubSubType::register_type_object_representation() -{ - register_RelativePathIncludeStruct_type_identifier(type_identifiers_); -} - - -// Include auxiliary functions like for serializing/deserializing. -#include "relative_path_includeCdrAux.ipp" diff --git a/test/dds-types-test/relative_path_includePubSubTypes.hpp b/test/dds-types-test/relative_path_includePubSubTypes.hpp deleted file mode 100644 index 95a3d1eeffd..00000000000 --- a/test/dds-types-test/relative_path_includePubSubTypes.hpp +++ /dev/null @@ -1,124 +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 relative_path_includePubSubTypes.hpp - * This header file contains the declaration of the serialization functions. - * - * This file was generated by the tool fastddsgen. - */ - - -#ifndef FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_PUBSUBTYPES_HPP -#define FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_PUBSUBTYPES_HPP - -#include -#include -#include -#include -#include - -#include "relative_path_include.hpp" - -#include "../IDL/helpers/basic_inner_typesPubSubTypes.hpp" - -#if !defined(FASTDDS_GEN_API_VER) || (FASTDDS_GEN_API_VER != 3) -#error \ - Generated relative_path_include is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. -#endif // FASTDDS_GEN_API_VER - - -/*! - * @brief This class represents the TopicDataType of the type RelativePathIncludeStruct defined by the user in the IDL file. - * @ingroup relative_path_include - */ -class RelativePathIncludeStructPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: - - typedef RelativePathIncludeStruct type; - - eProsima_user_DllExport RelativePathIncludeStructPubSubType(); - - eProsima_user_DllExport ~RelativePathIncludeStructPubSubType() override; - - eProsima_user_DllExport bool serialize( - const void* const data, - eprosima::fastdds::rtps::SerializedPayload_t& payload, - eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - - eProsima_user_DllExport bool deserialize( - eprosima::fastdds::rtps::SerializedPayload_t& payload, - void* data) override; - - eProsima_user_DllExport uint32_t calculate_serialized_size( - const void* const data, - eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; - - eProsima_user_DllExport bool compute_key( - eprosima::fastdds::rtps::SerializedPayload_t& payload, - eprosima::fastdds::rtps::InstanceHandle_t& ihandle, - bool force_md5 = false) override; - - eProsima_user_DllExport bool compute_key( - const void* const data, - eprosima::fastdds::rtps::InstanceHandle_t& ihandle, - bool force_md5 = false) override; - - eProsima_user_DllExport void* create_data() override; - - eProsima_user_DllExport void delete_data( - void* data) override; - - //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() override; - -#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - -#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - -#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - eProsima_user_DllExport inline bool construct_sample( - void* memory) const override - { - static_cast(memory); - return false; - } - -#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE - -private: - - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; - -}; - -#endif // FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_PUBSUBTYPES_HPP - diff --git a/test/dds-types-test/relative_path_includeTypeObjectSupport.cxx b/test/dds-types-test/relative_path_includeTypeObjectSupport.cxx deleted file mode 100644 index 45e6961d7e4..00000000000 --- a/test/dds-types-test/relative_path_includeTypeObjectSupport.cxx +++ /dev/null @@ -1,99 +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 relative_path_includeTypeObjectSupport.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 "relative_path_includeTypeObjectSupport.hpp" - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "relative_path_include.hpp" - -#include "../IDL/helpers/basic_inner_types.hpp" - -using namespace eprosima::fastdds::dds::xtypes; - -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_RelativePathIncludeStruct_type_identifier( - TypeIdentifierPair& type_ids_RelativePathIncludeStruct) -{ - - ReturnCode_t return_code_RelativePathIncludeStruct {eprosima::fastdds::dds::RETCODE_OK}; - return_code_RelativePathIncludeStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "RelativePathIncludeStruct", type_ids_RelativePathIncludeStruct); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_RelativePathIncludeStruct) - { - StructTypeFlag struct_flags_RelativePathIncludeStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, - false, false); - QualifiedTypeName type_name_RelativePathIncludeStruct = "RelativePathIncludeStruct"; - eprosima::fastcdr::optional type_ann_builtin_RelativePathIncludeStruct; - eprosima::fastcdr::optional ann_custom_RelativePathIncludeStruct; - CompleteTypeDetail detail_RelativePathIncludeStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_RelativePathIncludeStruct, ann_custom_RelativePathIncludeStruct, type_name_RelativePathIncludeStruct.to_string()); - CompleteStructHeader header_RelativePathIncludeStruct; - header_RelativePathIncludeStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_RelativePathIncludeStruct); - CompleteStructMemberSeq member_seq_RelativePathIncludeStruct; - { - TypeIdentifierPair type_ids_value; - ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; - return_code_value = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_value); - - if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) - { - ::register_InnerEnumHelper_type_identifier(type_ids_value); - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, - false, false, false, false); - MemberId member_id_value = 0x00000000; - bool common_value_ec {false}; - CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; - if (!common_value_ec) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_RelativePathIncludeStruct.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_RelativePathIncludeStruct); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_RelativePathIncludeStruct, member_value); - } - CompleteStructType struct_type_RelativePathIncludeStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_RelativePathIncludeStruct, header_RelativePathIncludeStruct, member_seq_RelativePathIncludeStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_RelativePathIncludeStruct, type_name_RelativePathIncludeStruct.to_string(), type_ids_RelativePathIncludeStruct)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "RelativePathIncludeStruct already registered in TypeObjectRegistry for a different type."); - } - } -} - diff --git a/test/dds/xtypes/Case0.json b/test/dds/xtypes/BaseCases/Case0.json similarity index 100% rename from test/dds/xtypes/Case0.json rename to test/dds/xtypes/BaseCases/Case0.json diff --git a/test/dds/xtypes/Case1.json b/test/dds/xtypes/BaseCases/Case1.json similarity index 100% rename from test/dds/xtypes/Case1.json rename to test/dds/xtypes/BaseCases/Case1.json diff --git a/test/dds/xtypes/Case10.json b/test/dds/xtypes/BaseCases/Case10.json similarity index 100% rename from test/dds/xtypes/Case10.json rename to test/dds/xtypes/BaseCases/Case10.json diff --git a/test/dds/xtypes/Case2.json b/test/dds/xtypes/BaseCases/Case2.json similarity index 100% rename from test/dds/xtypes/Case2.json rename to test/dds/xtypes/BaseCases/Case2.json diff --git a/test/dds/xtypes/Case3.json b/test/dds/xtypes/BaseCases/Case3.json similarity index 100% rename from test/dds/xtypes/Case3.json rename to test/dds/xtypes/BaseCases/Case3.json diff --git a/test/dds/xtypes/Case4.json b/test/dds/xtypes/BaseCases/Case4.json similarity index 100% rename from test/dds/xtypes/Case4.json rename to test/dds/xtypes/BaseCases/Case4.json diff --git a/test/dds/xtypes/Case5.json b/test/dds/xtypes/BaseCases/Case5.json similarity index 100% rename from test/dds/xtypes/Case5.json rename to test/dds/xtypes/BaseCases/Case5.json diff --git a/test/dds/xtypes/Case6.json b/test/dds/xtypes/BaseCases/Case6.json similarity index 100% rename from test/dds/xtypes/Case6.json rename to test/dds/xtypes/BaseCases/Case6.json diff --git a/test/dds/xtypes/Case7.json b/test/dds/xtypes/BaseCases/Case7.json similarity index 100% rename from test/dds/xtypes/Case7.json rename to test/dds/xtypes/BaseCases/Case7.json diff --git a/test/dds/xtypes/Case8.json b/test/dds/xtypes/BaseCases/Case8.json similarity index 100% rename from test/dds/xtypes/Case8.json rename to test/dds/xtypes/BaseCases/Case8.json diff --git a/test/dds/xtypes/Case9.json b/test/dds/xtypes/BaseCases/Case9.json similarity index 100% rename from test/dds/xtypes/Case9.json rename to test/dds/xtypes/BaseCases/Case9.json diff --git a/test/dds/xtypes/idl/XtypesTestsType1.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType1.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType1.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType1.idl rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl diff --git a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType1CdrAux.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.ipp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType1CdrAux.ipp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.ipp diff --git a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType2.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType2.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType2.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType2.idl rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl diff --git a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2CdrAux.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType2CdrAux.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2CdrAux.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2CdrAux.ipp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType2CdrAux.ipp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2CdrAux.ipp diff --git a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType3.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType3.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType3.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType3.idl rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl diff --git a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3CdrAux.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType3CdrAux.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3CdrAux.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3CdrAux.ipp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType3CdrAux.ipp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3CdrAux.ipp diff --git a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeBig.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBig.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeBig.idl rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.ipp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeBigCdrAux.ipp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.ipp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeDep.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDep.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeDep.idl rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.ipp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeDepCdrAux.ipp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.ipp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.cxx similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.cxx diff --git a/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectCdrAux.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectCdrAux.hpp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectCdrAux.ipp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectCdrAux.ipp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectCdrAux.ipp diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx similarity index 98% rename from test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx index 304252537d7..778beb995b5 100644 --- a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx @@ -25,6 +25,8 @@ #include #include "XtypesTestsTypeNoTypeObjectCdrAux.hpp" +#include "XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp" + using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; @@ -207,8 +209,7 @@ bool TypeNoTypeObjectPubSubType::compute_key( void TypeNoTypeObjectPubSubType::register_type_object_representation() { - EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, - "TypeObject type representation support disabled in generated code"); + register_TypeNoTypeObject_type_identifier(type_identifiers_); } diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.h similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.h rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.h diff --git a/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp similarity index 100% rename from test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.cxx new file mode 100644 index 00000000000..937955269e1 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.cxx @@ -0,0 +1,108 @@ +// 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 XtypesTestsTypeNoTypeObjectTypeObjectSupport.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 "XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeNoTypeObject.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_TypeNoTypeObject_type_identifier( + TypeIdentifierPair& type_ids_TypeNoTypeObject) +{ + + ReturnCode_t return_code_TypeNoTypeObject {eprosima::fastdds::dds::RETCODE_OK}; + return_code_TypeNoTypeObject = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "TypeNoTypeObject", type_ids_TypeNoTypeObject); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_TypeNoTypeObject) + { + StructTypeFlag struct_flags_TypeNoTypeObject = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); + QualifiedTypeName type_name_TypeNoTypeObject = "TypeNoTypeObject"; + eprosima::fastcdr::optional type_ann_builtin_TypeNoTypeObject; + eprosima::fastcdr::optional ann_custom_TypeNoTypeObject; + CompleteTypeDetail detail_TypeNoTypeObject = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeNoTypeObject, ann_custom_TypeNoTypeObject, type_name_TypeNoTypeObject.to_string()); + CompleteStructHeader header_TypeNoTypeObject; + header_TypeNoTypeObject = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeNoTypeObject); + CompleteStructMemberSeq member_seq_TypeNoTypeObject; + { + TypeIdentifierPair type_ids_content; + ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; + return_code_content = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_content); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_content)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); + MemberId member_id_content = 0x00000000; + bool common_content_ec {false}; + CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; + if (!common_content_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); + return; + } + MemberName name_content = "content"; + eprosima::fastcdr::optional member_ann_builtin_content; + ann_custom_TypeNoTypeObject.reset(); + CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_TypeNoTypeObject); + CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); + TypeObjectUtils::add_complete_struct_member(member_seq_TypeNoTypeObject, member_content); + } + CompleteStructType struct_type_TypeNoTypeObject = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeNoTypeObject, header_TypeNoTypeObject, member_seq_TypeNoTypeObject); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeNoTypeObject, type_name_TypeNoTypeObject.to_string(), type_ids_TypeNoTypeObject)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "TypeNoTypeObject already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/test/dds-types-test/relative_path_includeTypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp similarity index 78% rename from test/dds-types-test/relative_path_includeTypeObjectSupport.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp index 54e6717d575..a02a5a1cac5 100644 --- a/test/dds-types-test/relative_path_includeTypeObjectSupport.hpp +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp @@ -13,18 +13,17 @@ // limitations under the License. /*! - * @file relative_path_includeTypeObjectSupport.hpp + * @file XtypesTestsTypeNoTypeObjectTypeObjectSupport.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__RELATIVE_PATH_INCLUDE_TYPE_OBJECT_SUPPORT_HPP -#define FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_TYPE_OBJECT_SUPPORT_HPP +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_TYPE_OBJECT_SUPPORT_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_TYPE_OBJECT_SUPPORT_HPP #include -#include "../IDL/helpers/basic_inner_typesTypeObjectSupport.hpp" #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) @@ -39,7 +38,7 @@ #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** - * @brief Register RelativePathIncludeStruct related TypeIdentifier. + * @brief Register TypeNoTypeObject 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. @@ -48,10 +47,10 @@ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_RelativePathIncludeStruct_type_identifier( +eProsima_user_DllExport void register_TypeNoTypeObject_type_identifier( eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#endif // FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_TYPE_OBJECT_SUPPORT_HPP +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index 5cb2fe7d1ce..c8f796c6cf6 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -25,21 +25,10 @@ include_directories(${Asio_INCLUDE_DIR}) # Binaries ############################################################################### -# Standar tests -set(COMMON_SOURCE - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType1PubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType1TypeObjectSupport.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType2PubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType2TypeObjectSupport.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType3PubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsType3TypeObjectSupport.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeBigPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeBigTypeObjectSupport.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeDepPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeDepTypeObjectSupport.cxx - ${PROJECT_SOURCE_DIR}/test/dds/xtypes/idl/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/RTPSDomain.cpp +file(GLOB COMMON_SOURCE + ${PROJECT_SOURCE_DIR}/test/dds-types-test/*.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/helpers/*.cxx + ${PROJECT_SOURCE_DIR}/test/dds/xtypes/BaseCasesIDLs/*.cxx ) set(DDS_XTYPES_SOURCE ${COMMON_SOURCE} @@ -56,6 +45,7 @@ target_compile_definitions(DDSXtypesCommunication PRIVATE target_include_directories(DDSXtypesCommunication PRIVATE ${PROJECT_SOURCE_DIR}/test/dds/xtypes ) + target_link_libraries(DDSXtypesCommunication fastcdr fastdds @@ -64,36 +54,18 @@ target_link_libraries(DDSXtypesCommunication ) ############################################################################### -# Necessary files +# Tests specification ############################################################################### -# Standard tests -list(APPEND TEST_DEFINITIONS - Case0 - Case1 - Case2 - Case3 - Case4 - Case5 - Case6 - Case7 - Case8 - Case9 - Case10 - ) - -# Python file +# Python script configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_build.py ${CMAKE_CURRENT_BINARY_DIR}/test_build.py COPYONLY) -# JSON files -foreach(TEST_FILE IN LISTS TEST_DEFINITIONS) - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${TEST_FILE}.json - ${CMAKE_CURRENT_BINARY_DIR}/${TEST_FILE}.json COPYONLY) -endforeach() +# Get test definitions from the json files +file(GLOB TEST_DEFINITIONS + "BaseCases/Case*" + "TypesTestsCases/Case*" +) -############################################################################### -# Tests specification -############################################################################### if(PYTHONINTERP_FOUND) # Standard types test set(TEST_BUILDER ${BINARY_TEST_DIR}test_build.py) @@ -103,7 +75,7 @@ if(PYTHONINTERP_FOUND) add_test( NAME ${TEST_NAME} COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/${TEST_BUILDER} - ${TEST_DEFINITION}.json + ${TEST_DEFINITION} ) if(WIN32) diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index 232f8587c6a..ffe6981ca17 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -46,114 +46,6 @@ TypeLookupServicePublisher::~TypeLookupServicePublisher() } } -void TypeLookupServicePublisher::create_type_creator_functions() -{ - PUBLISHER_TYPE_CREATOR_FUNCTION(Type1); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type2); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type3); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type3); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type4); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type5); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type6); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type7); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type8); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type9); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type10); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type11); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type12); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type13); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type14); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type15); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type16); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type17); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type18); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type19); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type20); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type21); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type22); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type23); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type24); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type25); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type26); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type27); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type28); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type29); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type30); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type31); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type32); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type33); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type34); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type35); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type36); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type37); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type38); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type39); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type40); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type41); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type42); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type43); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type44); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type45); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type46); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type47); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type48); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type49); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type50); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type51); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type52); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type53); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type54); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type55); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type56); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type57); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type58); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type59); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type60); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type61); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type62); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type63); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type64); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type65); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type66); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type67); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type68); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type69); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type70); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type71); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type72); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type73); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type74); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type75); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type76); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type77); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type78); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type79); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type80); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type81); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type82); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type83); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type84); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type85); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type86); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type87); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type88); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type89); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type90); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type91); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type92); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type93); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type94); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type95); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type96); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type97); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type98); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type99); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type100); - PUBLISHER_TYPE_CREATOR_FUNCTION(TypeBig); - PUBLISHER_TYPE_CREATOR_FUNCTION(TypeDep); - PUBLISHER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); -} - bool TypeLookupServicePublisher::init( std::vector known_types) { @@ -250,13 +142,6 @@ bool TypeLookupServicePublisher::create_known_type_impl( a_type.type_sup_.reset(new TypePubSubType()); a_type.type_sup_.register_type(participant_); - // CREATE SET METHOD - a_type.set_values_ = [](void* sample, std::string current_sample) - { - Type* typed_data = static_cast(sample); - typed_data->content(current_sample); - }; - if (!setup_publisher(a_type)) { return false; @@ -305,12 +190,6 @@ bool TypeLookupServicePublisher::create_discovered_type( return false; } - // CREATE SET METHOD - a_type.dyn_set_values_ = [](DynamicData::_ref_type sample, std::string current_sample) - { - sample->set_string_value(0, current_sample); - }; - if (!setup_publisher(a_type)) { return false; @@ -359,7 +238,7 @@ bool TypeLookupServicePublisher::run( bool result = cv_.wait_for( lock, std::chrono::seconds(timeout), [&] { - std::this_thread::sleep_for(std::chrono::milliseconds(500)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); uint32_t current_sample = 0; std::string type_name; while (samples > current_sample) @@ -371,16 +250,14 @@ bool TypeLookupServicePublisher::run( { DynamicData::_ref_type sample = DynamicDataFactory::get_instance()->create_data(known_type.second.dyn_type_); - known_type.second.dyn_set_values_(sample, std::to_string(current_sample)); - std::cout << "Publisher dyn_type_" << type_name << ": " << current_sample << std::endl; + //std::cout << "Publisher dyn_type_" << type_name << ": " << current_sample << std::endl; known_type.second.writer_->write(&sample); } if (known_type.second.type_) { void* sample = known_type.second.type_sup_.create_data(); - known_type.second.set_values_(sample, std::to_string(current_sample)); - std::cout << "Publisher type_" << type_name << ": " << current_sample << std::endl; + //std::cout << "Publisher type_" << type_name << ": " << current_sample << std::endl; known_type.second.writer_->write(sample); known_type.second.type_sup_.delete_data(sample); } @@ -443,16 +320,17 @@ void TypeLookupServicePublisher::on_data_reader_discovery( if (nullptr == participant_->find_type(discovered_reader_type_name)) { // Check for TypeObjectRegistry inconsistency - const bool should_be_registered = discovered_reader_type_name.find("NoTypeObject") == std::string::npos; - if ((should_be_registered && !check_registered_type(info.type_information)) || - (!should_be_registered && check_registered_type(info.type_information))) + const bool has_type_object = types_without_typeobject_.find(discovered_reader_type_name) == + types_without_typeobject_.end(); + if ((has_type_object && !check_registered_type(info.type_information)) || + (!has_type_object && check_registered_type(info.type_information))) { throw std::runtime_error(discovered_reader_type_name + - (should_be_registered ? " registered" : " not registered")); + (has_type_object ? " registered" : " not registered")); } // Create new publisher for the type - if (should_be_registered) + if (has_type_object) { create_types_threads.emplace_back(&TypeLookupServicePublisher::create_discovered_type, this, info); } diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index 2c797859ef2..360c92cef61 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -54,13 +55,10 @@ struct PubKnownType TypeSupport type_sup_; DataWriter* writer_ = nullptr; - - std::function set_values_; - std::function dyn_set_values_; }; // Define a macro to simplify type registration -#define PUBLISHER_TYPE_CREATOR_FUNCTION(Type) \ + #define PUBLISHER_TYPE_CREATOR_FUNCTION(Type) \ type_creator_functions_[#Type] = std::bind(&TypeLookupServicePublisher::create_known_type_impl, \ this, \ @@ -78,27 +76,9 @@ class TypeLookupServicePublisher ~TypeLookupServicePublisher(); - void create_type_creator_functions(); - bool init( std::vector known_types); - bool setup_publisher( - PubKnownType& new_type); - - bool create_known_type( - const std::string& type); - - template - bool create_known_type_impl( - const std::string& type); - - bool create_discovered_type( - const eprosima::fastdds::dds::SubscriptionBuiltinTopicData& info); - - bool check_registered_type( - const xtypes::TypeInformationParameter& type_info); - bool wait_discovery( uint32_t expected_matches, uint32_t timeout); @@ -119,6 +99,902 @@ class TypeLookupServicePublisher private: + void create_type_creator_functions() + { + + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionString); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnumLabel); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(testing_2::foo); + PUBLISHER_TYPE_CREATOR_FUNCTION(testing_1::foo); + PUBLISHER_TYPE_CREATOR_FUNCTION(root2); + PUBLISHER_TYPE_CREATOR_FUNCTION(root1); + PUBLISHER_TYPE_CREATOR_FUNCTION(bar); + PUBLISHER_TYPE_CREATOR_FUNCTION(Structures); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructString); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructShortArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructEmpty); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructChar8); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructChar16); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(WStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(StringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(SmallWStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(SmallStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LargeWStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LargeStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWStringBounded); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceStringBounded); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceString); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceShortArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallSequences); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBigSequences); + PUBLISHER_TYPE_CREATOR_FUNCTION(WCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Uint8Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Uint64Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Uint32Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Uint16Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(UShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(OctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Int8Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Int64Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Int32Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Int16Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(DoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(CharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(BooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructOptional); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableWCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableUnionStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableUShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableOctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableInheritanceEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableFloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableExtensibilityInheritance); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableEmptyInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableBooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixMix); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixId); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixHexId); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixHashidDefault); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixHashid); + PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedEmptyAutoidSequential); + PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidSequential); + PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidHash); + PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidDefault); + PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidSequential); + PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidHash); + PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidDefault); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongKeyLongValue); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongKeyDoubleValue); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongKeyLongLongValue); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongKeyLongDoubleValue); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongLongValueDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedLargeMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedWCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedUShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedOctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedFloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedEmptyInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedBooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(InheritanceKeyedEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructuresInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructAliasInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChildChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChildChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelperChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(BitsetsChildInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(InheritanceEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalWCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalUnionStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalUShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalOctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalFloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalExtensibilityInheritance); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalEmptyInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalBooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_external); + types_without_typeobject_.insert("wchar_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_external); + types_without_typeobject_.insert("ushort_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_external); + types_without_typeobject_.insert("ulonglong_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_external); + types_without_typeobject_.insert("ulong_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_external_optional); + types_without_typeobject_.insert("struct_external_optional"); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_external); + types_without_typeobject_.insert("struct_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_external); + types_without_typeobject_.insert("string_unbounded_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_external); + types_without_typeobject_.insert("string_bounded_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_external); + types_without_typeobject_.insert("short_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_external); + types_without_typeobject_.insert("sequence_short_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_union_container); + types_without_typeobject_.insert("recursive_union_container"); + PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_test_2); + types_without_typeobject_.insert("recursive_test_2"); + PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_test_1); + types_without_typeobject_.insert("recursive_test_1"); + PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_structure); + types_without_typeobject_.insert("recursive_structure"); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_external); + types_without_typeobject_.insert("octet_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_external); + types_without_typeobject_.insert("map_short_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_external); + types_without_typeobject_.insert("longlong_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_external); + types_without_typeobject_.insert("longdouble_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_external); + types_without_typeobject_.insert("long_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_external); + types_without_typeobject_.insert("float_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ext_struct_external); + types_without_typeobject_.insert("ext_struct_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ext_and_inner_struct_external); + types_without_typeobject_.insert("ext_and_inner_struct_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_external); + types_without_typeobject_.insert("double_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_external); + types_without_typeobject_.insert("char_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_external); + types_without_typeobject_.insert("boolean_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_external); + types_without_typeobject_.insert("array_short_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructExternal); + types_without_typeobject_.insert("InnerStructExternal"); + PUBLISHER_TYPE_CREATOR_FUNCTION(EnumStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(BitMaskStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); + types_without_typeobject_.insert("ModuledForwardStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(declarations_module::ForwardStruct); + types_without_typeobject_.insert("ForwardStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); + types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); + types_without_typeobject_.insert("ModuledCommonNameStructure"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ForwardStruct); + types_without_typeobject_.insert("ForwardStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ForwardDeclarationsRecursiveStruct); + types_without_typeobject_.insert("ForwardDeclarationsRecursiveStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(const_module2::Module2ConstsLiteralsStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(const_module1::ModuleConstsLiteralsStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ConstsLiteralsStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(BitsetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallArrays); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBigArrays); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShortArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayShortArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitSet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableWCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableUnionStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableUShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableOctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableInheritanceEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableFloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableExtensibilityInheritance); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableEmptyInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableBooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(EmptyAnnotatedStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AnnotatedStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUint16); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUInt64); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUInt32); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasString8); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasString16); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasMultiArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt64); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt32); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt16); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat64); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat32); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat128); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasChar8); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasChar16); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBool); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBitmask); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); + types_without_typeobject_.insert("TypeNoTypeObject"); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeDep); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeBig); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type99); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type98); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type97); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type96); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type95); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type94); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type93); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type92); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type91); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type90); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type9); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type89); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type88); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type87); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type86); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type85); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type84); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type83); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type82); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type81); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type80); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type8); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type79); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type78); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type77); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type76); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type75); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type74); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type73); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type72); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type71); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type70); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type7); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type69); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type68); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type67); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type66); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type65); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type64); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type63); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type62); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type61); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type60); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type6); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type59); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type58); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type57); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type56); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type55); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type54); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type53); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type52); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type51); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type50); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type5); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type49); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type48); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type47); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type46); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type45); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type44); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type43); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type42); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type41); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type40); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type4); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type39); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type38); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type37); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type36); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type35); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type34); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type33); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type32); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type31); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type30); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type29); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type28); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type27); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type26); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type25); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type24); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type23); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type22); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type21); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type20); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type19); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type18); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type17); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type16); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type15); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type14); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type13); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type12); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type11); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type100); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type10); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type3); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type2); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type1); + } + + bool setup_publisher( + PubKnownType& new_type); + + bool create_known_type( + const std::string& type); + + template + bool create_known_type_impl( + const std::string& type); + + + bool create_discovered_type( + const eprosima::fastdds::dds::SubscriptionBuiltinTopicData& info); + + bool check_registered_type( + const xtypes::TypeInformationParameter& type_info); + DomainParticipant* participant_ = nullptr; std::mutex mutex_; @@ -129,8 +1005,10 @@ class TypeLookupServicePublisher std::mutex known_types_mutex_; std::map known_types_; + std::unordered_set types_without_typeobject_; std::map> type_creator_functions_; std::vector create_types_threads; + }; } // dds diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index ef4100cb82f..16d1a3b1fb3 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -46,115 +46,6 @@ TypeLookupServiceSubscriber::~TypeLookupServiceSubscriber() } } -void TypeLookupServiceSubscriber::create_type_creator_functions() -{ - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type1); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type2); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type3); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type3); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type4); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type5); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type6); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type7); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type8); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type9); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type10); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type11); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type12); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type13); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type14); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type15); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type16); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type17); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type18); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type19); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type20); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type21); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type22); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type23); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type24); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type25); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type26); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type27); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type28); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type29); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type30); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type31); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type32); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type33); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type34); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type35); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type36); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type37); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type38); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type39); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type40); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type41); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type42); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type43); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type44); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type45); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type46); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type47); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type48); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type49); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type50); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type51); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type52); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type53); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type54); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type55); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type56); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type57); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type58); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type59); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type60); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type61); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type62); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type63); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type64); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type65); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type66); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type67); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type68); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type69); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type70); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type71); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type72); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type73); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type74); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type75); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type76); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type77); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type78); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type79); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type80); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type81); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type82); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type83); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type84); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type85); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type86); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type87); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type88); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type89); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type90); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type91); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type92); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type93); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type94); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type95); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type96); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type97); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type98); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type99); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type100); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeBig); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeDep); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); - -} - bool TypeLookupServiceSubscriber::init( std::vector known_types) { @@ -255,13 +146,6 @@ bool TypeLookupServiceSubscriber::create_known_type_impl( a_type.type_sup_.reset(new TypePubSubType()); a_type.type_sup_.register_type(participant_); - // CREATE PRINT METHOD - a_type.print_values_ = [](void* sample) - { - Type* typed_data = static_cast(sample); - std::cout << "content(" << typed_data->content() << ")" << std::endl; - }; - if (!setup_subscriber(a_type)) { return false; @@ -310,14 +194,6 @@ bool TypeLookupServiceSubscriber::create_discovered_type( return false; } - // CREATE PRINT METHOD - a_type.dyn_print_values_ = [](DynamicData::_ref_type sample) - { - std::string content; - sample->get_string_value(content, 0); - std::cout << "content(" << content << ")" << std::endl; - }; - if (!setup_subscriber(a_type)) { return false; @@ -428,8 +304,7 @@ void TypeLookupServiceSubscriber::on_data_available( DynamicData::_ref_type sample = DynamicDataFactory::get_instance()->create_data(known_type.dyn_type_); if (reader->take_next_sample(&sample, &info) == RETCODE_OK && info.valid_data) { - std::cout << "Subscriber dyn_type_" << reader->type().get_type_name() << ": "; - known_type.dyn_print_values_(sample); + //std::cout << "Subscriber dyn_type_" << reader->type().get_type_name() << ": " << std::endl; received_samples_[info.sample_identity.writer_guid()]++; cv_.notify_all(); } @@ -440,8 +315,7 @@ void TypeLookupServiceSubscriber::on_data_available( void* sample = known_type.type_; if (reader->take_next_sample(sample, &info) == RETCODE_OK && info.valid_data) { - std::cout << "Subscriber type_" << reader->type().get_type_name() << ": "; - known_type.print_values_(sample); + //std::cout << "Subscriber type_" << reader->type().get_type_name() << ": " << std::endl; received_samples_[info.sample_identity.writer_guid()]++; cv_.notify_all(); } @@ -463,17 +337,17 @@ void TypeLookupServiceSubscriber::on_data_writer_discovery( if (participant_->find_type(discovered_writer_type_name) == nullptr) { // Check for TypeObjectRegistry inconsistency - const bool should_be_registered = discovered_writer_type_name.find("NoTypeObject") == std::string::npos; - - if ((should_be_registered && !check_registered_type(info.type_information)) || - (!should_be_registered && check_registered_type(info.type_information))) + const bool has_type_object = types_without_typeobject_.find(discovered_writer_type_name) == + types_without_typeobject_.end(); + if ((has_type_object && !check_registered_type(info.type_information)) || + (!has_type_object && check_registered_type(info.type_information))) { throw std::runtime_error(discovered_writer_type_name + - (should_be_registered ? " registered" : " not registered")); + (has_type_object ? " registered" : " not registered")); } // Create new subscriber for the type - if (should_be_registered) + if (has_type_object) { create_types_threads.emplace_back(&TypeLookupServiceSubscriber::create_discovered_type, this, info); } diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index 4a3e6b63f25..c9c0097774a 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -54,9 +54,6 @@ struct SubKnownType void* type_; DynamicType::_ref_type dyn_type_; TypeSupport type_sup_; - - std::function print_values_; - std::function dyn_print_values_; }; // Define a macro to simplify type registration @@ -77,27 +74,9 @@ class TypeLookupServiceSubscriber ~TypeLookupServiceSubscriber(); - void create_type_creator_functions(); - bool init( std::vector known_types); - bool setup_subscriber( - SubKnownType& new_type); - - bool create_known_type( - const std::string& type); - - template - bool create_known_type_impl( - const std::string& type); - - bool create_discovered_type( - const eprosima::fastdds::dds::PublicationBuiltinTopicData& info); - - bool check_registered_type( - const xtypes::TypeInformationParameter& type_info); - bool wait_discovery( uint32_t expected_matches, uint32_t timeout); @@ -121,6 +100,902 @@ class TypeLookupServiceSubscriber private: + void create_type_creator_functions() + { + // IDL file name: helpers/basic_inner_types + // IDL file name: declarations + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnumLabel); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(testing_2::foo); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(testing_1::foo); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(root2); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(root1); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(bar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Structures); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructShortArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructEmpty); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructChar8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructChar16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(WStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SmallWStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SmallStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LargeWStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LargeStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWStringBounded); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceStringBounded); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceShortArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallSequences); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBigSequences); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(WCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint8Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint64Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint32Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint16Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(OctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int8Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int64Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int32Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int16Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(CharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructOptional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableWCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableUnionStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableUShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableOctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableInheritanceEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableFloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableExtensibilityInheritance); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableEmptyInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableBooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixMix); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixId); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHexId); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHashidDefault); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHashid); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedEmptyAutoidSequential); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidSequential); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidHash); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidDefault); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidSequential); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidHash); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidDefault); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongKeyLongValue); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongKeyDoubleValue); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongKeyLongLongValue); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongKeyLongDoubleValue); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongLongValueDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedLargeMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedWCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedUShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedOctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedFloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedEmptyInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedBooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InheritanceKeyedEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructuresInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructAliasInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChildChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChildChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelperChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitsetsChildInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InheritanceEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalWCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalUnionStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalUShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalOctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalFloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalExtensibilityInheritance); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalEmptyInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalBooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_external); + types_without_typeobject_.insert("wchar_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_external); + types_without_typeobject_.insert("ushort_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_external); + types_without_typeobject_.insert("ulonglong_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_external); + types_without_typeobject_.insert("ulong_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_external_optional); + types_without_typeobject_.insert("struct_external_optional"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_external); + types_without_typeobject_.insert("struct_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_external); + types_without_typeobject_.insert("string_unbounded_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_external); + types_without_typeobject_.insert("string_bounded_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_external); + types_without_typeobject_.insert("short_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_external); + types_without_typeobject_.insert("sequence_short_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_union_container); + types_without_typeobject_.insert("recursive_union_container"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_test_2); + types_without_typeobject_.insert("recursive_test_2"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_test_1); + types_without_typeobject_.insert("recursive_test_1"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_structure); + types_without_typeobject_.insert("recursive_structure"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_external); + types_without_typeobject_.insert("octet_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_external); + types_without_typeobject_.insert("map_short_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_external); + types_without_typeobject_.insert("longlong_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_external); + types_without_typeobject_.insert("longdouble_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_external); + types_without_typeobject_.insert("long_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_external); + types_without_typeobject_.insert("float_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ext_struct_external); + types_without_typeobject_.insert("ext_struct_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ext_and_inner_struct_external); + types_without_typeobject_.insert("ext_and_inner_struct_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_external); + types_without_typeobject_.insert("double_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_external); + types_without_typeobject_.insert("char_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_external); + types_without_typeobject_.insert("boolean_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_external); + types_without_typeobject_.insert("array_short_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructExternal); + types_without_typeobject_.insert("InnerStructExternal"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(EnumStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitMaskStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); + types_without_typeobject_.insert("ModuledForwardStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(declarations_module::ForwardStruct); + types_without_typeobject_.insert("ForwardStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); + types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); + types_without_typeobject_.insert("ModuledCommonNameStructure"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ForwardStruct); + types_without_typeobject_.insert("ForwardStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ForwardDeclarationsRecursiveStruct); + types_without_typeobject_.insert("ForwardDeclarationsRecursiveStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(const_module2::Module2ConstsLiteralsStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(const_module1::ModuleConstsLiteralsStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ConstsLiteralsStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitsetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallArrays); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBigArrays); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShortArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayShortArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitSet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableWCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableUnionStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableUShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableOctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableInheritanceEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableFloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableExtensibilityInheritance); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableEmptyInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableBooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(EmptyAnnotatedStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AnnotatedStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUint16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUInt64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUInt32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasString8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasString16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasMultiArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat128); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasChar8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasChar16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBool); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBitmask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); + types_without_typeobject_.insert("TypeNoTypeObject"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeDep); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeBig); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type99); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type98); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type97); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type96); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type95); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type94); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type93); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type92); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type91); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type90); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type9); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type89); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type88); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type87); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type86); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type85); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type84); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type83); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type82); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type81); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type80); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type79); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type78); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type77); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type76); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type75); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type74); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type73); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type72); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type71); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type70); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type7); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type69); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type68); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type67); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type66); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type65); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type63); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type62); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type61); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type60); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type6); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type59); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type58); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type57); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type56); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type55); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type54); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type53); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type52); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type51); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type50); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type5); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type49); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type48); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type47); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type46); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type45); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type44); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type43); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type42); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type41); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type40); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type4); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type39); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type38); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type37); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type36); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type35); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type34); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type33); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type31); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type30); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type29); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type28); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type27); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type26); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type25); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type24); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type23); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type22); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type21); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type20); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type19); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type18); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type17); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type15); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type14); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type13); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type12); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type11); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type100); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type10); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type3); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type2); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type1); + } + + bool setup_subscriber( + SubKnownType& new_type); + + bool create_known_type( + const std::string& type); + + template + bool create_known_type_impl( + const std::string& type); + + bool create_discovered_type( + const eprosima::fastdds::dds::PublicationBuiltinTopicData& info); + + bool check_registered_type( + const xtypes::TypeInformationParameter& type_info); + DomainParticipant* participant_ = nullptr; std::mutex mutex_; @@ -131,6 +1006,7 @@ class TypeLookupServiceSubscriber std::mutex known_types_mutex_; std::map known_types_; + std::unordered_set types_without_typeobject_; std::map> type_creator_functions_; std::vector create_types_threads; }; diff --git a/test/dds/xtypes/TypeLookupServiceTestsTypes.h b/test/dds/xtypes/TypeLookupServiceTestsTypes.h index c6b2d1c152d..5c1086a3c5f 100644 --- a/test/dds/xtypes/TypeLookupServiceTestsTypes.h +++ b/test/dds/xtypes/TypeLookupServiceTestsTypes.h @@ -20,11 +20,36 @@ #ifndef _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_TYPES_H_ #define _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_TYPES_H_ -#include "idl/XtypesTestsType1PubSubTypes.hpp" -#include "idl/XtypesTestsType2PubSubTypes.hpp" -#include "idl/XtypesTestsType3PubSubTypes.hpp" -#include "idl/XtypesTestsTypeBigPubSubTypes.hpp" -#include "idl/XtypesTestsTypeDepPubSubTypes.hpp" -#include "idl/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp" +// This header will include all the headers for the types that will be tested +// They will be added automatically by the update_headers.py script + +#include "../../dds-types-test/aliasesPubSubTypes.hpp" +#include "../../dds-types-test/annotationsPubSubTypes.hpp" +#include "../../dds-types-test/appendablePubSubTypes.hpp" +#include "../../dds-types-test/arraysPubSubTypes.hpp" +#include "../../dds-types-test/bitsetsPubSubTypes.hpp" +#include "../../dds-types-test/constantsPubSubTypes.hpp" +#include "../../dds-types-test/declarationsPubSubTypes.hpp" +#include "../../dds-types-test/enumerationsPubSubTypes.hpp" +#include "../../dds-types-test/externalPubSubTypes.hpp" +#include "../../dds-types-test/finalPubSubTypes.hpp" +#include "../../dds-types-test/helpers/basic_inner_typesPubSubTypes.hpp" +#include "../../dds-types-test/inheritancePubSubTypes.hpp" +#include "../../dds-types-test/keyPubSubTypes.hpp" +#include "../../dds-types-test/mapsPubSubTypes.hpp" +#include "../../dds-types-test/member_idPubSubTypes.hpp" +#include "../../dds-types-test/mutablePubSubTypes.hpp" +#include "../../dds-types-test/optionalPubSubTypes.hpp" +#include "../../dds-types-test/primitivesPubSubTypes.hpp" +#include "../../dds-types-test/sequencesPubSubTypes.hpp" +#include "../../dds-types-test/stringsPubSubTypes.hpp" +#include "../../dds-types-test/structuresPubSubTypes.hpp" +#include "../../dds-types-test/unionsPubSubTypes.hpp" +#include "BaseCasesIDLs/XtypesTestsType1PubSubTypes.hpp" +#include "BaseCasesIDLs/XtypesTestsType2PubSubTypes.hpp" +#include "BaseCasesIDLs/XtypesTestsType3PubSubTypes.hpp" +#include "BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.hpp" +#include "BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.hpp" +#include "BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp" #endif /* _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_TYPES_H_ */ diff --git a/test/dds/xtypes/TypeLookupService_main.cpp b/test/dds/xtypes/TypeLookupService_main.cpp index 0838e34ed4a..7e536570f91 100644 --- a/test/dds/xtypes/TypeLookupService_main.cpp +++ b/test/dds/xtypes/TypeLookupService_main.cpp @@ -92,11 +92,11 @@ int main( char** argv) { // Print all command-line arguments - std::cout << "Command-line arguments:" << std::endl; - for (int i = 0; i < argc; ++i) - { - std::cout << "argv[" << i << "]: " << argv[i] << std::endl; - } + // std::cout << "Command-line arguments:" << std::endl; + // for (int i = 0; i < argc; ++i) + // { + // std::cout << "argv[" << i << "]: " << argv[i] << std::endl; + // } CommandLineArgs args = parse_args(argc, argv); diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasAlias.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasAlias.json new file mode 100644 index 00000000000..5f26df0f5b5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasAlias.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasArray.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasArray.json new file mode 100644 index 00000000000..a5a61300c8d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasArray.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitmask.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitmask.json new file mode 100644 index 00000000000..116b6a55fe7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitmask.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasBitmask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitset.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitset.json new file mode 100644 index 00000000000..a6de75c0204 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitset.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBool.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBool.json new file mode 100644 index 00000000000..0ffa500895e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBool.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasBool" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar16.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar16.json new file mode 100644 index 00000000000..c09c2e721f3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar16.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasChar16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar8.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar8.json new file mode 100644 index 00000000000..e512aa379ee --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar8.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasChar8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasEnum.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasEnum.json new file mode 100644 index 00000000000..a046ebf8ee6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasEnum.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat128.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat128.json new file mode 100644 index 00000000000..84406157fa2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat128.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasFloat128" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat32.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat32.json new file mode 100644 index 00000000000..2f4f1fabe41 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat32.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasFloat32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat64.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat64.json new file mode 100644 index 00000000000..e655eb68531 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat64.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasFloat64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt16.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt16.json new file mode 100644 index 00000000000..cacb36c5f8c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt16.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasInt16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt32.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt32.json new file mode 100644 index 00000000000..b267ed4368d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt32.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasInt32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt64.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt64.json new file mode 100644 index 00000000000..fe083c65a3a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt64.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasInt64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMap.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMap.json new file mode 100644 index 00000000000..05020cd92d1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMultiArray.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMultiArray.json new file mode 100644 index 00000000000..1edd870113b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMultiArray.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasMultiArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasOctet.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasOctet.json new file mode 100644 index 00000000000..f89426ab544 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasSequence.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasSequence.json new file mode 100644 index 00000000000..147469599b4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasSequence.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString16.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString16.json new file mode 100644 index 00000000000..47c716dbab3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString16.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasString16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString8.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString8.json new file mode 100644 index 00000000000..43b11d04afe --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString8.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasString8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasStruct.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasStruct.json new file mode 100644 index 00000000000..a555f3d4dd7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt32.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt32.json new file mode 100644 index 00000000000..5f1ed46f406 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt32.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasUInt32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt64.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt64.json new file mode 100644 index 00000000000..9110d95ff01 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt64.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasUInt64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUint16.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUint16.json new file mode 100644 index 00000000000..7a9c9897f35 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUint16.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasUint16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUnion.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUnion.json new file mode 100644 index 00000000000..6f6c58d4159 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUnion.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_annotations_AnnotatedStruct.json b/test/dds/xtypes/TypesTestsCases/Case_annotations_AnnotatedStruct.json new file mode 100644 index 00000000000..1750cb19a16 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_annotations_AnnotatedStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AnnotatedStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_annotations_EmptyAnnotatedStruct.json b/test/dds/xtypes/TypesTestsCases/Case_annotations_EmptyAnnotatedStruct.json new file mode 100644 index 00000000000..627e809ca49 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_annotations_EmptyAnnotatedStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "EmptyAnnotatedStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableBooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableBooleanStruct.json new file mode 100644 index 00000000000..423162fc62f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableBooleanStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableCharStruct.json new file mode 100644 index 00000000000..bb0e0433592 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableDoubleStruct.json new file mode 100644 index 00000000000..b9a40192f4f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyInheritanceStruct.json new file mode 100644 index 00000000000..891d3760199 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyStruct.json new file mode 100644 index 00000000000..1956b54ca90 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableExtensibilityInheritance.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableExtensibilityInheritance.json new file mode 100644 index 00000000000..c0d7e9d7330 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableExtensibilityInheritance.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableFloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableFloatStruct.json new file mode 100644 index 00000000000..55cb96b0754 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableFloatStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceEmptyStruct.json new file mode 100644 index 00000000000..c49d9c04faf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceEmptyStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableInheritanceEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceStruct.json new file mode 100644 index 00000000000..a5d9a849f21 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongDoubleStruct.json new file mode 100644 index 00000000000..66a4327d4f9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongLongStruct.json new file mode 100644 index 00000000000..8cf4655c4b5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongStruct.json new file mode 100644 index 00000000000..d12b057e7da --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableOctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableOctetStruct.json new file mode 100644 index 00000000000..a449288fdd1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableOctetStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableShortStruct.json new file mode 100644 index 00000000000..bad7a6d9d62 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongLongStruct.json new file mode 100644 index 00000000000..b762aec2403 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongStruct.json new file mode 100644 index 00000000000..8d4d9573133 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUShortStruct.json new file mode 100644 index 00000000000..4c28ef94067 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUnionStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUnionStruct.json new file mode 100644 index 00000000000..d75a4d8ee2c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUnionStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableWCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableWCharStruct.json new file mode 100644 index 00000000000..be58be03dbf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableWCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayAlias.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayAlias.json new file mode 100644 index 00000000000..6c8b3fed206 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayAlias.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitMask.json new file mode 100644 index 00000000000..f9cd873913c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitMask.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitset.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitset.json new file mode 100644 index 00000000000..3f6af88e03d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitset.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoolean.json new file mode 100644 index 00000000000..a6987c03933 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedString.json new file mode 100644 index 00000000000..8efaa469367 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedWString.json new file mode 100644 index 00000000000..f587850078f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayChar.json new file mode 100644 index 00000000000..e3b0593671c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayDouble.json new file mode 100644 index 00000000000..508b5e11b00 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayEnum.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayEnum.json new file mode 100644 index 00000000000..e6536041722 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayEnum.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayFloat.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayFloat.json new file mode 100644 index 00000000000..8f80b0c9a8d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLong.json new file mode 100644 index 00000000000..193f10e5329 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongDouble.json new file mode 100644 index 00000000000..864af3267fa --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongLong.json new file mode 100644 index 00000000000..8bd15c928ad --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMap.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMap.json new file mode 100644 index 00000000000..ae4571a5834 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionAlias.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionAlias.json new file mode 100644 index 00000000000..64f2f07c579 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionAlias.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitMask.json new file mode 100644 index 00000000000..f8975d95af4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitMask.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitset.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitset.json new file mode 100644 index 00000000000..0fc77185557 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitset.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoolean.json new file mode 100644 index 00000000000..883a3ad901d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedString.json new file mode 100644 index 00000000000..02301f0f551 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedWString.json new file mode 100644 index 00000000000..99a3ef884ce --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionChar.json new file mode 100644 index 00000000000..480a6a841e0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionDouble.json new file mode 100644 index 00000000000..995c263bcb5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionEnum.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionEnum.json new file mode 100644 index 00000000000..fe644879c83 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionEnum.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionFloat.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionFloat.json new file mode 100644 index 00000000000..9825785ccc1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsAlias.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsAlias.json new file mode 100644 index 00000000000..5795eabf52f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsAlias.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitMask.json new file mode 100644 index 00000000000..cf4a0ef298a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitMask.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitSet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitSet.json new file mode 100644 index 00000000000..bd536b4361b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitSet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBitSet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoolean.json new file mode 100644 index 00000000000..d6e86d8a913 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedString.json new file mode 100644 index 00000000000..46601920598 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedWString.json new file mode 100644 index 00000000000..c730f4e9a17 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsChar.json new file mode 100644 index 00000000000..87957324e56 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsDouble.json new file mode 100644 index 00000000000..82352fc024b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsEnum.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsEnum.json new file mode 100644 index 00000000000..5490ee439ba --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsEnum.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsFloat.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsFloat.json new file mode 100644 index 00000000000..8bc0a4b5416 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLong.json new file mode 100644 index 00000000000..8cd7d860ca1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongDouble.json new file mode 100644 index 00000000000..d7205fde5e4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongLong.json new file mode 100644 index 00000000000..3243328c2a2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsMap.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsMap.json new file mode 100644 index 00000000000..77d87dc773f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsOctet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsOctet.json new file mode 100644 index 00000000000..5e46d02199c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsSequence.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsSequence.json new file mode 100644 index 00000000000..81ece8828dd --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsSequence.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsShort.json new file mode 100644 index 00000000000..1f14ea14f4e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsString.json new file mode 100644 index 00000000000..10387a28442 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsStructure.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsStructure.json new file mode 100644 index 00000000000..95ed47de9bf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULong.json new file mode 100644 index 00000000000..7a0ba93758d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULongLong.json new file mode 100644 index 00000000000..c2973191616 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUShort.json new file mode 100644 index 00000000000..2064e25b9be --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUnion.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUnion.json new file mode 100644 index 00000000000..cc601dcd3b1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUnion.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWChar.json new file mode 100644 index 00000000000..53dac0dc84f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWString.json new file mode 100644 index 00000000000..7f4143ada85 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLong.json new file mode 100644 index 00000000000..f8da5f90a0c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongDouble.json new file mode 100644 index 00000000000..3ea3a844bdb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongLong.json new file mode 100644 index 00000000000..a93b0900c3d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionMap.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionMap.json new file mode 100644 index 00000000000..f04dbf7c1e1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionOctet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionOctet.json new file mode 100644 index 00000000000..1744ccce2c0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionSequence.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionSequence.json new file mode 100644 index 00000000000..c719be7e768 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionSequence.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionShort.json new file mode 100644 index 00000000000..e1037b96208 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionString.json new file mode 100644 index 00000000000..d51412fbf24 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionStructure.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionStructure.json new file mode 100644 index 00000000000..9ef82bcf419 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULong.json new file mode 100644 index 00000000000..deea98b8c46 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULongLong.json new file mode 100644 index 00000000000..ea13ad365c8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUShort.json new file mode 100644 index 00000000000..f3b86913ed2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUnion.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUnion.json new file mode 100644 index 00000000000..4167b764972 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUnion.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWChar.json new file mode 100644 index 00000000000..9000cecc426 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWString.json new file mode 100644 index 00000000000..e3dbd163e9b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayOctet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayOctet.json new file mode 100644 index 00000000000..9d89a22bea0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySequence.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySequence.json new file mode 100644 index 00000000000..431d864f152 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySequence.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShort.json new file mode 100644 index 00000000000..5bcb1e6dd1c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShortArray.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShortArray.json new file mode 100644 index 00000000000..c7b23ff6fa0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShortArray.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsAlias.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsAlias.json new file mode 100644 index 00000000000..f7a0b3dbcd7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsAlias.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitMask.json new file mode 100644 index 00000000000..b345ffd6363 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitMask.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitset.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitset.json new file mode 100644 index 00000000000..fb41f3cdfa4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitset.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoolean.json new file mode 100644 index 00000000000..63e5c875bfa --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedString.json new file mode 100644 index 00000000000..15a5adce7eb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedWString.json new file mode 100644 index 00000000000..0d49250411e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsChar.json new file mode 100644 index 00000000000..2c6f13961e9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsDouble.json new file mode 100644 index 00000000000..cc4e9ea6ab2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsEnum.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsEnum.json new file mode 100644 index 00000000000..69e9b37380a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsEnum.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsFloat.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsFloat.json new file mode 100644 index 00000000000..0ce3bbf2b4b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLong.json new file mode 100644 index 00000000000..8baa84761c3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongDouble.json new file mode 100644 index 00000000000..0b6ffb95c19 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongLong.json new file mode 100644 index 00000000000..0052c5e2d53 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsMap.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsMap.json new file mode 100644 index 00000000000..d9a83121cb6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsOctet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsOctet.json new file mode 100644 index 00000000000..a815d648468 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsSequence.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsSequence.json new file mode 100644 index 00000000000..9a4a0d60483 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsSequence.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShort.json new file mode 100644 index 00000000000..e899ef7e174 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShortArray.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShortArray.json new file mode 100644 index 00000000000..c234ef94dcb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShortArray.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsString.json new file mode 100644 index 00000000000..c1f267f7924 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsStructure.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsStructure.json new file mode 100644 index 00000000000..7c91ef0b70a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnion.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnion.json new file mode 100644 index 00000000000..07ca621be8a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnion.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLong.json new file mode 100644 index 00000000000..02a3a05f56d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong.json new file mode 100644 index 00000000000..a6ec9a5e6c8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedShort.json new file mode 100644 index 00000000000..529431b49d9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWChar.json new file mode 100644 index 00000000000..7bda7b4a325 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWString.json new file mode 100644 index 00000000000..0d8de076ac7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayString.json new file mode 100644 index 00000000000..03dbcfde4ea --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayStructure.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayStructure.json new file mode 100644 index 00000000000..9c02285ff27 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULong.json new file mode 100644 index 00000000000..f1cd76ee747 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULongLong.json new file mode 100644 index 00000000000..b2d4e0f9145 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUShort.json new file mode 100644 index 00000000000..857c29c4206 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUnion.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUnion.json new file mode 100644 index 00000000000..42e80444ac6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUnion.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWChar.json new file mode 100644 index 00000000000..6fb1e0b439a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWString.json new file mode 100644 index 00000000000..1d729fa4dab --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedBigArrays.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedBigArrays.json new file mode 100644 index 00000000000..2a31ec7bcc7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedBigArrays.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedBigArrays" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedSmallArrays.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedSmallArrays.json new file mode 100644 index 00000000000..4646c26a57f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedSmallArrays.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedSmallArrays" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_bitsets_BitsetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_bitsets_BitsetStruct.json new file mode 100644 index 00000000000..7d63bfec75b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_bitsets_BitsetStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BitsetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_constants_ConstsLiteralsStruct.json b/test/dds/xtypes/TypesTestsCases/Case_constants_ConstsLiteralsStruct.json new file mode 100644 index 00000000000..8ce0f177efd --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_constants_ConstsLiteralsStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ConstsLiteralsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json b/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json new file mode 100644 index 00000000000..4d790f9991d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Module2ConstsLiteralsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json b/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json new file mode 100644 index 00000000000..c2c9c6c0d2a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ModuleConstsLiteralsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardDeclarationsRecursiveStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardDeclarationsRecursiveStruct.json new file mode 100644 index 00000000000..7ed3ecaccf0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardDeclarationsRecursiveStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ForwardDeclarationsRecursiveStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardStruct.json new file mode 100644 index 00000000000..bee175ba528 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ForwardStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledCommonNameStructure.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledCommonNameStructure.json new file mode 100644 index 00000000000..9d19aeb79a0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledCommonNameStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ModuledCommonNameStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardDeclarationsRecursiveStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardDeclarationsRecursiveStruct.json new file mode 100644 index 00000000000..bd370e695a3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardDeclarationsRecursiveStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ModuledForwardDeclarationsRecursiveStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json new file mode 100644 index 00000000000..e2945f60ed9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ModuledForwardStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_enumerations_BitMaskStructure.json b/test/dds/xtypes/TypesTestsCases/Case_enumerations_BitMaskStructure.json new file mode 100644 index 00000000000..c1cbeef0732 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_enumerations_BitMaskStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BitMaskStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_enumerations_BoundedBitMaskStructure.json b/test/dds/xtypes/TypesTestsCases/Case_enumerations_BoundedBitMaskStructure.json new file mode 100644 index 00000000000..e0e502da17c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_enumerations_BoundedBitMaskStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedBitMaskStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_enumerations_EnumStructure.json b/test/dds/xtypes/TypesTestsCases/Case_enumerations_EnumStructure.json new file mode 100644 index 00000000000..9b3b209825c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_enumerations_EnumStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "EnumStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_InnerStructExternal.json b/test/dds/xtypes/TypesTestsCases/Case_external_InnerStructExternal.json new file mode 100644 index 00000000000..b775a5f4438 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_InnerStructExternal.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructExternal" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_array_short_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_array_short_external.json new file mode 100644 index 00000000000..2ff5c476bb5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_array_short_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_boolean_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_boolean_external.json new file mode 100644 index 00000000000..48b79086f70 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_boolean_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_char_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_char_external.json new file mode 100644 index 00000000000..5b2ee615814 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_char_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_double_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_double_external.json new file mode 100644 index 00000000000..178369115b9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_double_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ext_and_inner_struct_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ext_and_inner_struct_external.json new file mode 100644 index 00000000000..7a4f4dfd110 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_ext_and_inner_struct_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ext_and_inner_struct_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ext_struct_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ext_struct_external.json new file mode 100644 index 00000000000..09c96489393 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_ext_struct_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ext_struct_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_float_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_float_external.json new file mode 100644 index 00000000000..1b9718f0d56 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_float_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_long_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_long_external.json new file mode 100644 index 00000000000..ccea3212554 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_long_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_longdouble_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_longdouble_external.json new file mode 100644 index 00000000000..15215210b29 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_longdouble_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_longlong_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_longlong_external.json new file mode 100644 index 00000000000..ec880c9e632 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_longlong_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_map_short_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_map_short_external.json new file mode 100644 index 00000000000..b92065c2497 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_map_short_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_octet_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_octet_external.json new file mode 100644 index 00000000000..2b3655335f7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_octet_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_structure.json b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_structure.json new file mode 100644 index 00000000000..df540b14e85 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_structure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "recursive_structure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_1.json b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_1.json new file mode 100644 index 00000000000..adcf5982b4a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_1.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "recursive_test_1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_2.json b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_2.json new file mode 100644 index 00000000000..8b1f4e2cea8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_2.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "recursive_test_2" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_union_container.json b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_union_container.json new file mode 100644 index 00000000000..6eb039d5411 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_union_container.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "recursive_union_container" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_sequence_short_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_sequence_short_external.json new file mode 100644 index 00000000000..b97d83216c8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_sequence_short_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_short_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_short_external.json new file mode 100644 index 00000000000..0fd91fba201 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_short_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_string_bounded_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_string_bounded_external.json new file mode 100644 index 00000000000..37ca6b67501 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_string_bounded_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_string_unbounded_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_string_unbounded_external.json new file mode 100644 index 00000000000..3f281dcda0b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_string_unbounded_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_struct_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_struct_external.json new file mode 100644 index 00000000000..e990b359e65 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_struct_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_struct_external_optional.json b/test/dds/xtypes/TypesTestsCases/Case_external_struct_external_optional.json new file mode 100644 index 00000000000..ca622d79bb6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_struct_external_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_external_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ulong_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ulong_external.json new file mode 100644 index 00000000000..8f50609cd70 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_ulong_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ulonglong_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ulonglong_external.json new file mode 100644 index 00000000000..2ab073216c9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_ulonglong_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ushort_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ushort_external.json new file mode 100644 index 00000000000..6c764bd9c68 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_ushort_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_wchar_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_wchar_external.json new file mode 100644 index 00000000000..7823e1f6617 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_external_wchar_external.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalBooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalBooleanStruct.json new file mode 100644 index 00000000000..97945d4d24e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalBooleanStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalCharStruct.json new file mode 100644 index 00000000000..563baf4f442 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalDoubleStruct.json new file mode 100644 index 00000000000..c0bd31756a9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyInheritanceStruct.json new file mode 100644 index 00000000000..97493e9c1e9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyStruct.json new file mode 100644 index 00000000000..626da4f37ca --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalExtensibilityInheritance.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalExtensibilityInheritance.json new file mode 100644 index 00000000000..e4306b75d83 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalExtensibilityInheritance.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalFloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalFloatStruct.json new file mode 100644 index 00000000000..18bf9c2206f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalFloatStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalInheritanceStruct.json new file mode 100644 index 00000000000..f05e28e917f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongDoubleStruct.json new file mode 100644 index 00000000000..1cad78899db --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongLongStruct.json new file mode 100644 index 00000000000..f6b91dd0268 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongStruct.json new file mode 100644 index 00000000000..1c1058beb0a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalOctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalOctetStruct.json new file mode 100644 index 00000000000..0577ab7e530 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalOctetStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalShortStruct.json new file mode 100644 index 00000000000..84d26572cc8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongLongStruct.json new file mode 100644 index 00000000000..a31387adc56 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongStruct.json new file mode 100644 index 00000000000..3d144641f40 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalUShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalUShortStruct.json new file mode 100644 index 00000000000..b241c959ef8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalUShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalUnionStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalUnionStruct.json new file mode 100644 index 00000000000..8a7faeaea42 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalUnionStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalWCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalWCharStruct.json new file mode 100644 index 00000000000..e6c957b594a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_FinalWCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_InheritanceEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_InheritanceEmptyStruct.json new file mode 100644 index 00000000000..cd20c04ec13 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_final_InheritanceEmptyStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InheritanceEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerEmptyStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerEmptyStructureHelper.json new file mode 100644 index 00000000000..786feaf2d92 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerEmptyStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerEmptyStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerStructureHelper.json new file mode 100644 index 00000000000..6bae50f7832 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_BitsetsChildInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_BitsetsChildInheritanceStruct.json new file mode 100644 index 00000000000..d6ed56c8187 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_inheritance_BitsetsChildInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BitsetsChildInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerEmptyStructureHelperChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerEmptyStructureHelperChild.json new file mode 100644 index 00000000000..ab241d45614 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerEmptyStructureHelperChild.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerEmptyStructureHelperChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChild.json new file mode 100644 index 00000000000..5ae8c05d8fa --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChild.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChildChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChildChild.json new file mode 100644 index 00000000000..49ad4bba16b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChildChild.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperChildChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChild.json new file mode 100644 index 00000000000..2e852f80458 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChild.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperEmptyChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChildChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChildChild.json new file mode 100644 index 00000000000..98a2acb438d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChildChild.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperEmptyChildChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructAliasInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructAliasInheritanceStruct.json new file mode 100644 index 00000000000..33f5fc9fbfd --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructAliasInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructAliasInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructuresInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructuresInheritanceStruct.json new file mode 100644 index 00000000000..64469b42b2d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructuresInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructuresInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_InheritanceKeyedEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_InheritanceKeyedEmptyStruct.json new file mode 100644 index 00000000000..9a7ee43525a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_InheritanceKeyedEmptyStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InheritanceKeyedEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedBooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedBooleanStruct.json new file mode 100644 index 00000000000..3dfe91956c0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedBooleanStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedCharStruct.json new file mode 100644 index 00000000000..bd0251997ad --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedDoubleStruct.json new file mode 100644 index 00000000000..f865d4b7835 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyInheritanceStruct.json new file mode 100644 index 00000000000..e41824010f3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyStruct.json new file mode 100644 index 00000000000..6a6551ef08e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedFloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedFloatStruct.json new file mode 100644 index 00000000000..c6d9fc18866 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedFloatStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedInheritanceStruct.json new file mode 100644 index 00000000000..9011557f40d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongDoubleStruct.json new file mode 100644 index 00000000000..01fbc4ef27d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongLongStruct.json new file mode 100644 index 00000000000..90cc6ea46cc --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongStruct.json new file mode 100644 index 00000000000..cbd88702f33 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedOctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedOctetStruct.json new file mode 100644 index 00000000000..4a18464d1d4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedOctetStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedShortStruct.json new file mode 100644 index 00000000000..8e21fdd85f5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongLongStruct.json new file mode 100644 index 00000000000..88dd6e454bf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongStruct.json new file mode 100644 index 00000000000..228e61683e7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedUShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedUShortStruct.json new file mode 100644 index 00000000000..5e5940359e4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedUShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedWCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedWCharStruct.json new file mode 100644 index 00000000000..5f82adccb64 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedWCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedLargeMap.json b/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedLargeMap.json new file mode 100644 index 00000000000..25fabaae0d4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedLargeMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedLargeMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedSmallMap.json b/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedSmallMap.json new file mode 100644 index 00000000000..0d3334ff810 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedSmallMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedSmallMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperBoolean.json new file mode 100644 index 00000000000..d138e816378 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperChar.json new file mode 100644 index 00000000000..388ef4d7a5b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperDouble.json new file mode 100644 index 00000000000..f8cf67c3162 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperFloat.json new file mode 100644 index 00000000000..404c4e20ad6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.json new file mode 100644 index 00000000000..4bf3bb30b30 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..28fa8a57e70 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..6231170df83 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper.json new file mode 100644 index 00000000000..b5bd0e264b9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.json new file mode 100644 index 00000000000..8dfb094c895 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..06efe1858c2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.json new file mode 100644 index 00000000000..3fb9f97b1b3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper.json new file mode 100644 index 00000000000..9be88409e0f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper.json new file mode 100644 index 00000000000..862ea546e68 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper.json new file mode 100644 index 00000000000..26890d811e1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper.json new file mode 100644 index 00000000000..5cca7621d4b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLong.json new file mode 100644 index 00000000000..d169e24600e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongDouble.json new file mode 100644 index 00000000000..56774bdbc56 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongLong.json new file mode 100644 index 00000000000..d9bb5c969b0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperOctet.json new file mode 100644 index 00000000000..24454297214 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperShort.json new file mode 100644 index 00000000000..22c718eeb46 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperString.json new file mode 100644 index 00000000000..c5138570c97 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULong.json new file mode 100644 index 00000000000..c787780080f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULongLong.json new file mode 100644 index 00000000000..7fdfa726545 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperUShort.json new file mode 100644 index 00000000000..5f197ea2e34 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWChar.json new file mode 100644 index 00000000000..16561cbbe4f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWString.json new file mode 100644 index 00000000000..27b0c2129f7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperBoolean.json new file mode 100644 index 00000000000..c908f29dceb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperChar.json new file mode 100644 index 00000000000..5901060849e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperDouble.json new file mode 100644 index 00000000000..5145435d3f4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperFloat.json new file mode 100644 index 00000000000..432c6a3c611 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.json new file mode 100644 index 00000000000..1f61d5896d6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..af41969ff94 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..a2b71b64a6d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasHelper.json new file mode 100644 index 00000000000..64caa01fe35 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.json new file mode 100644 index 00000000000..06c4c8aa741 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..df901381771 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.json new file mode 100644 index 00000000000..92198766c79 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.json new file mode 100644 index 00000000000..23d5304b0d1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerEnumHelper.json new file mode 100644 index 00000000000..5adce8e63a6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerStructureHelper.json new file mode 100644 index 00000000000..86cb66f7489 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerUnionHelper.json new file mode 100644 index 00000000000..cba2406c687 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLong.json new file mode 100644 index 00000000000..6918eef611a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongDouble.json new file mode 100644 index 00000000000..9e130489ad2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongLong.json new file mode 100644 index 00000000000..5323cf43cd7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperOctet.json new file mode 100644 index 00000000000..8b996c42ce1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperShort.json new file mode 100644 index 00000000000..d392df37bb4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperString.json new file mode 100644 index 00000000000..dce04f74b80 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULong.json new file mode 100644 index 00000000000..e4de644b268 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULongLong.json new file mode 100644 index 00000000000..e939ec11a35 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperUShort.json new file mode 100644 index 00000000000..444a2fcda83 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWChar.json new file mode 100644 index 00000000000..a1db0c2b8d0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWString.json new file mode 100644 index 00000000000..43d2b7dd768 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedWStringHelperWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongLongValueDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongLongValueDouble.json new file mode 100644 index 00000000000..6440525aa54 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongLongValueDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapKeyULongLongValueDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongDouble.json new file mode 100644 index 00000000000..6a62f53530a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapKeyULongValueLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongLong.json new file mode 100644 index 00000000000..e7ffaaf9178 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapKeyULongValueLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongBoolean.json new file mode 100644 index 00000000000..9f64eafbd2d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongChar.json new file mode 100644 index 00000000000..bdadd86af89 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongDouble.json new file mode 100644 index 00000000000..73d3373f818 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongFloat.json new file mode 100644 index 00000000000..fd6dd4c398e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasArrayHelper.json new file mode 100644 index 00000000000..6f41eef77d3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..5d3b2faaaf8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..b544bce04f4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasHelper.json new file mode 100644 index 00000000000..e5d0f5775c7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasMapHelper.json new file mode 100644 index 00000000000..990718d8ae7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..f21abdaaef8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitMaskHelper.json new file mode 100644 index 00000000000..6f86fd5943b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitsetHelper.json new file mode 100644 index 00000000000..fb69da47b04 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerEnumHelper.json new file mode 100644 index 00000000000..fe2313f75cd --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerStructureHelper.json new file mode 100644 index 00000000000..8ee58698ceb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerUnionHelper.json new file mode 100644 index 00000000000..86245cde63e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongDoubleValue.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongDoubleValue.json new file mode 100644 index 00000000000..d7508a5b5de --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongDoubleValue.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongKeyLongDoubleValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongLongValue.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongLongValue.json new file mode 100644 index 00000000000..4021b20fdae --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongLongValue.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongKeyLongLongValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLong.json new file mode 100644 index 00000000000..df663add63c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongBoolean.json new file mode 100644 index 00000000000..4418eff4f97 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongChar.json new file mode 100644 index 00000000000..d4a1a230fbf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongFloat.json new file mode 100644 index 00000000000..414696bd698 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasArrayHelper.json new file mode 100644 index 00000000000..1a2797b0345 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..ecdc72a06ea --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..e0bb9dd8941 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasHelper.json new file mode 100644 index 00000000000..02d7f3984ef --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasMapHelper.json new file mode 100644 index 00000000000..3cb5cd7c33c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..14573b23066 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitMaskHelper.json new file mode 100644 index 00000000000..bb6ce42ce94 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitsetHelper.json new file mode 100644 index 00000000000..21dd4c8dae2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerEnumHelper.json new file mode 100644 index 00000000000..a2c5c74a6f1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerStructureHelper.json new file mode 100644 index 00000000000..dd69acdf0e8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerUnionHelper.json new file mode 100644 index 00000000000..5a3f3b9be38 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyDoubleValue.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyDoubleValue.json new file mode 100644 index 00000000000..54b04e22e74 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyDoubleValue.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongKeyDoubleValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyLongValue.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyLongValue.json new file mode 100644 index 00000000000..2a05d04adf5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyLongValue.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongKeyLongValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongDouble.json new file mode 100644 index 00000000000..322eb9adb66 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongLong.json new file mode 100644 index 00000000000..4c5d74782b6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongOctet.json new file mode 100644 index 00000000000..01489b6dd71 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongShort.json new file mode 100644 index 00000000000..4abe4c2e026 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongString.json new file mode 100644 index 00000000000..3d7606ba324 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULong.json new file mode 100644 index 00000000000..95c14efded4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULongLong.json new file mode 100644 index 00000000000..756799d5b6b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongUShort.json new file mode 100644 index 00000000000..83d789bc9ef --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWChar.json new file mode 100644 index 00000000000..48971c8dcd4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWString.json new file mode 100644 index 00000000000..a7219fb4275 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongOctet.json new file mode 100644 index 00000000000..ffaad3d3a3d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongShort.json new file mode 100644 index 00000000000..52cffde1462 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongString.json new file mode 100644 index 00000000000..cb2f3417a8a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULong.json new file mode 100644 index 00000000000..92d3d98581e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULongLong.json new file mode 100644 index 00000000000..a9f1bae2abe --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongUShort.json new file mode 100644 index 00000000000..45e3a56da67 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWChar.json new file mode 100644 index 00000000000..b99514bcd8e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWString.json new file mode 100644 index 00000000000..7ff8ee32fe6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortBoolean.json new file mode 100644 index 00000000000..fe47f717664 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortChar.json new file mode 100644 index 00000000000..09cee0716ff --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortDouble.json new file mode 100644 index 00000000000..d007fce90ae --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortFloat.json new file mode 100644 index 00000000000..f60c3d948fe --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasArrayHelper.json new file mode 100644 index 00000000000..1ff0dbbc740 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..798538b6fea --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..27c1454f191 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasHelper.json new file mode 100644 index 00000000000..bb0b864e92c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasMapHelper.json new file mode 100644 index 00000000000..4102abd3b5b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..2158503a5e9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitMaskHelper.json new file mode 100644 index 00000000000..a77565b3754 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitsetHelper.json new file mode 100644 index 00000000000..3b6248eb997 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerEnumHelper.json new file mode 100644 index 00000000000..7075b364126 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerStructureHelper.json new file mode 100644 index 00000000000..79d07c70dee --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerUnionHelper.json new file mode 100644 index 00000000000..b18c5df90df --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLong.json new file mode 100644 index 00000000000..d386e7f213d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongDouble.json new file mode 100644 index 00000000000..ce01e75de11 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongLong.json new file mode 100644 index 00000000000..2edb07be312 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortOctet.json new file mode 100644 index 00000000000..5426a3142c0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortShort.json new file mode 100644 index 00000000000..375a94803f9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortString.json new file mode 100644 index 00000000000..9b9024a72de --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULong.json new file mode 100644 index 00000000000..cd1721d37fd --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULongLong.json new file mode 100644 index 00000000000..6234efbded4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortUShort.json new file mode 100644 index 00000000000..eac60b7d458 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWChar.json new file mode 100644 index 00000000000..66b6eed6f4c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWString.json new file mode 100644 index 00000000000..9b0315c463f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringBoolean.json new file mode 100644 index 00000000000..4c58cb851d8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringChar.json new file mode 100644 index 00000000000..14a4672050d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringDouble.json new file mode 100644 index 00000000000..58cf06240e3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringFloat.json new file mode 100644 index 00000000000..6ccf2efc4f2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasArrayHelper.json new file mode 100644 index 00000000000..5be26e23b26 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..2525764b3c6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..5cb5c63ba76 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasHelper.json new file mode 100644 index 00000000000..c03bc1dc22b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasMapHelper.json new file mode 100644 index 00000000000..31c1f0e1f2c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..9358f4423c2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitMaskHelper.json new file mode 100644 index 00000000000..4b2046fe610 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitsetHelper.json new file mode 100644 index 00000000000..5c044eb0b4a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerEnumHelper.json new file mode 100644 index 00000000000..954423fcf83 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerStructureHelper.json new file mode 100644 index 00000000000..31b0915a730 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerUnionHelper.json new file mode 100644 index 00000000000..c845d612a61 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLong.json new file mode 100644 index 00000000000..f490eb537ff --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongDouble.json new file mode 100644 index 00000000000..58b23a014e9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongLong.json new file mode 100644 index 00000000000..7145bf5ff06 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringOctet.json new file mode 100644 index 00000000000..25c5882a64a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringShort.json new file mode 100644 index 00000000000..1d2b7624f01 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringString.json new file mode 100644 index 00000000000..fb8e0427651 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULong.json new file mode 100644 index 00000000000..b99bd060f71 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULongLong.json new file mode 100644 index 00000000000..46692371c5f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringUShort.json new file mode 100644 index 00000000000..7b9a7b440b7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWChar.json new file mode 100644 index 00000000000..1e2056c88ec --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWString.json new file mode 100644 index 00000000000..c65768ba138 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongBoolean.json new file mode 100644 index 00000000000..822419b8859 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongChar.json new file mode 100644 index 00000000000..02b318ba43c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongDouble.json new file mode 100644 index 00000000000..488afae3bc7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongFloat.json new file mode 100644 index 00000000000..22e29f86b54 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasArrayHelper.json new file mode 100644 index 00000000000..d5abecc166a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..1817e9ba7da --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..f7c35a729ff --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasHelper.json new file mode 100644 index 00000000000..0aa247a5227 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasMapHelper.json new file mode 100644 index 00000000000..ef14441d9a3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..c35527c891f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitMaskHelper.json new file mode 100644 index 00000000000..07ae831962b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitsetHelper.json new file mode 100644 index 00000000000..21fc0ab9631 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerEnumHelper.json new file mode 100644 index 00000000000..56f46a908a7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerStructureHelper.json new file mode 100644 index 00000000000..2defeeccede --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerUnionHelper.json new file mode 100644 index 00000000000..4a5a3f32737 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLong.json new file mode 100644 index 00000000000..d1e316925ee --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongBoolean.json new file mode 100644 index 00000000000..1845c40d36d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongChar.json new file mode 100644 index 00000000000..25e07668d77 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongFloat.json new file mode 100644 index 00000000000..3cd601ca537 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasArrayHelper.json new file mode 100644 index 00000000000..d8f44ee3797 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..2686a6dc842 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..1be30c642f2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasHelper.json new file mode 100644 index 00000000000..80de62f43d3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasMapHelper.json new file mode 100644 index 00000000000..94ee798884e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..e5766bd61be --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitMaskHelper.json new file mode 100644 index 00000000000..af2bc6e22f7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitsetHelper.json new file mode 100644 index 00000000000..716d10b350e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerEnumHelper.json new file mode 100644 index 00000000000..e5b2f363e98 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerStructureHelper.json new file mode 100644 index 00000000000..d718cd17b56 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerUnionHelper.json new file mode 100644 index 00000000000..69d78b59020 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLong.json new file mode 100644 index 00000000000..827a06b0f51 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongDouble.json new file mode 100644 index 00000000000..77cfb53e176 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongLong.json new file mode 100644 index 00000000000..e90f3140472 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongOctet.json new file mode 100644 index 00000000000..dd183be2c58 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongShort.json new file mode 100644 index 00000000000..296b5517313 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongString.json new file mode 100644 index 00000000000..d88845fe2ca --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULong.json new file mode 100644 index 00000000000..32ac26bf713 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULongLong.json new file mode 100644 index 00000000000..8d33fd9f50f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongUShort.json new file mode 100644 index 00000000000..723243f383d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWChar.json new file mode 100644 index 00000000000..816a0b6fcc0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWString.json new file mode 100644 index 00000000000..5c522bdfc93 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongOctet.json new file mode 100644 index 00000000000..0f7da027277 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongShort.json new file mode 100644 index 00000000000..038d3ff3afc --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongString.json new file mode 100644 index 00000000000..82fe00d9203 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULong.json new file mode 100644 index 00000000000..47e0e72f678 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULongLong.json new file mode 100644 index 00000000000..f83aedfc700 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongUShort.json new file mode 100644 index 00000000000..4cf7477e6f2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWChar.json new file mode 100644 index 00000000000..df973d738f2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWString.json new file mode 100644 index 00000000000..c95fa869e58 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortBoolean.json new file mode 100644 index 00000000000..fba672daad2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortChar.json new file mode 100644 index 00000000000..3a1943b83d7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortDouble.json new file mode 100644 index 00000000000..1d82d380554 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortFloat.json new file mode 100644 index 00000000000..48b459d966f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasArrayHelper.json new file mode 100644 index 00000000000..3fb74b37c49 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..d7bbe7b89d4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..e0f4cebb15c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasHelper.json new file mode 100644 index 00000000000..18021e6af54 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasMapHelper.json new file mode 100644 index 00000000000..e503705e8a3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..744d1066a03 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitMaskHelper.json new file mode 100644 index 00000000000..72124e498fb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitsetHelper.json new file mode 100644 index 00000000000..5d0d70f82f0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerEnumHelper.json new file mode 100644 index 00000000000..f0f0d2ee688 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerStructureHelper.json new file mode 100644 index 00000000000..86a81ce459f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerUnionHelper.json new file mode 100644 index 00000000000..307829e8f33 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLong.json new file mode 100644 index 00000000000..1aae19621b8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongDouble.json new file mode 100644 index 00000000000..44aa3360a13 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongLong.json new file mode 100644 index 00000000000..b38bc1ec2cb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortOctet.json new file mode 100644 index 00000000000..a146631cd56 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortShort.json new file mode 100644 index 00000000000..dfb0af632c6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortString.json new file mode 100644 index 00000000000..4bce3939d48 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULong.json new file mode 100644 index 00000000000..60ee3457114 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULongLong.json new file mode 100644 index 00000000000..68dccbd8c41 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortUShort.json new file mode 100644 index 00000000000..a3d8a3c5fb5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWChar.json new file mode 100644 index 00000000000..ce0ad9cd238 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWString.json new file mode 100644 index 00000000000..09d412aa2e0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringBoolean.json new file mode 100644 index 00000000000..bd8ddf58136 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringChar.json new file mode 100644 index 00000000000..017dc16aff7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringDouble.json new file mode 100644 index 00000000000..fabe8dbec63 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringFloat.json new file mode 100644 index 00000000000..2feb0d83b5d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasArrayHelper.json new file mode 100644 index 00000000000..f869274e2a4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasArrayHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedStringHelper.json new file mode 100644 index 00000000000..45b35d02073 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedWStringHelper.json new file mode 100644 index 00000000000..ab9a05656d3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedWStringHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasHelper.json new file mode 100644 index 00000000000..1ac982c4856 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasMapHelper.json new file mode 100644 index 00000000000..55ce7be90d8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasMapHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasSequenceHelper.json new file mode 100644 index 00000000000..080c95bd1dd --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasSequenceHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitMaskHelper.json new file mode 100644 index 00000000000..92ebd99fe14 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitsetHelper.json new file mode 100644 index 00000000000..067ea4cb09a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerEnumHelper.json new file mode 100644 index 00000000000..259c200ca71 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerStructureHelper.json new file mode 100644 index 00000000000..dee6d076445 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerUnionHelper.json new file mode 100644 index 00000000000..01a58c455d9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLong.json new file mode 100644 index 00000000000..e6a16186e82 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongDouble.json new file mode 100644 index 00000000000..10c85ab38e9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongLong.json new file mode 100644 index 00000000000..7f88178411b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringOctet.json new file mode 100644 index 00000000000..663dbc2410b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringShort.json new file mode 100644 index 00000000000..f67dae1edb2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringString.json new file mode 100644 index 00000000000..94c6aa7674a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULong.json new file mode 100644 index 00000000000..fdb9449698c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULongLong.json new file mode 100644 index 00000000000..68e6395c87d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringUShort.json new file mode 100644 index 00000000000..e0149da403a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWChar.json new file mode 100644 index 00000000000..7db6f0862e5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWString.json new file mode 100644 index 00000000000..d908a1bca2a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapWStringWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidDefault.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidDefault.json new file mode 100644 index 00000000000..f7e992fdc2b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidDefault.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AutoidDefault" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidHash.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidHash.json new file mode 100644 index 00000000000..a7d34fa2379 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidHash.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AutoidHash" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidSequential.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidSequential.json new file mode 100644 index 00000000000..7b5d8f2e629 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidSequential.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AutoidSequential" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidDefault.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidDefault.json new file mode 100644 index 00000000000..cc592296791 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidDefault.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DerivedAutoidDefault" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidHash.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidHash.json new file mode 100644 index 00000000000..b7c9491fc9f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidHash.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DerivedAutoidHash" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidSequential.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidSequential.json new file mode 100644 index 00000000000..b14a36ddfeb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidSequential.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DerivedAutoidSequential" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedEmptyAutoidSequential.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedEmptyAutoidSequential.json new file mode 100644 index 00000000000..88b893b6464 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedEmptyAutoidSequential.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DerivedEmptyAutoidSequential" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashid.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashid.json new file mode 100644 index 00000000000..1443f6aa84b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashid.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixHashid" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashidDefault.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashidDefault.json new file mode 100644 index 00000000000..f5fd1208091 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashidDefault.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixHashidDefault" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHexId.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHexId.json new file mode 100644 index 00000000000..3c809410398 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHexId.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixHexId" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixId.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixId.json new file mode 100644 index 00000000000..ecd09936fd1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixId.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixId" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixMix.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixMix.json new file mode 100644 index 00000000000..cd7372c468f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixMix.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixMix" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableBooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableBooleanStruct.json new file mode 100644 index 00000000000..cd3eeda6cb6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableBooleanStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableCharStruct.json new file mode 100644 index 00000000000..20631ab1281 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableDoubleStruct.json new file mode 100644 index 00000000000..af2dab8ec42 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyInheritanceStruct.json new file mode 100644 index 00000000000..f2a60665e83 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyStruct.json new file mode 100644 index 00000000000..c3a02f964d5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableExtensibilityInheritance.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableExtensibilityInheritance.json new file mode 100644 index 00000000000..2f1bba68e5e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableExtensibilityInheritance.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableFloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableFloatStruct.json new file mode 100644 index 00000000000..0d5d82cd05b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableFloatStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceEmptyStruct.json new file mode 100644 index 00000000000..f0955c3f0bf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceEmptyStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableInheritanceEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceStruct.json new file mode 100644 index 00000000000..b2208a362ab --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongDoubleStruct.json new file mode 100644 index 00000000000..e75b4aae4e6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongLongStruct.json new file mode 100644 index 00000000000..6ba066332ff --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongStruct.json new file mode 100644 index 00000000000..06f86a41059 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableOctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableOctetStruct.json new file mode 100644 index 00000000000..a546077128a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableOctetStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableShortStruct.json new file mode 100644 index 00000000000..520c1546866 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongLongStruct.json new file mode 100644 index 00000000000..9a710e78761 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongStruct.json new file mode 100644 index 00000000000..e1ad3f6c782 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUShortStruct.json new file mode 100644 index 00000000000..3635126e1be --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUnionStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUnionStruct.json new file mode 100644 index 00000000000..1ba73b2dd00 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUnionStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableWCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableWCharStruct.json new file mode 100644 index 00000000000..43cd975824a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableWCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_InnerStructOptional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_InnerStructOptional.json new file mode 100644 index 00000000000..e5723622cbc --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_InnerStructOptional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructOptional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_1_optional.json new file mode 100644 index 00000000000..6eb6ad4d030 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_2_optional.json new file mode 100644 index 00000000000..7e6c6992fac --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_4_optional.json new file mode 100644 index 00000000000..5dcaed9a918 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_optional.json new file mode 100644 index 00000000000..1426ad1452d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_1_optional.json new file mode 100644 index 00000000000..88fde5ddc1b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_2_optional.json new file mode 100644 index 00000000000..86a41c9d99a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_4_optional.json new file mode 100644 index 00000000000..7538d9374fe --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_optional.json new file mode 100644 index 00000000000..e7b9e07dd4e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_1_optional.json new file mode 100644 index 00000000000..93b67e1c808 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_2_optional.json new file mode 100644 index 00000000000..4fc7ca1f911 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_4_optional.json new file mode 100644 index 00000000000..d1f750bc5e4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_char_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_char_optional.json new file mode 100644 index 00000000000..252509d3b1d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_char_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_1_optional.json new file mode 100644 index 00000000000..d8ba138eb57 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_2_optional.json new file mode 100644 index 00000000000..2823814d05e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_4_optional.json new file mode 100644 index 00000000000..b3fe1bb7a80 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_double_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_double_optional.json new file mode 100644 index 00000000000..b1a3037475c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_double_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_1_optional.json new file mode 100644 index 00000000000..6fdd31e47ee --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_2_optional.json new file mode 100644 index 00000000000..5d0479563ca --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_4_optional.json new file mode 100644 index 00000000000..ba607c1460f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_float_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_float_optional.json new file mode 100644 index 00000000000..29545363add --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_float_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_1_optional.json new file mode 100644 index 00000000000..6eb705c58ba --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_2_optional.json new file mode 100644 index 00000000000..cc4b0f84982 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_4_optional.json new file mode 100644 index 00000000000..396aec76df3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_long_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_long_optional.json new file mode 100644 index 00000000000..b7fd48646ee --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_long_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_1_optional.json new file mode 100644 index 00000000000..6fc634a5350 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_2_optional.json new file mode 100644 index 00000000000..ffc53d5ffcb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_4_optional.json new file mode 100644 index 00000000000..b7506890215 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_optional.json new file mode 100644 index 00000000000..5c1f173b168 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_1_optional.json new file mode 100644 index 00000000000..0127961ef50 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_2_optional.json new file mode 100644 index 00000000000..957fad4a1a8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_4_optional.json new file mode 100644 index 00000000000..27a10289c8b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_optional.json new file mode 100644 index 00000000000..3b137f79116 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_1_optional.json new file mode 100644 index 00000000000..e78686563e9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_2_optional.json new file mode 100644 index 00000000000..ec7146c8252 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_4_optional.json new file mode 100644 index 00000000000..bcb54490571 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_optional.json new file mode 100644 index 00000000000..316c8f62763 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_1_optional.json new file mode 100644 index 00000000000..f9f4ba29c7f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_2_optional.json new file mode 100644 index 00000000000..8371465307e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_4_optional.json new file mode 100644 index 00000000000..77550822729 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_optional.json new file mode 100644 index 00000000000..a7acf916531 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_1_optional.json new file mode 100644 index 00000000000..d5bbc5ec9ec --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_2_optional.json new file mode 100644 index 00000000000..e196ef47397 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_4_optional.json new file mode 100644 index 00000000000..75c56738b0b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_optional.json new file mode 100644 index 00000000000..eec3d576e6c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "opt_struct_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_1_optional.json new file mode 100644 index 00000000000..409e40d20c8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_2_optional.json new file mode 100644 index 00000000000..84ff048a995 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_4_optional.json new file mode 100644 index 00000000000..5fdd80ccedf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_optional.json new file mode 100644 index 00000000000..169ba1b3929 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_1_optional.json new file mode 100644 index 00000000000..c01e240cf46 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_2_optional.json new file mode 100644 index 00000000000..32d8e6d8d15 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_4_optional.json new file mode 100644 index 00000000000..191d8423052 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_short_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_short_optional.json new file mode 100644 index 00000000000..c9da0bab0e5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_short_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_1_optional.json new file mode 100644 index 00000000000..cfe44e1ec5a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_2_optional.json new file mode 100644 index 00000000000..6bd08414077 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_4_optional.json new file mode 100644 index 00000000000..b87c3a4b9cc --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_optional.json new file mode 100644 index 00000000000..43690830057 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_1_optional.json new file mode 100644 index 00000000000..e0071a09c58 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_2_optional.json new file mode 100644 index 00000000000..7f08aead51d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_4_optional.json new file mode 100644 index 00000000000..0a40e5d1569 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_optional.json new file mode 100644 index 00000000000..ab620d62de6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_1_optional.json new file mode 100644 index 00000000000..d0a16a05c01 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_2_optional.json new file mode 100644 index 00000000000..43b78038fe4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_4_optional.json new file mode 100644 index 00000000000..7fe66da5a5e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_optional.json new file mode 100644 index 00000000000..7a2627e7334 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_1_optional.json new file mode 100644 index 00000000000..245deb10956 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_2_optional.json new file mode 100644 index 00000000000..75e4192ae46 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_4_optional.json new file mode 100644 index 00000000000..e1c44daf2f4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_optional.json new file mode 100644 index 00000000000..de75c295191 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_1_optional.json new file mode 100644 index 00000000000..a135ba72dcb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_2_optional.json new file mode 100644 index 00000000000..c4aa678464e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_4_optional.json new file mode 100644 index 00000000000..40a98295712 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_optional.json new file mode 100644 index 00000000000..9d841b99f40 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_1_optional.json new file mode 100644 index 00000000000..db84b0d60b9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_2_optional.json new file mode 100644 index 00000000000..617e6aeef8d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_4_optional.json new file mode 100644 index 00000000000..45d5de15d6a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_optional.json new file mode 100644 index 00000000000..3a7d5be1a94 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_1_optional.json new file mode 100644 index 00000000000..f97443d2d85 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_1_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_2_optional.json new file mode 100644 index 00000000000..bb4071d5221 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_2_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_4_optional.json new file mode 100644 index 00000000000..34cdd791f2e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_4_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_optional.json new file mode 100644 index 00000000000..660a1f70bee --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_optional.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_BooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_BooleanStruct.json new file mode 100644 index 00000000000..659e4f53c8a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_BooleanStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_CharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_CharStruct.json new file mode 100644 index 00000000000..4d9c372822c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_CharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "CharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_DoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_DoubleStruct.json new file mode 100644 index 00000000000..22e3dfdcc16 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_DoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_FloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_FloatStruct.json new file mode 100644 index 00000000000..db47aee2498 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_FloatStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int16Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int16Struct.json new file mode 100644 index 00000000000..4e81289772b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int16Struct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Int16Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int32Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int32Struct.json new file mode 100644 index 00000000000..c44fd54023b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int32Struct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Int32Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int64Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int64Struct.json new file mode 100644 index 00000000000..7605a815035 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int64Struct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Int64Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int8Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int8Struct.json new file mode 100644 index 00000000000..69352e739da --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int8Struct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Int8Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongDoubleStruct.json new file mode 100644 index 00000000000..f1738a5d0d2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongDoubleStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongLongStruct.json new file mode 100644 index 00000000000..43fd60cfb90 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongStruct.json new file mode 100644 index 00000000000..412cdf9be15 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_OctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_OctetStruct.json new file mode 100644 index 00000000000..97bfa637228 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_OctetStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "OctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_ShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_ShortStruct.json new file mode 100644 index 00000000000..829851f6281 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_ShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongLongStruct.json new file mode 100644 index 00000000000..e7b4d2db3cf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongLongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongStruct.json new file mode 100644 index 00000000000..f49e607964e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_UShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_UShortStruct.json new file mode 100644 index 00000000000..5377b06c5b1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_UShortStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint16Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint16Struct.json new file mode 100644 index 00000000000..97f81462b19 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint16Struct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Uint16Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint32Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint32Struct.json new file mode 100644 index 00000000000..6f1ae5fc89f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint32Struct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Uint32Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint64Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint64Struct.json new file mode 100644 index 00000000000..a7b7c72166e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint64Struct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Uint64Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint8Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint8Struct.json new file mode 100644 index 00000000000..40a593fa3a4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint8Struct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Uint8Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_WCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_WCharStruct.json new file mode 100644 index 00000000000..1101850281d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_primitives_WCharStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "WCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedBigSequences.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedBigSequences.json new file mode 100644 index 00000000000..e6b96e0a918 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedBigSequences.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedBigSequences" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedSmallSequences.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedSmallSequences.json new file mode 100644 index 00000000000..f0c93b6c584 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedSmallSequences.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedSmallSequences" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceAlias.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceAlias.json new file mode 100644 index 00000000000..bbd03dd0317 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceAlias.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitMask.json new file mode 100644 index 00000000000..1249c62ba07 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitMask.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitset.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitset.json new file mode 100644 index 00000000000..6257e8fc1fa --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitset.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBoolean.json new file mode 100644 index 00000000000..f5580c80153 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceChar.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceChar.json new file mode 100644 index 00000000000..b96977bf13c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceDouble.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceDouble.json new file mode 100644 index 00000000000..7d26203c6c5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceEnum.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceEnum.json new file mode 100644 index 00000000000..4321ccccf4a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceEnum.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceFloat.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceFloat.json new file mode 100644 index 00000000000..36e2d9f8ced --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLong.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLong.json new file mode 100644 index 00000000000..ff0316218b8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongDouble.json new file mode 100644 index 00000000000..0eda4d2adc4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongLong.json new file mode 100644 index 00000000000..c7f01069b09 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceMap.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceMap.json new file mode 100644 index 00000000000..00c3a1ca5ce --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceOctet.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceOctet.json new file mode 100644 index 00000000000..bf28ab3ca3a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceSequence.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceSequence.json new file mode 100644 index 00000000000..093bedab292 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceSequence.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShort.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShort.json new file mode 100644 index 00000000000..4eb02b886e9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShortArray.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShortArray.json new file mode 100644 index 00000000000..765ae702517 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShortArray.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceString.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceString.json new file mode 100644 index 00000000000..b4d2bc11c2c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStringBounded.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStringBounded.json new file mode 100644 index 00000000000..72c750f3ef5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStringBounded.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceStringBounded" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStructure.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStructure.json new file mode 100644 index 00000000000..dc175c8ebe6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULong.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULong.json new file mode 100644 index 00000000000..772cc01240b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULongLong.json new file mode 100644 index 00000000000..e4883e1a673 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUShort.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUShort.json new file mode 100644 index 00000000000..56bb3ab924e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUnion.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUnion.json new file mode 100644 index 00000000000..961f127b050 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUnion.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWChar.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWChar.json new file mode 100644 index 00000000000..1457bc431c1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWString.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWString.json new file mode 100644 index 00000000000..5e74a61f890 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWStringBounded.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWStringBounded.json new file mode 100644 index 00000000000..d15f56b280f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWStringBounded.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceWStringBounded" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_LargeStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_LargeStringStruct.json new file mode 100644 index 00000000000..ea4e88ed1d1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_strings_LargeStringStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LargeStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_LargeWStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_LargeWStringStruct.json new file mode 100644 index 00000000000..0d5e405a40e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_strings_LargeWStringStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LargeWStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_SmallStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_SmallStringStruct.json new file mode 100644 index 00000000000..047d3671ec0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_strings_SmallStringStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SmallStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_SmallWStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_SmallWStringStruct.json new file mode 100644 index 00000000000..aed42bc615c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_strings_SmallWStringStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SmallWStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_StringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_StringStruct.json new file mode 100644 index 00000000000..e52440a2d7c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_strings_StringStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_WStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_WStringStruct.json new file mode 100644 index 00000000000..77b46402ce3 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_strings_WStringStruct.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "WStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructAlias.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructAlias.json new file mode 100644 index 00000000000..b57c642b8fb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructAlias.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitMask.json new file mode 100644 index 00000000000..dbaa022cba8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitMask.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitset.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitset.json new file mode 100644 index 00000000000..10a3fa8c214 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitset.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoolean.json new file mode 100644 index 00000000000..0669d9d6e3b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedString.json new file mode 100644 index 00000000000..02eae64c85e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedWString.json new file mode 100644 index 00000000000..6f9751adcdb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar16.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar16.json new file mode 100644 index 00000000000..677072c1d52 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar16.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructChar16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar8.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar8.json new file mode 100644 index 00000000000..cf70d9d9f0d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar8.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructChar8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructDouble.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructDouble.json new file mode 100644 index 00000000000..071ed087ef5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructEmpty.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructEmpty.json new file mode 100644 index 00000000000..6bc26cc5f52 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructEmpty.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructEmpty" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructEnum.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructEnum.json new file mode 100644 index 00000000000..6bbc8dbbaa9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructEnum.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructFloat.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructFloat.json new file mode 100644 index 00000000000..45aa1fee4eb --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLong.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLong.json new file mode 100644 index 00000000000..5ba35e56cef --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongDouble.json new file mode 100644 index 00000000000..7e7de30e59f --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongLong.json new file mode 100644 index 00000000000..fafe86af6f1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructMap.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructMap.json new file mode 100644 index 00000000000..93223953838 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructOctet.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructOctet.json new file mode 100644 index 00000000000..b64fd7e90d4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructSequence.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructSequence.json new file mode 100644 index 00000000000..07020f0a2e1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructSequence.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructShort.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructShort.json new file mode 100644 index 00000000000..048b37f8226 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructShortArray.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructShortArray.json new file mode 100644 index 00000000000..6b9e5384b8a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructShortArray.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructString.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructString.json new file mode 100644 index 00000000000..19cb1ed16ee --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructStructure.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructStructure.json new file mode 100644 index 00000000000..3895fbb5773 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructStructure.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnion.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnion.json new file mode 100644 index 00000000000..637603d6648 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnion.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLong.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLong.json new file mode 100644 index 00000000000..ac5262b0e73 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructUnsignedLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLongLong.json new file mode 100644 index 00000000000..17725004375 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructUnsignedLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedShort.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedShort.json new file mode 100644 index 00000000000..cae29f900c7 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructUnsignedShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructWString.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructWString.json new file mode 100644 index 00000000000..5a8ecb17fc2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_StructWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_Structures.json b/test/dds/xtypes/TypesTestsCases/Case_structures_Structures.json new file mode 100644 index 00000000000..9a7aca1f6a1 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_Structures.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Structures" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_bar.json b/test/dds/xtypes/TypesTestsCases/Case_structures_bar.json new file mode 100644 index 00000000000..d43a579ca59 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_bar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "bar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json b/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json new file mode 100644 index 00000000000..4a3ee232dfa --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "foo" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_root1.json b/test/dds/xtypes/TypesTestsCases/Case_structures_root1.json new file mode 100644 index 00000000000..5ffb44a244b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_root1.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "root1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_root2.json b/test/dds/xtypes/TypesTestsCases/Case_structures_root2.json new file mode 100644 index 00000000000..3d1edde3816 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_root2.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "root2" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionArray.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionArray.json new file mode 100644 index 00000000000..fd72b38bf4e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionArray.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoolean.json new file mode 100644 index 00000000000..1ced5a31c89 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedString.json new file mode 100644 index 00000000000..6e56e1144e8 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedWString.json new file mode 100644 index 00000000000..e35aeb64b3e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionChar.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionChar.json new file mode 100644 index 00000000000..cf986805d66 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorAlias.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorAlias.json new file mode 100644 index 00000000000..94931fb4270 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorAlias.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorBoolean.json new file mode 100644 index 00000000000..23f58eb1fba --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorBoolean.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorChar.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorChar.json new file mode 100644 index 00000000000..7d699965536 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnum.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnum.json new file mode 100644 index 00000000000..8366d22c616 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnum.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnumLabel.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnumLabel.json new file mode 100644 index 00000000000..877201d14fc --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnumLabel.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorEnumLabel" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLong.json new file mode 100644 index 00000000000..118e15280b6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLongLong.json new file mode 100644 index 00000000000..944f9472590 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorOctet.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorOctet.json new file mode 100644 index 00000000000..3c3d9f3e906 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorShort.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorShort.json new file mode 100644 index 00000000000..45cdc6287b9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULong.json new file mode 100644 index 00000000000..4a8f2b5854c --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULongLong.json new file mode 100644 index 00000000000..32e30e4b4d6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorUShort.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorUShort.json new file mode 100644 index 00000000000..eabe5f38f03 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorWChar.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorWChar.json new file mode 100644 index 00000000000..c3ec76c9b52 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDouble.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDouble.json new file mode 100644 index 00000000000..e6fa6403139 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionFloat.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionFloat.json new file mode 100644 index 00000000000..6b7910ec511 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionFloat.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerAliasHelper.json new file mode 100644 index 00000000000..7e2ec15b81e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerAliasHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitMaskHelper.json new file mode 100644 index 00000000000..6e17fa78590 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitMaskHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitsetHelper.json new file mode 100644 index 00000000000..10344cb46b0 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitsetHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerEnumHelper.json new file mode 100644 index 00000000000..56e359cfedd --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerEnumHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerStructureHelper.json new file mode 100644 index 00000000000..cd7b1ca1ded --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerStructureHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerUnionHelper.json new file mode 100644 index 00000000000..203db97765b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerUnionHelper.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLong.json new file mode 100644 index 00000000000..445d48fb6d6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongDouble.json new file mode 100644 index 00000000000..740598fc780 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongDouble.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongLong.json new file mode 100644 index 00000000000..52231305be4 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionMap.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionMap.json new file mode 100644 index 00000000000..a1ff8de9945 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionMap.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionOctet.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionOctet.json new file mode 100644 index 00000000000..1af20ff67d2 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionOctet.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionSequence.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionSequence.json new file mode 100644 index 00000000000..36af772396d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionSequence.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionShort.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionShort.json new file mode 100644 index 00000000000..7e569a73f31 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionString.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionString.json new file mode 100644 index 00000000000..d7584ba7a51 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULong.json new file mode 100644 index 00000000000..db6dc2d4abf --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULongLong.json new file mode 100644 index 00000000000..0f57717b396 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULongLong.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionUShort.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionUShort.json new file mode 100644 index 00000000000..94fff93bd1e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionUShort.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWChar.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWChar.json new file mode 100644 index 00000000000..30be0313f07 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWChar.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWString.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWString.json new file mode 100644 index 00000000000..f6cd0bf9ea5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWString.json @@ -0,0 +1,20 @@ +{ + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index e5f216b475d..2dc4969e7ae 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -67,7 +67,7 @@ def execute_commands(commands, logger): for command in commands: logger.info(f'Executing: {command}') processes.append(subprocess.Popen(command)) - time.sleep(0.5) # Delay for consistency + time.sleep(0.1) # Delay for consistency ret_value = 0 diff --git a/test/dds/xtypes/update_header_and_create_cases.py b/test/dds/xtypes/update_header_and_create_cases.py new file mode 100755 index 00000000000..e250b7f1d16 --- /dev/null +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -0,0 +1,211 @@ +import os +import sys +import re +import json + +class IDLProcessor: + def __init__(self): + self.idl_without_typeobjects = {"XtypesTestsTypeNoTypeObject", "declarations", "external"} + self.struct_info = set() + + def process_idl_files(self, folder_path): + # Search for .idl files in the specified folder and its subdirectories + print("Searching for .idl files...") + for root, dirs, files in os.walk(folder_path): + for file_name in files: + if file_name.endswith('.idl'): + file_path = os.path.join(root, file_name) + print(f"Found .idl file: {file_path}") + # Get the relative path of the .idl file from the specified folder + idl_file_relative_path = os.path.relpath(file_path, folder_path) + # Remove the file extension to get the IDL file name + idl_file_name = os.path.splitext(idl_file_relative_path)[0] + with open(file_path, 'r') as file: + content = file.read() + # Find all struct declarations in the IDL file + matches = re.findall(r'(?:module\s+(\w+)\s*\{([\s\S]*?)\})|(struct\s+(\w+))', content) + for match in matches: + module_name, module_content, struct_declaration, struct_name = match + if module_name: + # Struct declared inside a module + structs = re.findall(r'struct\s+(\w+)', module_content) + for struct in structs: + # Store struct information along with the IDL file name and module name + self.struct_info.add((struct, idl_file_name, module_name, folder_path)) + elif struct_name: + # Struct declared without a module + self.struct_info.add((struct_name, idl_file_name, "", folder_path)) + + +def create_case_files(struct_info): + # Create 'Cases' folder if it doesn't exist + cases_folder = os.path.join(os.path.dirname(__file__), 'TypesTestsCases') + if not os.path.exists(cases_folder): + os.makedirs(cases_folder) + print(f"Created 'TypesTestsCases' folder: {cases_folder}") + + # Generate case files for each struct + print("Creating case files...") + for struct_name, idl_file_name, _, folder_path in struct_info: + if folder_path != "BaseCasesIDLs/": # Ignore cases for the IDL files in the 'BaseCasesIDLs' folder + idl_file_name = idl_file_name.replace("/", "_") # Replace "/" with "_" + case_data = { + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + struct_name + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + file_name = f"Case_{idl_file_name}_{struct_name}.json" + file_path = os.path.join(cases_folder, file_name) + with open(file_path, 'w') as f: + json.dump(case_data, f, indent=4) + print(f"Created case file: {file_path}") + + +def update_types_header_file(struct_info): + # Update types header file with necessary includes + header_file_path = os.path.join(os.path.dirname(__file__), 'TypeLookupServiceTestsTypes.h') + + with open(header_file_path, 'r') as header_file: + content = header_file.read() + + # Remove existing include lines + content = re.sub(r'#include\s+".*?"\n', '', content) + + endif_index = content.rfind("#endif") + + # Add new include lines before the #endif directive + new_include_lines = set() + for _, idl_file_name, _, folder_path in struct_info: + # include_line = f'#include "../../dds-types-test/{idl_file_name}PubSubTypes.h"\n' + include_line = f'#include "{folder_path}{idl_file_name}PubSubTypes.h"\n' + new_include_lines.add(include_line) + + content = content[:endif_index].rstrip() + '\n' + '\n' + ''.join(sorted(list(new_include_lines))) + '\n' + content[endif_index:] + + with open(header_file_path, 'w') as header_file: + header_file.write(content) + + print(f"Header file '{header_file_path}' updated successfully.") + + +def update_participant_headers_file(file_name, macro_name, struct_info, idl_without_typeobjects): + # Update participant header file with necessary macros and type information + script_dir = os.path.dirname(os.path.abspath(__file__)) + file_path = os.path.join(script_dir, file_name) + temp_file_path = file_path + ".tmp" + + with open(file_path, 'r') as file: + content = file.read() + + # Remove existing types_without_typeobject_ insertions + content = re.sub(r' types_without_typeobject_.insert\("[^"]+"\);\n', '', content) + + # Find the function declaration where macros need to be inserted + func_declaration = re.search(r'(void\s+create_type_creator_functions\(\)\s*{[\s\S]*?})', content) + if func_declaration: + updated_func = insert_macros(func_declaration.group(1), macro_name, struct_info, idl_without_typeobjects) + content = content.replace(func_declaration.group(1), updated_func) + + with open(temp_file_path, 'w') as file: + file.write(content) + + os.replace(temp_file_path, file_path) + + print(f"Type lookup file '{file_name}' updated successfully.") + + +def insert_macros(func_declaration, macro_name, struct_info, idl_without_typeobjects): + # Insert macros into the function declaration + lines = func_declaration.split('\n') + # Remove all lines starting with the macro_name + lines = [line for line in lines if not re.match(rf'\s*{macro_name}\((\w+|\w+::\w+)\);', line)] + updated_func = '\n'.join(lines) + + idx = updated_func.rfind(' }') + if idx != -1: + # Convert struct_info to a list and sort it alphabetically by idl_file_name and then by struct_name + struct_info = sorted(list(struct_info), key=lambda x: (x[1], x[2], x[0])) + for struct_name, idl_file_name, module_name, _ in struct_info: + if idl_file_name in idl_without_typeobjects: + if module_name: + updated_func = (updated_func[:idx] + + f" {macro_name}({module_name}::{struct_name});\n" + f" types_without_typeobject_.insert(\"{struct_name}\");\n" + + updated_func[idx:]) + else: + updated_func = (updated_func[:idx] + + f" {macro_name}({struct_name});\n" + f" types_without_typeobject_.insert(\"{struct_name}\");\n" + + updated_func[idx:]) + else: + if module_name: + updated_func = (updated_func[:idx] + + f" {macro_name}({module_name}::{struct_name});\n" + + updated_func[idx:]) + else: + updated_func = (updated_func[:idx] + + f" {macro_name}({struct_name});\n" + + updated_func[idx:]) + + return updated_func + + +def delete_files_in_cases_folder(): + # Delete existing case files + folder_path = os.path.join(os.path.dirname(__file__), 'TypesTestsCases') + if os.path.exists(folder_path) and os.path.isdir(folder_path): + for filename in os.listdir(folder_path): + file_path = os.path.join(folder_path, filename) + try: + if os.path.isfile(file_path): + os.unlink(file_path) + except Exception as e: + print(f"Error deleting {file_path}: {e}") + + +def main(): + if len(sys.argv) != 2: + print("Usage: python update_header_and_create_cases.py ") + print(" <../../../thirdparty/dds-types-test/IDL>") + return + + folder_path = sys.argv[1] + if not os.path.exists(folder_path): + print(f"The directory '{folder_path}' does not exist.") + return + + processor = IDLProcessor() + processor.process_idl_files("BaseCasesIDLs/") + processor.process_idl_files(folder_path) + + if not processor.struct_info: + print("No structures found in the IDL files.") + return + + delete_files_in_cases_folder() # Delete files before creating new ones + + # Perform necessary operations + create_case_files(processor.struct_info) + update_types_header_file(processor.struct_info) + update_participant_headers_file("TypeLookupServicePublisher.h", "PUBLISHER_TYPE_CREATOR_FUNCTION", + processor.struct_info, processor.idl_without_typeobjects) + update_participant_headers_file("TypeLookupServiceSubscriber.h", "SUBSCRIBER_TYPE_CREATOR_FUNCTION", + processor.struct_info, processor.idl_without_typeobjects) + +if __name__ == "__main__": + main() diff --git a/utils/scripts/update_generated_code_from_idl.sh b/utils/scripts/update_generated_code_from_idl.sh index cf48094ec5f..7abbddd4cb4 100755 --- a/utils/scripts/update_generated_code_from_idl.sh +++ b/utils/scripts/update_generated_code_from_idl.sh @@ -3,6 +3,7 @@ set -e files_to_exclude=( + './thirdparty/dds-types-test/IDL/relative_path_include.idl' # Relative path not working in current location. ) files_not_needing_typeobject=( From 5319f7585e3a12f84e8cacf50580b9f2b6d36321 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Sun, 18 Feb 2024 12:39:41 +0100 Subject: [PATCH 19/45] Refs #20165: Changed TypeObject consistency checks when typelookup service registers types. Fix for indirect hash typeidentifiers. Signed-off-by: adriancampo --- .../TypeObjectRegistry.hpp | 87 +++++++++++++++++-- 1 file changed, 82 insertions(+), 5 deletions(-) diff --git a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp index dfebd66e77c..a2c482e5a8b 100644 --- a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp +++ b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp @@ -41,16 +41,93 @@ #include namespace std { + template<> struct hash { std::size_t operator ()( - const eprosima::fastdds::dds::xtypes::TypeIdentifier& k) const + const eprosima::fastdds::dds::xtypes::TypeIdentifier& type_identifier) const { - // The collection only has direct hash TypeIdentifiers so the EquivalenceHash can be used. - return (static_cast(k.equivalence_hash()[0]) << 16) | - (static_cast(k.equivalence_hash()[1]) << 8) | - (static_cast(k.equivalence_hash()[2])); + std::size_t hash_value = 0; + + // Incorporate the discriminator into the hash value + hash_value += static_cast(type_identifier._d()); + + if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_SEQUENCE_SMALL && + type_identifier.seq_sdefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) + { + hash_value = (hash_value << 24) | + (static_cast(type_identifier.seq_sdefn().element_identifier().get()-> + equivalence_hash()[0]) << 16) | + (static_cast(type_identifier.seq_sdefn().element_identifier().get()-> + equivalence_hash()[1]) << 8) | + (static_cast(type_identifier.seq_sdefn().element_identifier().get()-> + equivalence_hash()[2])); + } + else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_SEQUENCE_LARGE && + type_identifier.seq_ldefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) + { + hash_value = (hash_value << 24) | + (static_cast(type_identifier.seq_ldefn().element_identifier().get()-> + equivalence_hash()[0]) << 16) | + (static_cast(type_identifier.seq_ldefn().element_identifier().get()-> + equivalence_hash()[1]) << 8) | + (static_cast(type_identifier.seq_ldefn().element_identifier().get()-> + equivalence_hash()[2])); + } + else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_ARRAY_SMALL && + type_identifier.array_sdefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) + { + hash_value = (hash_value << 24) | + (static_cast(type_identifier.array_sdefn().element_identifier().get()-> + equivalence_hash()[0]) << 16) | + (static_cast(type_identifier.array_sdefn().element_identifier().get()-> + equivalence_hash()[1]) << 8) | + (static_cast(type_identifier.array_sdefn().element_identifier().get()-> + equivalence_hash()[2])); + } + else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_ARRAY_LARGE && + type_identifier.array_ldefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) + { + hash_value = (hash_value << 24) | + (static_cast(type_identifier.array_ldefn().element_identifier().get()-> + equivalence_hash()[0]) << 16) | + (static_cast(type_identifier.array_ldefn().element_identifier().get()-> + equivalence_hash()[1]) << 8) | + (static_cast(type_identifier.array_ldefn().element_identifier().get()-> + equivalence_hash()[2])); + } + else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_MAP_SMALL && + type_identifier.map_sdefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) + { + hash_value = (hash_value << 24) | + (static_cast(type_identifier.map_sdefn().element_identifier().get()-> + equivalence_hash()[0]) << 16) | + (static_cast(type_identifier.map_sdefn().element_identifier().get()-> + equivalence_hash()[1]) << 8) | + (static_cast(type_identifier.map_sdefn().element_identifier().get()-> + equivalence_hash()[2])); + } + else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_MAP_LARGE && + type_identifier.map_ldefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) + { + hash_value = (hash_value << 24) | + (static_cast(type_identifier.map_ldefn().element_identifier().get()-> + equivalence_hash()[0]) << 16) | + (static_cast(type_identifier.map_ldefn().element_identifier().get()-> + equivalence_hash()[1]) << 8) | + (static_cast(type_identifier.map_ldefn().element_identifier().get()-> + equivalence_hash()[2])); + } + else + { + hash_value = (hash_value << 24) | + (static_cast(type_identifier.equivalence_hash()[0]) << 16) | + (static_cast(type_identifier.equivalence_hash()[1]) << 8) | + (static_cast(type_identifier.equivalence_hash()[2])); + } + + return hash_value; } }; From ed818b588162454427b5892de6cedaf76ced9c2e Mon Sep 17 00:00:00 2001 From: adriancampo Date: Mon, 19 Feb 2024 14:37:46 +0100 Subject: [PATCH 20/45] Refs #20165: Fix for modules in update_header_and_create_cases.py. Ignored relative_paths idl Signed-off-by: adriancampo --- .../dds/xtypes/TypeLookupServicePublisher.cpp | 21 ++-- test/dds/xtypes/TypeLookupServicePublisher.h | 66 +++++----- .../xtypes/TypeLookupServiceSubscriber.cpp | 20 +-- test/dds/xtypes/TypeLookupServiceSubscriber.h | 64 +++++----- ...constants_Module2ConstsLiteralsStruct.json | 2 +- ..._constants_ModuleConstsLiteralsStruct.json | 2 +- ...ase_declarations_ModuledForwardStruct.json | 2 +- .../TypesTestsCases/Case_structures_foo.json | 2 +- .../xtypes/update_header_and_create_cases.py | 115 ++++++++++++------ 9 files changed, 168 insertions(+), 126 deletions(-) diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index ffe6981ca17..a69cc94c18d 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -25,11 +25,10 @@ #include #include - using namespace eprosima::fastdds::dds; using namespace eprosima::fastdds::rtps; -static int PUB_DOMAIN_ID_ = 10; +static int PUB_DOMAIN_ID_ = 173; TypeLookupServicePublisher::~TypeLookupServicePublisher() { @@ -272,8 +271,7 @@ bool TypeLookupServicePublisher::run( if (!result) { - std::cout << "ERROR TypeLookupServicePublisher run Timeout" << std::endl; - + std::cout << "ERROR TypeLookupServicePublisher" << std::endl; if (expected_matches_ != sent_samples_.size()) { std::cout << "expected_matches_ = " << expected_matches_ << @@ -290,6 +288,7 @@ bool TypeLookupServicePublisher::run( } return false; } + std::cout << "SUCCESS TypeLookupServicePublisher" << std::endl; return true; } @@ -322,11 +321,17 @@ void TypeLookupServicePublisher::on_data_reader_discovery( // Check for TypeObjectRegistry inconsistency const bool has_type_object = types_without_typeobject_.find(discovered_reader_type_name) == types_without_typeobject_.end(); - if ((has_type_object && !check_registered_type(info.type_information)) || - (!has_type_object && check_registered_type(info.type_information))) + const bool is_registered = check_registered_type(info.type_information); + + if ((has_type_object && !is_registered)) + { + throw std::runtime_error( + "Type '" + discovered_reader_type_name + "' is not registered but it should be."); + } + if ((!has_type_object && is_registered)) { - throw std::runtime_error(discovered_reader_type_name + - (has_type_object ? " registered" : " not registered")); + throw std::runtime_error( + "Type '" + discovered_reader_type_name + "' is registered but it should not be."); } // Create new publisher for the type diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index 360c92cef61..d39788ec18f 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -99,9 +99,40 @@ class TypeLookupServicePublisher private: + bool setup_publisher( + PubKnownType& new_type); + + bool create_known_type( + const std::string& type); + + template + bool create_known_type_impl( + const std::string& type); + + + bool create_discovered_type( + const eprosima::fastdds::dds::SubscriptionBuiltinTopicData& info); + + bool check_registered_type( + const xtypes::TypeInformationParameter& type_info); + + DomainParticipant* participant_ = nullptr; + + std::mutex mutex_; + std::condition_variable cv_; + unsigned int matched_ = 0; + unsigned int expected_matches_ = 0; + std::map sent_samples_; + + std::mutex known_types_mutex_; + std::map known_types_; + std::unordered_set types_without_typeobject_; + std::map> type_creator_functions_; + std::vector create_types_threads; + + void create_type_creator_functions() { - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionWString); PUBLISHER_TYPE_CREATOR_FUNCTION(UnionWChar); PUBLISHER_TYPE_CREATOR_FUNCTION(UnionUShort); @@ -708,8 +739,6 @@ class TypeLookupServicePublisher PUBLISHER_TYPE_CREATOR_FUNCTION(BitMaskStructure); PUBLISHER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); types_without_typeobject_.insert("ModuledForwardStruct"); - PUBLISHER_TYPE_CREATOR_FUNCTION(declarations_module::ForwardStruct); - types_without_typeobject_.insert("ForwardStruct"); PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); @@ -978,37 +1007,6 @@ class TypeLookupServicePublisher PUBLISHER_TYPE_CREATOR_FUNCTION(Type1); } - bool setup_publisher( - PubKnownType& new_type); - - bool create_known_type( - const std::string& type); - - template - bool create_known_type_impl( - const std::string& type); - - - bool create_discovered_type( - const eprosima::fastdds::dds::SubscriptionBuiltinTopicData& info); - - bool check_registered_type( - const xtypes::TypeInformationParameter& type_info); - - DomainParticipant* participant_ = nullptr; - - std::mutex mutex_; - std::condition_variable cv_; - unsigned int matched_ = 0; - unsigned int expected_matches_ = 0; - std::map sent_samples_; - - std::mutex known_types_mutex_; - std::map known_types_; - std::unordered_set types_without_typeobject_; - std::map> type_creator_functions_; - std::vector create_types_threads; - }; } // dds diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index 16d1a3b1fb3..cb78567ad3d 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -29,7 +29,7 @@ using namespace eprosima::fastdds::dds; using namespace eprosima::fastdds::rtps; -static int SUB_DOMAIN_ID_ = 10; +static int SUB_DOMAIN_ID_ = 173; TypeLookupServiceSubscriber::~TypeLookupServiceSubscriber() { @@ -260,8 +260,7 @@ bool TypeLookupServiceSubscriber::run( if (!result) { - std::cout << "ERROR TypeLookupServiceSubscriber run Timeout" << std::endl; - + std::cout << "ERROR TypeLookupServiceSubscriber" << std::endl; if (expected_matches_ != received_samples_.size()) { std::cout << "expected_matches_ = " << expected_matches_ << @@ -278,6 +277,7 @@ bool TypeLookupServiceSubscriber::run( return false; } + std::cout << "SUCCESS TypeLookupServiceSubscriber" << std::endl; return true; } @@ -339,11 +339,17 @@ void TypeLookupServiceSubscriber::on_data_writer_discovery( // Check for TypeObjectRegistry inconsistency const bool has_type_object = types_without_typeobject_.find(discovered_writer_type_name) == types_without_typeobject_.end(); - if ((has_type_object && !check_registered_type(info.type_information)) || - (!has_type_object && check_registered_type(info.type_information))) + const bool is_registered = check_registered_type(info.type_information); + + if ((has_type_object && !is_registered)) + { + throw std::runtime_error( + "Type '" + discovered_writer_type_name + "' is not registered but it should be."); + } + if ((!has_type_object && is_registered)) { - throw std::runtime_error(discovered_writer_type_name + - (has_type_object ? " registered" : " not registered")); + throw std::runtime_error( + "Type '" + discovered_writer_type_name + "' is registered but it should not be."); } // Create new subscriber for the type diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index c9c0097774a..aa4048d1c7a 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -100,10 +100,39 @@ class TypeLookupServiceSubscriber private: + bool setup_subscriber( + SubKnownType& new_type); + + bool create_known_type( + const std::string& type); + + template + bool create_known_type_impl( + const std::string& type); + + bool create_discovered_type( + const eprosima::fastdds::dds::PublicationBuiltinTopicData& info); + + bool check_registered_type( + const xtypes::TypeInformationParameter& type_info); + + DomainParticipant* participant_ = nullptr; + + std::mutex mutex_; + std::condition_variable cv_; + unsigned int matched_ = 0; + unsigned int expected_matches_ = 0; + std::map received_samples_; + + std::mutex known_types_mutex_; + std::map known_types_; + std::unordered_set types_without_typeobject_; + std::map> type_creator_functions_; + std::vector create_types_threads; + + void create_type_creator_functions() { - // IDL file name: helpers/basic_inner_types - // IDL file name: declarations SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionWString); SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionWChar); SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionUShort); @@ -710,8 +739,6 @@ class TypeLookupServiceSubscriber SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitMaskStructure); SUBSCRIBER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); types_without_typeobject_.insert("ModuledForwardStruct"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(declarations_module::ForwardStruct); - types_without_typeobject_.insert("ForwardStruct"); SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); @@ -980,35 +1007,6 @@ class TypeLookupServiceSubscriber SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type1); } - bool setup_subscriber( - SubKnownType& new_type); - - bool create_known_type( - const std::string& type); - - template - bool create_known_type_impl( - const std::string& type); - - bool create_discovered_type( - const eprosima::fastdds::dds::PublicationBuiltinTopicData& info); - - bool check_registered_type( - const xtypes::TypeInformationParameter& type_info); - - DomainParticipant* participant_ = nullptr; - - std::mutex mutex_; - std::condition_variable cv_; - unsigned int matched_ = 0; - unsigned int expected_matches_ = 0; - std::map received_samples_; - - std::mutex known_types_mutex_; - std::map known_types_; - std::unordered_set types_without_typeobject_; - std::map> type_creator_functions_; - std::vector create_types_threads; }; } // dds diff --git a/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json b/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json index 4d790f9991d..515bf4fb301 100644 --- a/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json +++ b/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json @@ -6,7 +6,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "Module2ConstsLiteralsStruct" + "const_module2::Module2ConstsLiteralsStruct" ] }, { diff --git a/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json b/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json index c2c9c6c0d2a..13ae820a8bd 100644 --- a/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json +++ b/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json @@ -6,7 +6,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "ModuleConstsLiteralsStruct" + "const_module1::ModuleConstsLiteralsStruct" ] }, { diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json index e2945f60ed9..b537f6d0f53 100644 --- a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json +++ b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json @@ -6,7 +6,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "ModuledForwardStruct" + "declarations_module::ModuledForwardStruct" ] }, { diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json b/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json index 4a3ee232dfa..205e3532676 100644 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json +++ b/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json @@ -6,7 +6,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "foo" + "testing_1::foo" ] }, { diff --git a/test/dds/xtypes/update_header_and_create_cases.py b/test/dds/xtypes/update_header_and_create_cases.py index e250b7f1d16..1cbeec0980d 100755 --- a/test/dds/xtypes/update_header_and_create_cases.py +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -1,40 +1,64 @@ +import json import os -import sys import re -import json +import sys class IDLProcessor: def __init__(self): + # List of files to ignore + self.files_to_ignore = {"relative_path_include.idl"} + # List of IDL files that don't have a TypeObject self.idl_without_typeobjects = {"XtypesTestsTypeNoTypeObject", "declarations", "external"} self.struct_info = set() - def process_idl_files(self, folder_path): + def extract_structures(self, idl_text): + module_regexp = r'module\s+(\w+)\s*{((?:.|[\r\n])*?)\};\s*\};' + struct_regexp = r'struct\s+(\w+)(\s*:\s*\w+)?\s*\{([^}]+)' + + modules = re.findall(module_regexp, idl_text, re.DOTALL) + module_structures = {} + for module_match in modules: + module_name, module_content = module_match + # Extract structures within the module + structures = re.findall(struct_regexp, module_content) + module_structures[module_name] = structures + + # Regular expression to find structures outside modules + outside_structures = re.findall(struct_regexp, idl_text) + + # Remove duplicate structures + for module_name, structures in module_structures.items(): + for structure in structures: + if structure in outside_structures: + outside_structures.remove(structure) + + return module_structures, outside_structures + + def process_idl_files(self, idls_path): # Search for .idl files in the specified folder and its subdirectories print("Searching for .idl files...") - for root, dirs, files in os.walk(folder_path): + for root, dirs, files in os.walk(idls_path): for file_name in files: - if file_name.endswith('.idl'): + if file_name.endswith('.idl') and file_name not in self.files_to_ignore: # Check if the file should be ignored file_path = os.path.join(root, file_name) print(f"Found .idl file: {file_path}") # Get the relative path of the .idl file from the specified folder - idl_file_relative_path = os.path.relpath(file_path, folder_path) + idl_file_relative_path = os.path.relpath(file_path, idls_path) # Remove the file extension to get the IDL file name idl_file_name = os.path.splitext(idl_file_relative_path)[0] with open(file_path, 'r') as file: content = file.read() - # Find all struct declarations in the IDL file - matches = re.findall(r'(?:module\s+(\w+)\s*\{([\s\S]*?)\})|(struct\s+(\w+))', content) - for match in matches: - module_name, module_content, struct_declaration, struct_name = match - if module_name: - # Struct declared inside a module - structs = re.findall(r'struct\s+(\w+)', module_content) - for struct in structs: - # Store struct information along with the IDL file name and module name - self.struct_info.add((struct, idl_file_name, module_name, folder_path)) - elif struct_name: - # Struct declared without a module - self.struct_info.add((struct_name, idl_file_name, "", folder_path)) + # Extract structures from IDL content + module_structures, outside_structures = self.extract_structures(content) + + # Store struct information along with the IDL file name and module name + for module_name, structures in module_structures.items(): + for structure in structures: + self.struct_info.add((structure[0], idl_file_name, module_name, idls_path)) + + # Store struct information for structures outside modules + for structure in outside_structures: + self.struct_info.add((structure[0], idl_file_name, "", idls_path)) def create_case_files(struct_info): @@ -46,8 +70,8 @@ def create_case_files(struct_info): # Generate case files for each struct print("Creating case files...") - for struct_name, idl_file_name, _, folder_path in struct_info: - if folder_path != "BaseCasesIDLs/": # Ignore cases for the IDL files in the 'BaseCasesIDLs' folder + for struct_name, idl_file_name, module_name, idls_path in struct_info: + if idls_path != "BaseCasesIDLs/": # Ignore cases for the IDL files in the 'BaseCasesIDLs' folder idl_file_name = idl_file_name.replace("/", "_") # Replace "/" with "_" case_data = { "participants": [ @@ -57,7 +81,7 @@ def create_case_files(struct_info): "timeout": "2", "expected_matches": "1", "known_types": [ - struct_name + f"{module_name}::{struct_name}" if module_name else struct_name ] }, { @@ -69,6 +93,7 @@ def create_case_files(struct_info): } ] } + file_name = f"Case_{idl_file_name}_{struct_name}.json" file_path = os.path.join(cases_folder, file_name) with open(file_path, 'w') as f: @@ -76,7 +101,7 @@ def create_case_files(struct_info): print(f"Created case file: {file_path}") -def update_types_header_file(struct_info): +def update_types_header_file(struct_info, typecode_path): # Update types header file with necessary includes header_file_path = os.path.join(os.path.dirname(__file__), 'TypeLookupServiceTestsTypes.h') @@ -90,10 +115,13 @@ def update_types_header_file(struct_info): # Add new include lines before the #endif directive new_include_lines = set() - for _, idl_file_name, _, folder_path in struct_info: - # include_line = f'#include "../../dds-types-test/{idl_file_name}PubSubTypes.h"\n' - include_line = f'#include "{folder_path}{idl_file_name}PubSubTypes.h"\n' - new_include_lines.add(include_line) + for _, idl_file_name, _, idls_path in struct_info: + if idls_path != "BaseCasesIDLs/": # Ignore cases for the IDL files in the 'BaseCasesIDLs' folder + include_line = f'#include "{typecode_path}{idl_file_name}PubSubTypes.h"\n' + new_include_lines.add(include_line) + else: + include_line = f'#include "BaseCasesIDLs/{idl_file_name}PubSubTypes.h"\n' + new_include_lines.add(include_line) content = content[:endif_index].rstrip() + '\n' + '\n' + ''.join(sorted(list(new_include_lines))) + '\n' + content[endif_index:] @@ -167,10 +195,10 @@ def insert_macros(func_declaration, macro_name, struct_info, idl_without_typeobj def delete_files_in_cases_folder(): # Delete existing case files - folder_path = os.path.join(os.path.dirname(__file__), 'TypesTestsCases') - if os.path.exists(folder_path) and os.path.isdir(folder_path): - for filename in os.listdir(folder_path): - file_path = os.path.join(folder_path, filename) + cases_folder_path = os.path.join(os.path.dirname(__file__), 'TypesTestsCases') + if os.path.exists(cases_folder_path) and os.path.isdir(cases_folder_path): + for filename in os.listdir(cases_folder_path): + file_path = os.path.join(cases_folder_path, filename) try: if os.path.isfile(file_path): os.unlink(file_path) @@ -179,33 +207,40 @@ def delete_files_in_cases_folder(): def main(): - if len(sys.argv) != 2: - print("Usage: python update_header_and_create_cases.py ") - print(" <../../../thirdparty/dds-types-test/IDL>") + if len(sys.argv) != 3: + print("Usage: update_header_and_create_cases.py ") + print("Example: python3 update_header_and_create_cases.py ../../../thirdparty/dds-types-test/IDL/ ../../dds-types-test/") return - folder_path = sys.argv[1] - if not os.path.exists(folder_path): - print(f"The directory '{folder_path}' does not exist.") + idls_path = sys.argv[1] + if not os.path.exists(idls_path): + print(f"The directory '{idls_path}' does not exist.") + return + typecode_path = sys.argv[2] + if not os.path.exists(typecode_path): + print(f"The directory '{typecode_path}' does not exist.") return + processor = IDLProcessor() processor.process_idl_files("BaseCasesIDLs/") - processor.process_idl_files(folder_path) + processor.process_idl_files(idls_path) if not processor.struct_info: print("No structures found in the IDL files.") return - delete_files_in_cases_folder() # Delete files before creating new ones + # Delete files before creating new ones + delete_files_in_cases_folder() # Perform necessary operations create_case_files(processor.struct_info) - update_types_header_file(processor.struct_info) + update_types_header_file(processor.struct_info, typecode_path) update_participant_headers_file("TypeLookupServicePublisher.h", "PUBLISHER_TYPE_CREATOR_FUNCTION", processor.struct_info, processor.idl_without_typeobjects) update_participant_headers_file("TypeLookupServiceSubscriber.h", "SUBSCRIBER_TYPE_CREATOR_FUNCTION", processor.struct_info, processor.idl_without_typeobjects) + if __name__ == "__main__": main() From 5a93b5267b5a8cceb56e2c6ab0d5705947d8f718 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Tue, 20 Feb 2024 12:49:22 +0100 Subject: [PATCH 21/45] Refs #20165: Reduced number of Cases.json files. Signed-off-by: adriancampo --- test/dds/xtypes/BaseCases/Case0.json | 33 +- test/dds/xtypes/BaseCases/Case1.json | 37 +- test/dds/xtypes/BaseCases/Case10.json | 57 +- test/dds/xtypes/BaseCases/Case2.json | 33 +- test/dds/xtypes/BaseCases/Case3.json | 37 +- test/dds/xtypes/BaseCases/Case4.json | 41 +- test/dds/xtypes/BaseCases/Case5.json | 41 +- test/dds/xtypes/BaseCases/Case6.json | 33 +- test/dds/xtypes/BaseCases/Case7.json | 33 +- test/dds/xtypes/BaseCases/Case8.json | 233 +- test/dds/xtypes/BaseCases/Case9.json | 47 +- test/dds/xtypes/CMakeLists.txt | 2 +- .../dds/xtypes/TypeLookupServicePublisher.cpp | 1 - .../xtypes/TypeLookupServiceSubscriber.cpp | 1 - .../Case_aliases_AliasAlias.json | 20 - .../Case_aliases_AliasArray.json | 20 - .../Case_aliases_AliasBitmask.json | 20 - .../Case_aliases_AliasBitset.json | 20 - .../Case_aliases_AliasBool.json | 20 - .../Case_aliases_AliasChar16.json | 20 - .../Case_aliases_AliasChar8.json | 20 - .../Case_aliases_AliasEnum.json | 20 - .../Case_aliases_AliasFloat128.json | 20 - .../Case_aliases_AliasFloat32.json | 20 - .../Case_aliases_AliasFloat64.json | 20 - .../Case_aliases_AliasInt16.json | 20 - .../Case_aliases_AliasInt32.json | 20 - .../Case_aliases_AliasInt64.json | 20 - .../Case_aliases_AliasMap.json | 20 - .../Case_aliases_AliasMultiArray.json | 20 - .../Case_aliases_AliasOctet.json | 20 - .../Case_aliases_AliasSequence.json | 20 - .../Case_aliases_AliasString16.json | 20 - .../Case_aliases_AliasString8.json | 20 - .../Case_aliases_AliasStruct.json | 20 - .../Case_aliases_AliasUInt32.json | 20 - .../Case_aliases_AliasUInt64.json | 20 - .../Case_aliases_AliasUint16.json | 20 - .../Case_aliases_AliasUnion.json | 20 - .../Case_annotations_AnnotatedStruct.json | 20 - ...Case_annotations_EmptyAnnotatedStruct.json | 20 - ...se_appendable_AppendableBooleanStruct.json | 20 - .../Case_appendable_AppendableCharStruct.json | 20 - ...ase_appendable_AppendableDoubleStruct.json | 20 - ...able_AppendableEmptyInheritanceStruct.json | 20 - ...Case_appendable_AppendableEmptyStruct.json | 20 - ...le_AppendableExtensibilityInheritance.json | 20 - ...Case_appendable_AppendableFloatStruct.json | 20 - ...able_AppendableInheritanceEmptyStruct.json | 20 - ...ppendable_AppendableInheritanceStruct.json | 20 - ...appendable_AppendableLongDoubleStruct.json | 20 - ...e_appendable_AppendableLongLongStruct.json | 20 - .../Case_appendable_AppendableLongStruct.json | 20 - ...Case_appendable_AppendableOctetStruct.json | 20 - ...Case_appendable_AppendableShortStruct.json | 20 - ..._appendable_AppendableULongLongStruct.json | 20 - ...Case_appendable_AppendableULongStruct.json | 20 - ...ase_appendable_AppendableUShortStruct.json | 20 - ...Case_appendable_AppendableUnionStruct.json | 20 - ...Case_appendable_AppendableWCharStruct.json | 20 - .../Case_arrays_ArrayAlias.json | 20 - .../Case_arrays_ArrayBitMask.json | 20 - .../Case_arrays_ArrayBitset.json | 20 - .../Case_arrays_ArrayBoolean.json | 20 - .../Case_arrays_ArrayBoundedString.json | 20 - .../Case_arrays_ArrayBoundedWString.json | 20 - .../Case_arrays_ArrayChar.json | 20 - .../Case_arrays_ArrayDouble.json | 20 - .../Case_arrays_ArrayEnum.json | 20 - .../Case_arrays_ArrayFloat.json | 20 - .../Case_arrays_ArrayLong.json | 20 - .../Case_arrays_ArrayLongDouble.json | 20 - .../Case_arrays_ArrayLongLong.json | 20 - .../TypesTestsCases/Case_arrays_ArrayMap.json | 20 - .../Case_arrays_ArrayMultiDimensionAlias.json | 20 - ...ase_arrays_ArrayMultiDimensionBitMask.json | 20 - ...Case_arrays_ArrayMultiDimensionBitset.json | 20 - ...ase_arrays_ArrayMultiDimensionBoolean.json | 20 - ...rays_ArrayMultiDimensionBoundedString.json | 20 - ...ays_ArrayMultiDimensionBoundedWString.json | 20 - .../Case_arrays_ArrayMultiDimensionChar.json | 20 - ...Case_arrays_ArrayMultiDimensionDouble.json | 20 - .../Case_arrays_ArrayMultiDimensionEnum.json | 20 - .../Case_arrays_ArrayMultiDimensionFloat.json | 20 - ...rays_ArrayMultiDimensionLiteralsAlias.json | 20 - ...ys_ArrayMultiDimensionLiteralsBitMask.json | 20 - ...ays_ArrayMultiDimensionLiteralsBitSet.json | 20 - ...ys_ArrayMultiDimensionLiteralsBoolean.json | 20 - ...ayMultiDimensionLiteralsBoundedString.json | 20 - ...yMultiDimensionLiteralsBoundedWString.json | 20 - ...rrays_ArrayMultiDimensionLiteralsChar.json | 20 - ...ays_ArrayMultiDimensionLiteralsDouble.json | 20 - ...rrays_ArrayMultiDimensionLiteralsEnum.json | 20 - ...rays_ArrayMultiDimensionLiteralsFloat.json | 20 - ...rrays_ArrayMultiDimensionLiteralsLong.json | 20 - ...ArrayMultiDimensionLiteralsLongDouble.json | 20 - ...s_ArrayMultiDimensionLiteralsLongLong.json | 20 - ...arrays_ArrayMultiDimensionLiteralsMap.json | 20 - ...rays_ArrayMultiDimensionLiteralsOctet.json | 20 - ...s_ArrayMultiDimensionLiteralsSequence.json | 20 - ...rays_ArrayMultiDimensionLiteralsShort.json | 20 - ...ays_ArrayMultiDimensionLiteralsString.json | 20 - ..._ArrayMultiDimensionLiteralsStructure.json | 20 - ...rays_ArrayMultiDimensionLiteralsULong.json | 20 - ..._ArrayMultiDimensionLiteralsULongLong.json | 20 - ...ays_ArrayMultiDimensionLiteralsUShort.json | 20 - ...rays_ArrayMultiDimensionLiteralsUnion.json | 20 - ...rays_ArrayMultiDimensionLiteralsWChar.json | 20 - ...ys_ArrayMultiDimensionLiteralsWString.json | 20 - .../Case_arrays_ArrayMultiDimensionLong.json | 20 - ..._arrays_ArrayMultiDimensionLongDouble.json | 20 - ...se_arrays_ArrayMultiDimensionLongLong.json | 20 - .../Case_arrays_ArrayMultiDimensionMap.json | 20 - .../Case_arrays_ArrayMultiDimensionOctet.json | 20 - ...se_arrays_ArrayMultiDimensionSequence.json | 20 - .../Case_arrays_ArrayMultiDimensionShort.json | 20 - ...Case_arrays_ArrayMultiDimensionString.json | 20 - ...e_arrays_ArrayMultiDimensionStructure.json | 20 - .../Case_arrays_ArrayMultiDimensionULong.json | 20 - ...e_arrays_ArrayMultiDimensionULongLong.json | 20 - ...Case_arrays_ArrayMultiDimensionUShort.json | 20 - .../Case_arrays_ArrayMultiDimensionUnion.json | 20 - .../Case_arrays_ArrayMultiDimensionWChar.json | 20 - ...ase_arrays_ArrayMultiDimensionWString.json | 20 - .../Case_arrays_ArrayOctet.json | 20 - .../Case_arrays_ArraySequence.json | 20 - .../Case_arrays_ArrayShort.json | 20 - .../Case_arrays_ArrayShortArray.json | 20 - ...ays_ArraySingleDimensionLiteralsAlias.json | 20 - ...s_ArraySingleDimensionLiteralsBitMask.json | 20 - ...ys_ArraySingleDimensionLiteralsBitset.json | 20 - ...s_ArraySingleDimensionLiteralsBoolean.json | 20 - ...ySingleDimensionLiteralsBoundedString.json | 20 - ...SingleDimensionLiteralsBoundedWString.json | 20 - ...rays_ArraySingleDimensionLiteralsChar.json | 20 - ...ys_ArraySingleDimensionLiteralsDouble.json | 20 - ...rays_ArraySingleDimensionLiteralsEnum.json | 20 - ...ays_ArraySingleDimensionLiteralsFloat.json | 20 - ...rays_ArraySingleDimensionLiteralsLong.json | 20 - ...rraySingleDimensionLiteralsLongDouble.json | 20 - ..._ArraySingleDimensionLiteralsLongLong.json | 20 - ...rrays_ArraySingleDimensionLiteralsMap.json | 20 - ...ays_ArraySingleDimensionLiteralsOctet.json | 20 - ..._ArraySingleDimensionLiteralsSequence.json | 20 - ...ays_ArraySingleDimensionLiteralsShort.json | 20 - ...rraySingleDimensionLiteralsShortArray.json | 20 - ...ys_ArraySingleDimensionLiteralsString.json | 20 - ...ArraySingleDimensionLiteralsStructure.json | 20 - ...ays_ArraySingleDimensionLiteralsUnion.json | 20 - ...aySingleDimensionLiteralsUnsignedLong.json | 20 - ...ngleDimensionLiteralsUnsignedLongLong.json | 20 - ...ySingleDimensionLiteralsUnsignedShort.json | 20 - ...ays_ArraySingleDimensionLiteralsWChar.json | 20 - ...s_ArraySingleDimensionLiteralsWString.json | 20 - .../Case_arrays_ArrayString.json | 20 - .../Case_arrays_ArrayStructure.json | 20 - .../Case_arrays_ArrayULong.json | 20 - .../Case_arrays_ArrayULongLong.json | 20 - .../Case_arrays_ArrayUShort.json | 20 - .../Case_arrays_ArrayUnion.json | 20 - .../Case_arrays_ArrayWChar.json | 20 - .../Case_arrays_ArrayWString.json | 20 - .../Case_arrays_BoundedBigArrays.json | 20 - .../Case_arrays_BoundedSmallArrays.json | 20 - .../Case_bitsets_BitsetStruct.json | 20 - .../Case_constants_ConstsLiteralsStruct.json | 20 - ...constants_Module2ConstsLiteralsStruct.json | 20 - ..._constants_ModuleConstsLiteralsStruct.json | 20 - ...ns_ForwardDeclarationsRecursiveStruct.json | 20 - .../Case_declarations_ForwardStruct.json | 20 - ...clarations_ModuledCommonNameStructure.json | 20 - ...ledForwardDeclarationsRecursiveStruct.json | 20 - ...ase_declarations_ModuledForwardStruct.json | 20 - .../Case_enumerations_BitMaskStructure.json | 20 - ..._enumerations_BoundedBitMaskStructure.json | 20 - .../Case_enumerations_EnumStructure.json | 20 - .../Case_external_InnerStructExternal.json | 20 - .../Case_external_array_short_external.json | 20 - .../Case_external_boolean_external.json | 20 - .../Case_external_char_external.json | 20 - .../Case_external_double_external.json | 20 - ...xternal_ext_and_inner_struct_external.json | 20 - .../Case_external_ext_struct_external.json | 20 - .../Case_external_float_external.json | 20 - .../Case_external_long_external.json | 20 - .../Case_external_longdouble_external.json | 20 - .../Case_external_longlong_external.json | 20 - .../Case_external_map_short_external.json | 20 - .../Case_external_octet_external.json | 20 - .../Case_external_recursive_structure.json | 20 - .../Case_external_recursive_test_1.json | 20 - .../Case_external_recursive_test_2.json | 20 - ...se_external_recursive_union_container.json | 20 - ...Case_external_sequence_short_external.json | 20 - .../Case_external_short_external.json | 20 - ...Case_external_string_bounded_external.json | 20 - ...se_external_string_unbounded_external.json | 20 - .../Case_external_struct_external.json | 20 - ...ase_external_struct_external_optional.json | 20 - .../Case_external_ulong_external.json | 20 - .../Case_external_ulonglong_external.json | 20 - .../Case_external_ushort_external.json | 20 - .../Case_external_wchar_external.json | 20 - .../Case_final_FinalBooleanStruct.json | 20 - .../Case_final_FinalCharStruct.json | 20 - .../Case_final_FinalDoubleStruct.json | 20 - ...ase_final_FinalEmptyInheritanceStruct.json | 20 - .../Case_final_FinalEmptyStruct.json | 20 - ...e_final_FinalExtensibilityInheritance.json | 20 - .../Case_final_FinalFloatStruct.json | 20 - .../Case_final_FinalInheritanceStruct.json | 20 - .../Case_final_FinalLongDoubleStruct.json | 20 - .../Case_final_FinalLongLongStruct.json | 20 - .../Case_final_FinalLongStruct.json | 20 - .../Case_final_FinalOctetStruct.json | 20 - .../Case_final_FinalShortStruct.json | 20 - .../Case_final_FinalULongLongStruct.json | 20 - .../Case_final_FinalULongStruct.json | 20 - .../Case_final_FinalUShortStruct.json | 20 - .../Case_final_FinalUnionStruct.json | 20 - .../Case_final_FinalWCharStruct.json | 20 - .../Case_final_InheritanceEmptyStruct.json | 20 - ...inner_types_InnerEmptyStructureHelper.json | 20 - ...asic_inner_types_InnerStructureHelper.json | 20 - ...ritance_BitsetsChildInheritanceStruct.json | 20 - ...itance_InnerEmptyStructureHelperChild.json | 20 - ...inheritance_InnerStructureHelperChild.json | 20 - ...itance_InnerStructureHelperChildChild.json | 20 - ...itance_InnerStructureHelperEmptyChild.json | 20 - ...e_InnerStructureHelperEmptyChildChild.json | 20 - ...eritance_StructAliasInheritanceStruct.json | 20 - ...heritance_StructuresInheritanceStruct.json | 20 - .../Case_key_InheritanceKeyedEmptyStruct.json | 20 - .../Case_key_KeyedBooleanStruct.json | 20 - .../Case_key_KeyedCharStruct.json | 20 - .../Case_key_KeyedDoubleStruct.json | 20 - .../Case_key_KeyedEmptyInheritanceStruct.json | 20 - .../Case_key_KeyedEmptyStruct.json | 20 - .../Case_key_KeyedFloatStruct.json | 20 - .../Case_key_KeyedInheritanceStruct.json | 20 - .../Case_key_KeyedLongDoubleStruct.json | 20 - .../Case_key_KeyedLongLongStruct.json | 20 - .../Case_key_KeyedLongStruct.json | 20 - .../Case_key_KeyedOctetStruct.json | 20 - .../Case_key_KeyedShortStruct.json | 20 - .../Case_key_KeyedULongLongStruct.json | 20 - .../Case_key_KeyedULongStruct.json | 20 - .../Case_key_KeyedUShortStruct.json | 20 - .../Case_key_KeyedWCharStruct.json | 20 - .../Case_maps_BoundedLargeMap.json | 20 - .../Case_maps_BoundedSmallMap.json | 20 - ...pInnerAliasBoundedStringHelperBoolean.json | 20 - ..._MapInnerAliasBoundedStringHelperChar.json | 20 - ...apInnerAliasBoundedStringHelperDouble.json | 20 - ...MapInnerAliasBoundedStringHelperFloat.json | 20 - ...ndedStringHelperInnerAliasArrayHelper.json | 20 - ...ngHelperInnerAliasBoundedStringHelper.json | 20 - ...gHelperInnerAliasBoundedWStringHelper.json | 20 - ...asBoundedStringHelperInnerAliasHelper.json | 20 - ...oundedStringHelperInnerAliasMapHelper.json | 20 - ...dStringHelperInnerAliasSequenceHelper.json | 20 - ...BoundedStringHelperInnerBitMaskHelper.json | 20 - ...sBoundedStringHelperInnerBitsetHelper.json | 20 - ...iasBoundedStringHelperInnerEnumHelper.json | 20 - ...undedStringHelperInnerStructureHelper.json | 20 - ...asBoundedStringHelperInnerUnionHelper.json | 20 - ..._MapInnerAliasBoundedStringHelperLong.json | 20 - ...nerAliasBoundedStringHelperLongDouble.json | 20 - ...InnerAliasBoundedStringHelperLongLong.json | 20 - ...MapInnerAliasBoundedStringHelperOctet.json | 20 - ...MapInnerAliasBoundedStringHelperShort.json | 20 - ...apInnerAliasBoundedStringHelperString.json | 20 - ...MapInnerAliasBoundedStringHelperULong.json | 20 - ...nnerAliasBoundedStringHelperULongLong.json | 20 - ...apInnerAliasBoundedStringHelperUShort.json | 20 - ...MapInnerAliasBoundedStringHelperWChar.json | 20 - ...pInnerAliasBoundedStringHelperWString.json | 20 - ...InnerAliasBoundedWStringHelperBoolean.json | 20 - ...MapInnerAliasBoundedWStringHelperChar.json | 20 - ...pInnerAliasBoundedWStringHelperDouble.json | 20 - ...apInnerAliasBoundedWStringHelperFloat.json | 20 - ...dedWStringHelperInnerAliasArrayHelper.json | 20 - ...ngHelperInnerAliasBoundedStringHelper.json | 20 - ...gHelperInnerAliasBoundedWStringHelper.json | 20 - ...sBoundedWStringHelperInnerAliasHelper.json | 20 - ...undedWStringHelperInnerAliasMapHelper.json | 20 - ...WStringHelperInnerAliasSequenceHelper.json | 20 - ...oundedWStringHelperInnerBitMaskHelper.json | 20 - ...BoundedWStringHelperInnerBitsetHelper.json | 20 - ...asBoundedWStringHelperInnerEnumHelper.json | 20 - ...ndedWStringHelperInnerStructureHelper.json | 20 - ...sBoundedWStringHelperInnerUnionHelper.json | 20 - ...MapInnerAliasBoundedWStringHelperLong.json | 20 - ...erAliasBoundedWStringHelperLongDouble.json | 20 - ...nnerAliasBoundedWStringHelperLongLong.json | 20 - ...apInnerAliasBoundedWStringHelperOctet.json | 20 - ...apInnerAliasBoundedWStringHelperShort.json | 20 - ...pInnerAliasBoundedWStringHelperString.json | 20 - ...apInnerAliasBoundedWStringHelperULong.json | 20 - ...nerAliasBoundedWStringHelperULongLong.json | 20 - ...pInnerAliasBoundedWStringHelperUShort.json | 20 - ...apInnerAliasBoundedWStringHelperWChar.json | 20 - ...InnerAliasBoundedWStringHelperWString.json | 20 - .../Case_maps_MapKeyULongLongValueDouble.json | 20 - .../Case_maps_MapKeyULongValueLongDouble.json | 20 - .../Case_maps_MapKeyULongValueLongLong.json | 20 - .../Case_maps_MapLongBoolean.json | 20 - .../Case_maps_MapLongChar.json | 20 - .../Case_maps_MapLongDouble.json | 20 - .../Case_maps_MapLongFloat.json | 20 - ...ase_maps_MapLongInnerAliasArrayHelper.json | 20 - ..._MapLongInnerAliasBoundedStringHelper.json | 20 - ...MapLongInnerAliasBoundedWStringHelper.json | 20 - .../Case_maps_MapLongInnerAliasHelper.json | 20 - .../Case_maps_MapLongInnerAliasMapHelper.json | 20 - ..._maps_MapLongInnerAliasSequenceHelper.json | 20 - .../Case_maps_MapLongInnerBitMaskHelper.json | 20 - .../Case_maps_MapLongInnerBitsetHelper.json | 20 - .../Case_maps_MapLongInnerEnumHelper.json | 20 - ...Case_maps_MapLongInnerStructureHelper.json | 20 - .../Case_maps_MapLongInnerUnionHelper.json | 20 - .../Case_maps_MapLongKeyLongDoubleValue.json | 20 - .../Case_maps_MapLongKeyLongLongValue.json | 20 - .../Case_maps_MapLongLong.json | 20 - .../Case_maps_MapLongLongBoolean.json | 20 - .../Case_maps_MapLongLongChar.json | 20 - .../Case_maps_MapLongLongFloat.json | 20 - ...maps_MapLongLongInnerAliasArrayHelper.json | 20 - ...LongLongInnerAliasBoundedStringHelper.json | 20 - ...ongLongInnerAliasBoundedWStringHelper.json | 20 - ...Case_maps_MapLongLongInnerAliasHelper.json | 20 - ...e_maps_MapLongLongInnerAliasMapHelper.json | 20 - ...s_MapLongLongInnerAliasSequenceHelper.json | 20 - ...se_maps_MapLongLongInnerBitMaskHelper.json | 20 - ...ase_maps_MapLongLongInnerBitsetHelper.json | 20 - .../Case_maps_MapLongLongInnerEnumHelper.json | 20 - ..._maps_MapLongLongInnerStructureHelper.json | 20 - ...Case_maps_MapLongLongInnerUnionHelper.json | 20 - .../Case_maps_MapLongLongKeyDoubleValue.json | 20 - .../Case_maps_MapLongLongKeyLongValue.json | 20 - .../Case_maps_MapLongLongLongDouble.json | 20 - .../Case_maps_MapLongLongLongLong.json | 20 - .../Case_maps_MapLongLongOctet.json | 20 - .../Case_maps_MapLongLongShort.json | 20 - .../Case_maps_MapLongLongString.json | 20 - .../Case_maps_MapLongLongULong.json | 20 - .../Case_maps_MapLongLongULongLong.json | 20 - .../Case_maps_MapLongLongUShort.json | 20 - .../Case_maps_MapLongLongWChar.json | 20 - .../Case_maps_MapLongLongWString.json | 20 - .../Case_maps_MapLongOctet.json | 20 - .../Case_maps_MapLongShort.json | 20 - .../Case_maps_MapLongString.json | 20 - .../Case_maps_MapLongULong.json | 20 - .../Case_maps_MapLongULongLong.json | 20 - .../Case_maps_MapLongUShort.json | 20 - .../Case_maps_MapLongWChar.json | 20 - .../Case_maps_MapLongWString.json | 20 - .../Case_maps_MapShortBoolean.json | 20 - .../Case_maps_MapShortChar.json | 20 - .../Case_maps_MapShortDouble.json | 20 - .../Case_maps_MapShortFloat.json | 20 - ...se_maps_MapShortInnerAliasArrayHelper.json | 20 - ...MapShortInnerAliasBoundedStringHelper.json | 20 - ...apShortInnerAliasBoundedWStringHelper.json | 20 - .../Case_maps_MapShortInnerAliasHelper.json | 20 - ...Case_maps_MapShortInnerAliasMapHelper.json | 20 - ...maps_MapShortInnerAliasSequenceHelper.json | 20 - .../Case_maps_MapShortInnerBitMaskHelper.json | 20 - .../Case_maps_MapShortInnerBitsetHelper.json | 20 - .../Case_maps_MapShortInnerEnumHelper.json | 20 - ...ase_maps_MapShortInnerStructureHelper.json | 20 - .../Case_maps_MapShortInnerUnionHelper.json | 20 - .../Case_maps_MapShortLong.json | 20 - .../Case_maps_MapShortLongDouble.json | 20 - .../Case_maps_MapShortLongLong.json | 20 - .../Case_maps_MapShortOctet.json | 20 - .../Case_maps_MapShortShort.json | 20 - .../Case_maps_MapShortString.json | 20 - .../Case_maps_MapShortULong.json | 20 - .../Case_maps_MapShortULongLong.json | 20 - .../Case_maps_MapShortUShort.json | 20 - .../Case_maps_MapShortWChar.json | 20 - .../Case_maps_MapShortWString.json | 20 - .../Case_maps_MapStringBoolean.json | 20 - .../Case_maps_MapStringChar.json | 20 - .../Case_maps_MapStringDouble.json | 20 - .../Case_maps_MapStringFloat.json | 20 - ...e_maps_MapStringInnerAliasArrayHelper.json | 20 - ...apStringInnerAliasBoundedStringHelper.json | 20 - ...pStringInnerAliasBoundedWStringHelper.json | 20 - .../Case_maps_MapStringInnerAliasHelper.json | 20 - ...ase_maps_MapStringInnerAliasMapHelper.json | 20 - ...aps_MapStringInnerAliasSequenceHelper.json | 20 - ...Case_maps_MapStringInnerBitMaskHelper.json | 20 - .../Case_maps_MapStringInnerBitsetHelper.json | 20 - .../Case_maps_MapStringInnerEnumHelper.json | 20 - ...se_maps_MapStringInnerStructureHelper.json | 20 - .../Case_maps_MapStringInnerUnionHelper.json | 20 - .../Case_maps_MapStringLong.json | 20 - .../Case_maps_MapStringLongDouble.json | 20 - .../Case_maps_MapStringLongLong.json | 20 - .../Case_maps_MapStringOctet.json | 20 - .../Case_maps_MapStringShort.json | 20 - .../Case_maps_MapStringString.json | 20 - .../Case_maps_MapStringULong.json | 20 - .../Case_maps_MapStringULongLong.json | 20 - .../Case_maps_MapStringUShort.json | 20 - .../Case_maps_MapStringWChar.json | 20 - .../Case_maps_MapStringWString.json | 20 - .../Case_maps_MapULongBoolean.json | 20 - .../Case_maps_MapULongChar.json | 20 - .../Case_maps_MapULongDouble.json | 20 - .../Case_maps_MapULongFloat.json | 20 - ...se_maps_MapULongInnerAliasArrayHelper.json | 20 - ...MapULongInnerAliasBoundedStringHelper.json | 20 - ...apULongInnerAliasBoundedWStringHelper.json | 20 - .../Case_maps_MapULongInnerAliasHelper.json | 20 - ...Case_maps_MapULongInnerAliasMapHelper.json | 20 - ...maps_MapULongInnerAliasSequenceHelper.json | 20 - .../Case_maps_MapULongInnerBitMaskHelper.json | 20 - .../Case_maps_MapULongInnerBitsetHelper.json | 20 - .../Case_maps_MapULongInnerEnumHelper.json | 20 - ...ase_maps_MapULongInnerStructureHelper.json | 20 - .../Case_maps_MapULongInnerUnionHelper.json | 20 - .../Case_maps_MapULongLong.json | 20 - .../Case_maps_MapULongLongBoolean.json | 20 - .../Case_maps_MapULongLongChar.json | 20 - .../Case_maps_MapULongLongFloat.json | 20 - ...aps_MapULongLongInnerAliasArrayHelper.json | 20 - ...LongLongInnerAliasBoundedStringHelper.json | 20 - ...ongLongInnerAliasBoundedWStringHelper.json | 20 - ...ase_maps_MapULongLongInnerAliasHelper.json | 20 - ..._maps_MapULongLongInnerAliasMapHelper.json | 20 - ..._MapULongLongInnerAliasSequenceHelper.json | 20 - ...e_maps_MapULongLongInnerBitMaskHelper.json | 20 - ...se_maps_MapULongLongInnerBitsetHelper.json | 20 - ...Case_maps_MapULongLongInnerEnumHelper.json | 20 - ...maps_MapULongLongInnerStructureHelper.json | 20 - ...ase_maps_MapULongLongInnerUnionHelper.json | 20 - .../Case_maps_MapULongLongLong.json | 20 - .../Case_maps_MapULongLongLongDouble.json | 20 - .../Case_maps_MapULongLongLongLong.json | 20 - .../Case_maps_MapULongLongOctet.json | 20 - .../Case_maps_MapULongLongShort.json | 20 - .../Case_maps_MapULongLongString.json | 20 - .../Case_maps_MapULongLongULong.json | 20 - .../Case_maps_MapULongLongULongLong.json | 20 - .../Case_maps_MapULongLongUShort.json | 20 - .../Case_maps_MapULongLongWChar.json | 20 - .../Case_maps_MapULongLongWString.json | 20 - .../Case_maps_MapULongOctet.json | 20 - .../Case_maps_MapULongShort.json | 20 - .../Case_maps_MapULongString.json | 20 - .../Case_maps_MapULongULong.json | 20 - .../Case_maps_MapULongULongLong.json | 20 - .../Case_maps_MapULongUShort.json | 20 - .../Case_maps_MapULongWChar.json | 20 - .../Case_maps_MapULongWString.json | 20 - .../Case_maps_MapUShortBoolean.json | 20 - .../Case_maps_MapUShortChar.json | 20 - .../Case_maps_MapUShortDouble.json | 20 - .../Case_maps_MapUShortFloat.json | 20 - ...e_maps_MapUShortInnerAliasArrayHelper.json | 20 - ...apUShortInnerAliasBoundedStringHelper.json | 20 - ...pUShortInnerAliasBoundedWStringHelper.json | 20 - .../Case_maps_MapUShortInnerAliasHelper.json | 20 - ...ase_maps_MapUShortInnerAliasMapHelper.json | 20 - ...aps_MapUShortInnerAliasSequenceHelper.json | 20 - ...Case_maps_MapUShortInnerBitMaskHelper.json | 20 - .../Case_maps_MapUShortInnerBitsetHelper.json | 20 - .../Case_maps_MapUShortInnerEnumHelper.json | 20 - ...se_maps_MapUShortInnerStructureHelper.json | 20 - .../Case_maps_MapUShortInnerUnionHelper.json | 20 - .../Case_maps_MapUShortLong.json | 20 - .../Case_maps_MapUShortLongDouble.json | 20 - .../Case_maps_MapUShortLongLong.json | 20 - .../Case_maps_MapUShortOctet.json | 20 - .../Case_maps_MapUShortShort.json | 20 - .../Case_maps_MapUShortString.json | 20 - .../Case_maps_MapUShortULong.json | 20 - .../Case_maps_MapUShortULongLong.json | 20 - .../Case_maps_MapUShortUShort.json | 20 - .../Case_maps_MapUShortWChar.json | 20 - .../Case_maps_MapUShortWString.json | 20 - .../Case_maps_MapWStringBoolean.json | 20 - .../Case_maps_MapWStringChar.json | 20 - .../Case_maps_MapWStringDouble.json | 20 - .../Case_maps_MapWStringFloat.json | 20 - ..._maps_MapWStringInnerAliasArrayHelper.json | 20 - ...pWStringInnerAliasBoundedStringHelper.json | 20 - ...WStringInnerAliasBoundedWStringHelper.json | 20 - .../Case_maps_MapWStringInnerAliasHelper.json | 20 - ...se_maps_MapWStringInnerAliasMapHelper.json | 20 - ...ps_MapWStringInnerAliasSequenceHelper.json | 20 - ...ase_maps_MapWStringInnerBitMaskHelper.json | 20 - ...Case_maps_MapWStringInnerBitsetHelper.json | 20 - .../Case_maps_MapWStringInnerEnumHelper.json | 20 - ...e_maps_MapWStringInnerStructureHelper.json | 20 - .../Case_maps_MapWStringInnerUnionHelper.json | 20 - .../Case_maps_MapWStringLong.json | 20 - .../Case_maps_MapWStringLongDouble.json | 20 - .../Case_maps_MapWStringLongLong.json | 20 - .../Case_maps_MapWStringOctet.json | 20 - .../Case_maps_MapWStringShort.json | 20 - .../Case_maps_MapWStringString.json | 20 - .../Case_maps_MapWStringULong.json | 20 - .../Case_maps_MapWStringULongLong.json | 20 - .../Case_maps_MapWStringUShort.json | 20 - .../Case_maps_MapWStringWChar.json | 20 - .../Case_maps_MapWStringWString.json | 20 - .../Case_member_id_AutoidDefault.json | 20 - .../Case_member_id_AutoidHash.json | 20 - .../Case_member_id_AutoidSequential.json | 20 - .../Case_member_id_DerivedAutoidDefault.json | 20 - .../Case_member_id_DerivedAutoidHash.json | 20 - ...ase_member_id_DerivedAutoidSequential.json | 20 - ...ember_id_DerivedEmptyAutoidSequential.json | 20 - .../Case_member_id_FixHashid.json | 20 - .../Case_member_id_FixHashidDefault.json | 20 - .../Case_member_id_FixHexId.json | 20 - .../TypesTestsCases/Case_member_id_FixId.json | 20 - .../Case_member_id_FixMix.json | 20 - .../Case_mutable_MutableBooleanStruct.json | 20 - .../Case_mutable_MutableCharStruct.json | 20 - .../Case_mutable_MutableDoubleStruct.json | 20 - ...mutable_MutableEmptyInheritanceStruct.json | 20 - .../Case_mutable_MutableEmptyStruct.json | 20 - ...table_MutableExtensibilityInheritance.json | 20 - .../Case_mutable_MutableFloatStruct.json | 20 - ...mutable_MutableInheritanceEmptyStruct.json | 20 - ...Case_mutable_MutableInheritanceStruct.json | 20 - .../Case_mutable_MutableLongDoubleStruct.json | 20 - .../Case_mutable_MutableLongLongStruct.json | 20 - .../Case_mutable_MutableLongStruct.json | 20 - .../Case_mutable_MutableOctetStruct.json | 20 - .../Case_mutable_MutableShortStruct.json | 20 - .../Case_mutable_MutableULongLongStruct.json | 20 - .../Case_mutable_MutableULongStruct.json | 20 - .../Case_mutable_MutableUShortStruct.json | 20 - .../Case_mutable_MutableUnionStruct.json | 20 - .../Case_mutable_MutableWCharStruct.json | 20 - .../Case_optional_InnerStructOptional.json | 20 - ...optional_array_short_align_1_optional.json | 20 - ...optional_array_short_align_2_optional.json | 20 - ...optional_array_short_align_4_optional.json | 20 - .../Case_optional_array_short_optional.json | 20 - ...ase_optional_boolean_align_1_optional.json | 20 - ...ase_optional_boolean_align_2_optional.json | 20 - ...ase_optional_boolean_align_4_optional.json | 20 - .../Case_optional_boolean_optional.json | 20 - .../Case_optional_char_align_1_optional.json | 20 - .../Case_optional_char_align_2_optional.json | 20 - .../Case_optional_char_align_4_optional.json | 20 - .../Case_optional_char_optional.json | 20 - ...Case_optional_double_align_1_optional.json | 20 - ...Case_optional_double_align_2_optional.json | 20 - ...Case_optional_double_align_4_optional.json | 20 - .../Case_optional_double_optional.json | 20 - .../Case_optional_float_align_1_optional.json | 20 - .../Case_optional_float_align_2_optional.json | 20 - .../Case_optional_float_align_4_optional.json | 20 - .../Case_optional_float_optional.json | 20 - .../Case_optional_long_align_1_optional.json | 20 - .../Case_optional_long_align_2_optional.json | 20 - .../Case_optional_long_align_4_optional.json | 20 - .../Case_optional_long_optional.json | 20 - ..._optional_longdouble_align_1_optional.json | 20 - ..._optional_longdouble_align_2_optional.json | 20 - ..._optional_longdouble_align_4_optional.json | 20 - .../Case_optional_longdouble_optional.json | 20 - ...se_optional_longlong_align_1_optional.json | 20 - ...se_optional_longlong_align_2_optional.json | 20 - ...se_optional_longlong_align_4_optional.json | 20 - .../Case_optional_longlong_optional.json | 20 - ...e_optional_map_short_align_1_optional.json | 20 - ...e_optional_map_short_align_2_optional.json | 20 - ...e_optional_map_short_align_4_optional.json | 20 - .../Case_optional_map_short_optional.json | 20 - .../Case_optional_octet_align_1_optional.json | 20 - .../Case_optional_octet_align_2_optional.json | 20 - .../Case_optional_octet_align_4_optional.json | 20 - .../Case_optional_octet_optional.json | 20 - ..._optional_opt_struct_align_1_optional.json | 20 - ..._optional_opt_struct_align_2_optional.json | 20 - ..._optional_opt_struct_align_4_optional.json | 20 - .../Case_optional_opt_struct_optional.json | 20 - ...ional_sequence_short_align_1_optional.json | 20 - ...ional_sequence_short_align_2_optional.json | 20 - ...ional_sequence_short_align_4_optional.json | 20 - ...Case_optional_sequence_short_optional.json | 20 - .../Case_optional_short_align_1_optional.json | 20 - .../Case_optional_short_align_2_optional.json | 20 - .../Case_optional_short_align_4_optional.json | 20 - .../Case_optional_short_optional.json | 20 - ...ional_string_bounded_align_1_optional.json | 20 - ...ional_string_bounded_align_2_optional.json | 20 - ...ional_string_bounded_align_4_optional.json | 20 - ...Case_optional_string_bounded_optional.json | 20 - ...nal_string_unbounded_align_1_optional.json | 20 - ...nal_string_unbounded_align_2_optional.json | 20 - ...nal_string_unbounded_align_4_optional.json | 20 - ...se_optional_string_unbounded_optional.json | 20 - ...Case_optional_struct_align_1_optional.json | 20 - ...Case_optional_struct_align_2_optional.json | 20 - ...Case_optional_struct_align_4_optional.json | 20 - .../Case_optional_struct_optional.json | 20 - .../Case_optional_ulong_align_1_optional.json | 20 - .../Case_optional_ulong_align_2_optional.json | 20 - .../Case_optional_ulong_align_4_optional.json | 20 - .../Case_optional_ulong_optional.json | 20 - ...e_optional_ulonglong_align_1_optional.json | 20 - ...e_optional_ulonglong_align_2_optional.json | 20 - ...e_optional_ulonglong_align_4_optional.json | 20 - .../Case_optional_ulonglong_optional.json | 20 - ...Case_optional_ushort_align_1_optional.json | 20 - ...Case_optional_ushort_align_2_optional.json | 20 - ...Case_optional_ushort_align_4_optional.json | 20 - .../Case_optional_ushort_optional.json | 20 - .../Case_optional_wchar_align_1_optional.json | 20 - .../Case_optional_wchar_align_2_optional.json | 20 - .../Case_optional_wchar_align_4_optional.json | 20 - .../Case_optional_wchar_optional.json | 20 - .../Case_primitives_BooleanStruct.json | 20 - .../Case_primitives_CharStruct.json | 20 - .../Case_primitives_DoubleStruct.json | 20 - .../Case_primitives_FloatStruct.json | 20 - .../Case_primitives_Int16Struct.json | 20 - .../Case_primitives_Int32Struct.json | 20 - .../Case_primitives_Int64Struct.json | 20 - .../Case_primitives_Int8Struct.json | 20 - .../Case_primitives_LongDoubleStruct.json | 20 - .../Case_primitives_LongLongStruct.json | 20 - .../Case_primitives_LongStruct.json | 20 - .../Case_primitives_OctetStruct.json | 20 - .../Case_primitives_ShortStruct.json | 20 - .../Case_primitives_ULongLongStruct.json | 20 - .../Case_primitives_ULongStruct.json | 20 - .../Case_primitives_UShortStruct.json | 20 - .../Case_primitives_Uint16Struct.json | 20 - .../Case_primitives_Uint32Struct.json | 20 - .../Case_primitives_Uint64Struct.json | 20 - .../Case_primitives_Uint8Struct.json | 20 - .../Case_primitives_WCharStruct.json | 20 - .../Case_sequences_BoundedBigSequences.json | 20 - .../Case_sequences_BoundedSmallSequences.json | 20 - .../Case_sequences_SequenceAlias.json | 20 - .../Case_sequences_SequenceBitMask.json | 20 - .../Case_sequences_SequenceBitset.json | 20 - .../Case_sequences_SequenceBoolean.json | 20 - .../Case_sequences_SequenceChar.json | 20 - .../Case_sequences_SequenceDouble.json | 20 - .../Case_sequences_SequenceEnum.json | 20 - .../Case_sequences_SequenceFloat.json | 20 - .../Case_sequences_SequenceLong.json | 20 - .../Case_sequences_SequenceLongDouble.json | 20 - .../Case_sequences_SequenceLongLong.json | 20 - .../Case_sequences_SequenceMap.json | 20 - .../Case_sequences_SequenceOctet.json | 20 - .../Case_sequences_SequenceSequence.json | 20 - .../Case_sequences_SequenceShort.json | 20 - .../Case_sequences_SequenceShortArray.json | 20 - .../Case_sequences_SequenceString.json | 20 - .../Case_sequences_SequenceStringBounded.json | 20 - .../Case_sequences_SequenceStructure.json | 20 - .../Case_sequences_SequenceULong.json | 20 - .../Case_sequences_SequenceULongLong.json | 20 - .../Case_sequences_SequenceUShort.json | 20 - .../Case_sequences_SequenceUnion.json | 20 - .../Case_sequences_SequenceWChar.json | 20 - .../Case_sequences_SequenceWString.json | 20 - ...Case_sequences_SequenceWStringBounded.json | 20 - .../Case_strings_LargeStringStruct.json | 20 - .../Case_strings_LargeWStringStruct.json | 20 - .../Case_strings_SmallStringStruct.json | 20 - .../Case_strings_SmallWStringStruct.json | 20 - .../Case_strings_StringStruct.json | 20 - .../Case_strings_WStringStruct.json | 20 - .../Case_structures_StructAlias.json | 20 - .../Case_structures_StructBitMask.json | 20 - .../Case_structures_StructBitset.json | 20 - .../Case_structures_StructBoolean.json | 20 - .../Case_structures_StructBoundedString.json | 20 - .../Case_structures_StructBoundedWString.json | 20 - .../Case_structures_StructChar16.json | 20 - .../Case_structures_StructChar8.json | 20 - .../Case_structures_StructDouble.json | 20 - .../Case_structures_StructEmpty.json | 20 - .../Case_structures_StructEnum.json | 20 - .../Case_structures_StructFloat.json | 20 - .../Case_structures_StructLong.json | 20 - .../Case_structures_StructLongDouble.json | 20 - .../Case_structures_StructLongLong.json | 20 - .../Case_structures_StructMap.json | 20 - .../Case_structures_StructOctet.json | 20 - .../Case_structures_StructSequence.json | 20 - .../Case_structures_StructShort.json | 20 - .../Case_structures_StructShortArray.json | 20 - .../Case_structures_StructString.json | 20 - .../Case_structures_StructStructure.json | 20 - .../Case_structures_StructUnion.json | 20 - .../Case_structures_StructUnsignedLong.json | 20 - ...ase_structures_StructUnsignedLongLong.json | 20 - .../Case_structures_StructUnsignedShort.json | 20 - .../Case_structures_StructWString.json | 20 - .../Case_structures_Structures.json | 20 - .../TypesTestsCases/Case_structures_bar.json | 20 - .../TypesTestsCases/Case_structures_foo.json | 20 - .../Case_structures_root1.json | 20 - .../Case_structures_root2.json | 20 - .../Case_unions_UnionArray.json | 20 - .../Case_unions_UnionBoolean.json | 20 - .../Case_unions_UnionBoundedString.json | 20 - .../Case_unions_UnionBoundedWString.json | 20 - .../Case_unions_UnionChar.json | 20 - .../Case_unions_UnionDiscriminatorAlias.json | 20 - ...Case_unions_UnionDiscriminatorBoolean.json | 20 - .../Case_unions_UnionDiscriminatorChar.json | 20 - .../Case_unions_UnionDiscriminatorEnum.json | 20 - ...se_unions_UnionDiscriminatorEnumLabel.json | 20 - .../Case_unions_UnionDiscriminatorLong.json | 20 - ...ase_unions_UnionDiscriminatorLongLong.json | 20 - .../Case_unions_UnionDiscriminatorOctet.json | 20 - .../Case_unions_UnionDiscriminatorShort.json | 20 - .../Case_unions_UnionDiscriminatorULong.json | 20 - ...se_unions_UnionDiscriminatorULongLong.json | 20 - .../Case_unions_UnionDiscriminatorUShort.json | 20 - .../Case_unions_UnionDiscriminatorWChar.json | 20 - .../Case_unions_UnionDouble.json | 20 - .../Case_unions_UnionFloat.json | 20 - .../Case_unions_UnionInnerAliasHelper.json | 20 - .../Case_unions_UnionInnerBitMaskHelper.json | 20 - .../Case_unions_UnionInnerBitsetHelper.json | 20 - .../Case_unions_UnionInnerEnumHelper.json | 20 - ...Case_unions_UnionInnerStructureHelper.json | 20 - .../Case_unions_UnionInnerUnionHelper.json | 20 - .../Case_unions_UnionLong.json | 20 - .../Case_unions_UnionLongDouble.json | 20 - .../Case_unions_UnionLongLong.json | 20 - .../TypesTestsCases/Case_unions_UnionMap.json | 20 - .../Case_unions_UnionOctet.json | 20 - .../Case_unions_UnionSequence.json | 20 - .../Case_unions_UnionShort.json | 20 - .../Case_unions_UnionString.json | 20 - .../Case_unions_UnionULong.json | 20 - .../Case_unions_UnionULongLong.json | 20 - .../Case_unions_UnionUShort.json | 20 - .../Case_unions_UnionWChar.json | 20 - .../Case_unions_UnionWString.json | 20 - .../xtypes/TypesTestsCases/Cases_aliases.json | 529 ++ .../TypesTestsCases/Cases_annotations.json | 46 + .../TypesTestsCases/Cases_appendable.json | 403 ++ .../xtypes/TypesTestsCases/Cases_arrays.json | 2188 ++++++++ .../xtypes/TypesTestsCases/Cases_bitsets.json | 25 + .../TypesTestsCases/Cases_constants.json | 67 + .../TypesTestsCases/Cases_declarations.json | 109 + .../TypesTestsCases/Cases_enumerations.json | 67 + .../TypesTestsCases/Cases_external.json | 571 +++ .../xtypes/TypesTestsCases/Cases_final.json | 403 ++ .../Cases_helpers_basic_inner_types.json | 46 + .../TypesTestsCases/Cases_inheritance.json | 172 + .../dds/xtypes/TypesTestsCases/Cases_key.json | 361 ++ .../xtypes/TypesTestsCases/Cases_maps.json | 4414 +++++++++++++++++ .../TypesTestsCases/Cases_member_id.json | 256 + .../xtypes/TypesTestsCases/Cases_mutable.json | 403 ++ .../TypesTestsCases/Cases_optional.json | 1705 +++++++ .../TypesTestsCases/Cases_primitives.json | 445 ++ .../TypesTestsCases/Cases_sequences.json | 592 +++ .../xtypes/TypesTestsCases/Cases_strings.json | 130 + .../TypesTestsCases/Cases_structures.json | 697 +++ .../xtypes/TypesTestsCases/Cases_unions.json | 823 +++ test/dds/xtypes/test_build.py | 65 +- .../xtypes/update_header_and_create_cases.py | 98 +- 773 files changed, 14882 insertions(+), 15062 deletions(-) delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasAlias.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasArray.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitmask.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitset.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBool.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar16.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar8.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasEnum.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat128.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat32.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat64.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt16.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt32.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt64.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMultiArray.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasSequence.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString16.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString8.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt32.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt64.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUint16.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUnion.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_annotations_AnnotatedStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_annotations_EmptyAnnotatedStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableBooleanStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableExtensibilityInheritance.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableFloatStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceEmptyStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableOctetStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUnionStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableWCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayAlias.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitMask.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitset.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayEnum.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionAlias.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitMask.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitset.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionEnum.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsAlias.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitMask.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitSet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsEnum.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsSequence.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUnion.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionSequence.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUnion.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySequence.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShortArray.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsAlias.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitMask.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitset.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsEnum.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsSequence.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShortArray.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnion.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUnion.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedBigArrays.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedSmallArrays.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_bitsets_BitsetStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_constants_ConstsLiteralsStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardDeclarationsRecursiveStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledCommonNameStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardDeclarationsRecursiveStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_enumerations_BitMaskStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_enumerations_BoundedBitMaskStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_enumerations_EnumStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_InnerStructExternal.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_array_short_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_boolean_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_char_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_double_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ext_and_inner_struct_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ext_struct_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_float_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_long_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_longdouble_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_longlong_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_map_short_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_octet_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_recursive_structure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_1.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_2.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_recursive_union_container.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_sequence_short_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_short_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_string_bounded_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_string_unbounded_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_struct_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_struct_external_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ulong_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ulonglong_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_ushort_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_external_wchar_external.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalBooleanStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalExtensibilityInheritance.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalFloatStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalLongDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalLongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalOctetStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalULongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalULongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalUShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalUnionStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_FinalWCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_final_InheritanceEmptyStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerEmptyStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_BitsetsChildInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerEmptyStructureHelperChild.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChild.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChildChild.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChild.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChildChild.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_StructAliasInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_inheritance_StructuresInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_InheritanceKeyedEmptyStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedBooleanStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedFloatStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedOctetStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedUShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_key_KeyedWCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_BoundedLargeMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_BoundedSmallMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongLongValueDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongDoubleValue.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongLongValue.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyDoubleValue.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyLongValue.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasArrayHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedWStringHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasMapHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasSequenceHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidDefault.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidHash.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidSequential.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidDefault.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidHash.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidSequential.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedEmptyAutoidSequential.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashid.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashidDefault.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixHexId.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixId.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_member_id_FixMix.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableBooleanStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableExtensibilityInheritance.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableFloatStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceEmptyStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableOctetStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUnionStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_mutable_MutableWCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_InnerStructOptional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_array_short_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_boolean_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_char_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_char_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_char_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_char_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_double_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_double_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_double_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_double_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_float_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_float_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_float_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_float_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_long_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_long_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_long_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_long_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_longlong_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_map_short_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_octet_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_short_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_short_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_short_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_short_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_struct_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulong_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_ushort_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_1_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_2_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_4_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_optional_wchar_optional.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_BooleanStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_CharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_DoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_FloatStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Int16Struct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Int32Struct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Int64Struct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Int8Struct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_LongDoubleStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_LongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_LongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_OctetStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_ShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_ULongLongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_ULongStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_UShortStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Uint16Struct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Uint32Struct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Uint64Struct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_Uint8Struct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_primitives_WCharStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedBigSequences.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedSmallSequences.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceAlias.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitMask.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitset.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceEnum.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceSequence.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShortArray.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStringBounded.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUnion.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWStringBounded.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_LargeStringStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_LargeWStringStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_SmallStringStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_SmallWStringStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_StringStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_strings_WStringStruct.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructAlias.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBitMask.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBitset.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructChar16.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructChar8.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructEmpty.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructEnum.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructSequence.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructShortArray.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructStructure.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructUnion.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_StructWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_Structures.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_bar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_foo.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_root1.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_structures_root2.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionArray.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedWString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorAlias.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorBoolean.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnum.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnumLabel.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionFloat.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerAliasHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitMaskHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitsetHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerEnumHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerStructureHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerUnionHelper.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongDouble.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionMap.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionOctet.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionSequence.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionString.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionULong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionULongLong.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionUShort.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionWChar.json delete mode 100644 test/dds/xtypes/TypesTestsCases/Case_unions_UnionWString.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_aliases.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_annotations.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_appendable.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_arrays.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_bitsets.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_constants.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_declarations.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_enumerations.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_external.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_final.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_inheritance.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_key.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_maps.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_member_id.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_mutable.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_optional.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_primitives.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_sequences.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_strings.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_structures.json create mode 100644 test/dds/xtypes/TypesTestsCases/Cases_unions.json mode change 100755 => 100644 test/dds/xtypes/update_header_and_create_cases.py diff --git a/test/dds/xtypes/BaseCases/Case0.json b/test/dds/xtypes/BaseCases/Case0.json index e5a22eceb79..21086640304 100644 --- a/test/dds/xtypes/BaseCases/Case0.json +++ b/test/dds/xtypes/BaseCases/Case0.json @@ -1,20 +1,25 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [ - "TypeNoTypeObject" + "TestCase": "Case_0", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [ + "TypeNoTypeObject" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [] + } ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/BaseCases/Case1.json b/test/dds/xtypes/BaseCases/Case1.json index f50d995af0b..70479d91979 100644 --- a/test/dds/xtypes/BaseCases/Case1.json +++ b/test/dds/xtypes/BaseCases/Case1.json @@ -1,21 +1,26 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [ - "Type1" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [ - "Type1" + "TestCase": "Case_1", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [ + "Type1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [ + "Type1" + ] + } ] } ] diff --git a/test/dds/xtypes/BaseCases/Case10.json b/test/dds/xtypes/BaseCases/Case10.json index b40775115e6..653cdf4ff2c 100644 --- a/test/dds/xtypes/BaseCases/Case10.json +++ b/test/dds/xtypes/BaseCases/Case10.json @@ -1,31 +1,36 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "2", - "known_types": [ - "Type2" - ] - }, - { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "2", - "known_types": [ - "Type1" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "4", - "known_types": [ - "Type1", - "Type2" + "TestCase": "Case_10", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "2", + "known_types": [ + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "2", + "known_types": [ + "Type1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "4", + "known_types": [ + "Type1", + "Type2" + ] + } ] } ] diff --git a/test/dds/xtypes/BaseCases/Case2.json b/test/dds/xtypes/BaseCases/Case2.json index b263ff76c9c..a5a4ec715e8 100644 --- a/test/dds/xtypes/BaseCases/Case2.json +++ b/test/dds/xtypes/BaseCases/Case2.json @@ -1,20 +1,25 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [ - "Type1" + "TestCase": "Case_2", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [ + "Type1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [] + } ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/BaseCases/Case3.json b/test/dds/xtypes/BaseCases/Case3.json index e2c2ff5d7d6..7cc7599a917 100644 --- a/test/dds/xtypes/BaseCases/Case3.json +++ b/test/dds/xtypes/BaseCases/Case3.json @@ -1,21 +1,26 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "2", - "known_types": [ - "Type1" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "2", - "known_types": [ - "Type2" + "TestCase": "Case_3", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "2", + "known_types": [ + "Type1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "2", + "known_types": [ + "Type2" + ] + } ] } ] diff --git a/test/dds/xtypes/BaseCases/Case4.json b/test/dds/xtypes/BaseCases/Case4.json index 0ce64f3fe71..e7da878c6b7 100644 --- a/test/dds/xtypes/BaseCases/Case4.json +++ b/test/dds/xtypes/BaseCases/Case4.json @@ -1,23 +1,28 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "3", - "known_types": [ - "Type1", - "Type2" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "3", - "known_types": [ - "Type1", - "Type3" + "TestCase": "Case_4", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "3", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "3", + "known_types": [ + "Type1", + "Type3" + ] + } ] } ] diff --git a/test/dds/xtypes/BaseCases/Case5.json b/test/dds/xtypes/BaseCases/Case5.json index 4373e2b9f2c..30dbc95ac51 100644 --- a/test/dds/xtypes/BaseCases/Case5.json +++ b/test/dds/xtypes/BaseCases/Case5.json @@ -1,23 +1,28 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "2", - "known_types": [ - "Type1", - "Type2" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "2", - "known_types": [ - "Type1", - "Type2" + "TestCase": "Case_5", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "2", + "known_types": [ + "Type1", + "Type2" + ] + } ] } ] diff --git a/test/dds/xtypes/BaseCases/Case6.json b/test/dds/xtypes/BaseCases/Case6.json index 52d67f0fad8..34e4deebfe7 100644 --- a/test/dds/xtypes/BaseCases/Case6.json +++ b/test/dds/xtypes/BaseCases/Case6.json @@ -1,20 +1,25 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [ - "TypeDep" + "TestCase": "Case_6", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [ + "TypeDep" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [] + } ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/BaseCases/Case7.json b/test/dds/xtypes/BaseCases/Case7.json index c80b8794bb3..9dece8f9fb1 100644 --- a/test/dds/xtypes/BaseCases/Case7.json +++ b/test/dds/xtypes/BaseCases/Case7.json @@ -1,20 +1,25 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "TypeBig" + "TestCase": "Case_7", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "TypeBig" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] } ] } \ No newline at end of file diff --git a/test/dds/xtypes/BaseCases/Case8.json b/test/dds/xtypes/BaseCases/Case8.json index 9ceff72be77..6bf6ada2b46 100644 --- a/test/dds/xtypes/BaseCases/Case8.json +++ b/test/dds/xtypes/BaseCases/Case8.json @@ -1,119 +1,124 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "3", - "timeout": "10", - "expected_matches": "100", - "known_types": [ - "Type1", - "Type2", - "Type3", - "Type4", - "Type5", - "Type6", - "Type7", - "Type8", - "Type9", - "Type10", - "Type11", - "Type12", - "Type13", - "Type14", - "Type15", - "Type16", - "Type17", - "Type18", - "Type19", - "Type20", - "Type21", - "Type22", - "Type23", - "Type24", - "Type25", - "Type26", - "Type27", - "Type28", - "Type29", - "Type30", - "Type31", - "Type32", - "Type33", - "Type34", - "Type35", - "Type36", - "Type37", - "Type38", - "Type39", - "Type40", - "Type41", - "Type42", - "Type43", - "Type44", - "Type45", - "Type46", - "Type47", - "Type48", - "Type49", - "Type50" - ] - }, - { - "kind": "subscriber", - "samples": "3", - "timeout": "10", - "expected_matches": "100", - "known_types": [ - "Type51", - "Type52", - "Type53", - "Type54", - "Type55", - "Type56", - "Type57", - "Type58", - "Type59", - "Type60", - "Type61", - "Type62", - "Type63", - "Type64", - "Type65", - "Type66", - "Type67", - "Type68", - "Type69", - "Type70", - "Type71", - "Type72", - "Type73", - "Type74", - "Type75", - "Type76", - "Type77", - "Type78", - "Type79", - "Type80", - "Type81", - "Type82", - "Type83", - "Type84", - "Type85", - "Type86", - "Type87", - "Type88", - "Type89", - "Type90", - "Type91", - "Type92", - "Type93", - "Type94", - "Type95", - "Type96", - "Type97", - "Type98", - "Type99", - "Type100" + "TestCase": "Case_8", + "participants": [ + { + "kind": "publisher", + "samples": "3", + "timeout": "10", + "expected_matches": "100", + "known_types": [ + "Type1", + "Type2", + "Type3", + "Type4", + "Type5", + "Type6", + "Type7", + "Type8", + "Type9", + "Type10", + "Type11", + "Type12", + "Type13", + "Type14", + "Type15", + "Type16", + "Type17", + "Type18", + "Type19", + "Type20", + "Type21", + "Type22", + "Type23", + "Type24", + "Type25", + "Type26", + "Type27", + "Type28", + "Type29", + "Type30", + "Type31", + "Type32", + "Type33", + "Type34", + "Type35", + "Type36", + "Type37", + "Type38", + "Type39", + "Type40", + "Type41", + "Type42", + "Type43", + "Type44", + "Type45", + "Type46", + "Type47", + "Type48", + "Type49", + "Type50" + ] + }, + { + "kind": "subscriber", + "samples": "3", + "timeout": "10", + "expected_matches": "100", + "known_types": [ + "Type51", + "Type52", + "Type53", + "Type54", + "Type55", + "Type56", + "Type57", + "Type58", + "Type59", + "Type60", + "Type61", + "Type62", + "Type63", + "Type64", + "Type65", + "Type66", + "Type67", + "Type68", + "Type69", + "Type70", + "Type71", + "Type72", + "Type73", + "Type74", + "Type75", + "Type76", + "Type77", + "Type78", + "Type79", + "Type80", + "Type81", + "Type82", + "Type83", + "Type84", + "Type85", + "Type86", + "Type87", + "Type88", + "Type89", + "Type90", + "Type91", + "Type92", + "Type93", + "Type94", + "Type95", + "Type96", + "Type97", + "Type98", + "Type99", + "Type100" + ] + } ] } ] diff --git a/test/dds/xtypes/BaseCases/Case9.json b/test/dds/xtypes/BaseCases/Case9.json index 5ca84a72d69..53266f777a6 100644 --- a/test/dds/xtypes/BaseCases/Case9.json +++ b/test/dds/xtypes/BaseCases/Case9.json @@ -1,26 +1,31 @@ { - "participants": [ + "test_cases": [ { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [] - }, - { - "kind": "publisher", - "samples": "10", - "timeout": "3", - "expected_matches": "1", - "known_types": [] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "3", - "expected_matches": "2", - "known_types": [ - "Type2" + "TestCase": "Case_9", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "3", + "expected_matches": "1", + "known_types": [] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "3", + "expected_matches": "2", + "known_types": [ + "Type2" + ] + } ] } ] diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index c8f796c6cf6..53ae7001151 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -63,7 +63,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_build.py # Get test definitions from the json files file(GLOB TEST_DEFINITIONS "BaseCases/Case*" - "TypesTestsCases/Case*" + "TypesTestsCases/Cases*" ) if(PYTHONINTERP_FOUND) diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index a69cc94c18d..2f62656d05b 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -288,7 +288,6 @@ bool TypeLookupServicePublisher::run( } return false; } - std::cout << "SUCCESS TypeLookupServicePublisher" << std::endl; return true; } diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index cb78567ad3d..e297619a009 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -277,7 +277,6 @@ bool TypeLookupServiceSubscriber::run( return false; } - std::cout << "SUCCESS TypeLookupServiceSubscriber" << std::endl; return true; } diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasAlias.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasAlias.json deleted file mode 100644 index 5f26df0f5b5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasAlias.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasAlias" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasArray.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasArray.json deleted file mode 100644 index a5a61300c8d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasArray.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasArray" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitmask.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitmask.json deleted file mode 100644 index 116b6a55fe7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitmask.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasBitmask" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitset.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitset.json deleted file mode 100644 index a6de75c0204..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBitset.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasBitset" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBool.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBool.json deleted file mode 100644 index 0ffa500895e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasBool.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasBool" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar16.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar16.json deleted file mode 100644 index c09c2e721f3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar16.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasChar16" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar8.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar8.json deleted file mode 100644 index e512aa379ee..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasChar8.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasChar8" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasEnum.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasEnum.json deleted file mode 100644 index a046ebf8ee6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasEnum.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasEnum" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat128.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat128.json deleted file mode 100644 index 84406157fa2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat128.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasFloat128" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat32.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat32.json deleted file mode 100644 index 2f4f1fabe41..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat32.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasFloat32" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat64.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat64.json deleted file mode 100644 index e655eb68531..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasFloat64.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasFloat64" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt16.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt16.json deleted file mode 100644 index cacb36c5f8c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt16.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasInt16" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt32.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt32.json deleted file mode 100644 index b267ed4368d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt32.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasInt32" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt64.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt64.json deleted file mode 100644 index fe083c65a3a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasInt64.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasInt64" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMap.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMap.json deleted file mode 100644 index 05020cd92d1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMultiArray.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMultiArray.json deleted file mode 100644 index 1edd870113b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasMultiArray.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasMultiArray" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasOctet.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasOctet.json deleted file mode 100644 index f89426ab544..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasSequence.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasSequence.json deleted file mode 100644 index 147469599b4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasSequence.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasSequence" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString16.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString16.json deleted file mode 100644 index 47c716dbab3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString16.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasString16" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString8.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString8.json deleted file mode 100644 index 43b11d04afe..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasString8.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasString8" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasStruct.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasStruct.json deleted file mode 100644 index a555f3d4dd7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt32.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt32.json deleted file mode 100644 index 5f1ed46f406..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt32.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasUInt32" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt64.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt64.json deleted file mode 100644 index 9110d95ff01..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUInt64.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasUInt64" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUint16.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUint16.json deleted file mode 100644 index 7a9c9897f35..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUint16.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasUint16" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUnion.json b/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUnion.json deleted file mode 100644 index 6f6c58d4159..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_aliases_AliasUnion.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AliasUnion" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_annotations_AnnotatedStruct.json b/test/dds/xtypes/TypesTestsCases/Case_annotations_AnnotatedStruct.json deleted file mode 100644 index 1750cb19a16..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_annotations_AnnotatedStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AnnotatedStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_annotations_EmptyAnnotatedStruct.json b/test/dds/xtypes/TypesTestsCases/Case_annotations_EmptyAnnotatedStruct.json deleted file mode 100644 index 627e809ca49..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_annotations_EmptyAnnotatedStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "EmptyAnnotatedStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableBooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableBooleanStruct.json deleted file mode 100644 index 423162fc62f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableBooleanStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableBooleanStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableCharStruct.json deleted file mode 100644 index bb0e0433592..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableDoubleStruct.json deleted file mode 100644 index b9a40192f4f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyInheritanceStruct.json deleted file mode 100644 index 891d3760199..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableEmptyInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyStruct.json deleted file mode 100644 index 1956b54ca90..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableEmptyStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableEmptyStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableExtensibilityInheritance.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableExtensibilityInheritance.json deleted file mode 100644 index c0d7e9d7330..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableExtensibilityInheritance.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableExtensibilityInheritance" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableFloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableFloatStruct.json deleted file mode 100644 index 55cb96b0754..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableFloatStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableFloatStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceEmptyStruct.json deleted file mode 100644 index c49d9c04faf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceEmptyStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableInheritanceEmptyStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceStruct.json deleted file mode 100644 index a5d9a849f21..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongDoubleStruct.json deleted file mode 100644 index 66a4327d4f9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableLongDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongLongStruct.json deleted file mode 100644 index 8cf4655c4b5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableLongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongStruct.json deleted file mode 100644 index d12b057e7da..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableOctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableOctetStruct.json deleted file mode 100644 index a449288fdd1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableOctetStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableOctetStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableShortStruct.json deleted file mode 100644 index bad7a6d9d62..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongLongStruct.json deleted file mode 100644 index b762aec2403..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableULongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongStruct.json deleted file mode 100644 index 8d4d9573133..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableULongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableULongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUShortStruct.json deleted file mode 100644 index 4c28ef94067..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableUShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUnionStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUnionStruct.json deleted file mode 100644 index d75a4d8ee2c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableUnionStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableUnionStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableWCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableWCharStruct.json deleted file mode 100644 index be58be03dbf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_appendable_AppendableWCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AppendableWCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayAlias.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayAlias.json deleted file mode 100644 index 6c8b3fed206..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayAlias.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayAlias" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitMask.json deleted file mode 100644 index f9cd873913c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitMask.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayBitMask" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitset.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitset.json deleted file mode 100644 index 3f6af88e03d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBitset.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayBitset" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoolean.json deleted file mode 100644 index a6987c03933..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedString.json deleted file mode 100644 index 8efaa469367..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayBoundedString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedWString.json deleted file mode 100644 index f587850078f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayBoundedWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayBoundedWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayChar.json deleted file mode 100644 index e3b0593671c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayDouble.json deleted file mode 100644 index 508b5e11b00..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayEnum.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayEnum.json deleted file mode 100644 index e6536041722..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayEnum.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayEnum" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayFloat.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayFloat.json deleted file mode 100644 index 8f80b0c9a8d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLong.json deleted file mode 100644 index 193f10e5329..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongDouble.json deleted file mode 100644 index 864af3267fa..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongLong.json deleted file mode 100644 index 8bd15c928ad..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMap.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMap.json deleted file mode 100644 index ae4571a5834..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionAlias.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionAlias.json deleted file mode 100644 index 64f2f07c579..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionAlias.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionAlias" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitMask.json deleted file mode 100644 index f8975d95af4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitMask.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionBitMask" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitset.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitset.json deleted file mode 100644 index 0fc77185557..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBitset.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionBitset" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoolean.json deleted file mode 100644 index 883a3ad901d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedString.json deleted file mode 100644 index 02301f0f551..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionBoundedString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedWString.json deleted file mode 100644 index 99a3ef884ce..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionBoundedWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionBoundedWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionChar.json deleted file mode 100644 index 480a6a841e0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionDouble.json deleted file mode 100644 index 995c263bcb5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionEnum.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionEnum.json deleted file mode 100644 index fe644879c83..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionEnum.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionEnum" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionFloat.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionFloat.json deleted file mode 100644 index 9825785ccc1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsAlias.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsAlias.json deleted file mode 100644 index 5795eabf52f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsAlias.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsAlias" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitMask.json deleted file mode 100644 index cf4a0ef298a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitMask.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsBitMask" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitSet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitSet.json deleted file mode 100644 index bd536b4361b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBitSet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsBitSet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoolean.json deleted file mode 100644 index d6e86d8a913..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedString.json deleted file mode 100644 index 46601920598..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsBoundedString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedWString.json deleted file mode 100644 index c730f4e9a17..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsBoundedWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsBoundedWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsChar.json deleted file mode 100644 index 87957324e56..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsDouble.json deleted file mode 100644 index 82352fc024b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsEnum.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsEnum.json deleted file mode 100644 index 5490ee439ba..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsEnum.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsEnum" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsFloat.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsFloat.json deleted file mode 100644 index 8bc0a4b5416..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLong.json deleted file mode 100644 index 8cd7d860ca1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongDouble.json deleted file mode 100644 index d7205fde5e4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongLong.json deleted file mode 100644 index 3243328c2a2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsMap.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsMap.json deleted file mode 100644 index 77d87dc773f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsOctet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsOctet.json deleted file mode 100644 index 5e46d02199c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsSequence.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsSequence.json deleted file mode 100644 index 81ece8828dd..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsSequence.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsSequence" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsShort.json deleted file mode 100644 index 1f14ea14f4e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsString.json deleted file mode 100644 index 10387a28442..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsStructure.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsStructure.json deleted file mode 100644 index 95ed47de9bf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULong.json deleted file mode 100644 index 7a0ba93758d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULongLong.json deleted file mode 100644 index c2973191616..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUShort.json deleted file mode 100644 index 2064e25b9be..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUnion.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUnion.json deleted file mode 100644 index cc601dcd3b1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsUnion.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsUnion" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWChar.json deleted file mode 100644 index 53dac0dc84f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWString.json deleted file mode 100644 index 7f4143ada85..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLiteralsWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLiteralsWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLong.json deleted file mode 100644 index f8da5f90a0c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongDouble.json deleted file mode 100644 index 3ea3a844bdb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongLong.json deleted file mode 100644 index a93b0900c3d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionMap.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionMap.json deleted file mode 100644 index f04dbf7c1e1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionOctet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionOctet.json deleted file mode 100644 index 1744ccce2c0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionSequence.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionSequence.json deleted file mode 100644 index c719be7e768..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionSequence.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionSequence" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionShort.json deleted file mode 100644 index e1037b96208..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionString.json deleted file mode 100644 index d51412fbf24..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionStructure.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionStructure.json deleted file mode 100644 index 9ef82bcf419..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULong.json deleted file mode 100644 index deea98b8c46..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULongLong.json deleted file mode 100644 index ea13ad365c8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUShort.json deleted file mode 100644 index f3b86913ed2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUnion.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUnion.json deleted file mode 100644 index 4167b764972..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionUnion.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionUnion" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWChar.json deleted file mode 100644 index 9000cecc426..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWString.json deleted file mode 100644 index e3dbd163e9b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayMultiDimensionWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayMultiDimensionWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayOctet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayOctet.json deleted file mode 100644 index 9d89a22bea0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySequence.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySequence.json deleted file mode 100644 index 431d864f152..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySequence.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySequence" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShort.json deleted file mode 100644 index 5bcb1e6dd1c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShortArray.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShortArray.json deleted file mode 100644 index c7b23ff6fa0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayShortArray.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayShortArray" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsAlias.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsAlias.json deleted file mode 100644 index f7a0b3dbcd7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsAlias.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsAlias" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitMask.json deleted file mode 100644 index b345ffd6363..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitMask.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsBitMask" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitset.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitset.json deleted file mode 100644 index fb41f3cdfa4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBitset.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsBitset" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoolean.json deleted file mode 100644 index 63e5c875bfa..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedString.json deleted file mode 100644 index 15a5adce7eb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsBoundedString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedWString.json deleted file mode 100644 index 0d49250411e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsBoundedWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsBoundedWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsChar.json deleted file mode 100644 index 2c6f13961e9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsDouble.json deleted file mode 100644 index cc4e9ea6ab2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsEnum.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsEnum.json deleted file mode 100644 index 69e9b37380a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsEnum.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsEnum" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsFloat.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsFloat.json deleted file mode 100644 index 0ce3bbf2b4b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLong.json deleted file mode 100644 index 8baa84761c3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongDouble.json deleted file mode 100644 index 0b6ffb95c19..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongLong.json deleted file mode 100644 index 0052c5e2d53..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsMap.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsMap.json deleted file mode 100644 index d9a83121cb6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsOctet.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsOctet.json deleted file mode 100644 index a815d648468..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsSequence.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsSequence.json deleted file mode 100644 index 9a4a0d60483..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsSequence.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsSequence" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShort.json deleted file mode 100644 index e899ef7e174..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShortArray.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShortArray.json deleted file mode 100644 index c234ef94dcb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsShortArray.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsShortArray" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsString.json deleted file mode 100644 index c1f267f7924..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsStructure.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsStructure.json deleted file mode 100644 index 7c91ef0b70a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnion.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnion.json deleted file mode 100644 index 07ca621be8a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnion.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsUnion" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLong.json deleted file mode 100644 index 02a3a05f56d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsUnsignedLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong.json deleted file mode 100644 index a6ec9a5e6c8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsUnsignedLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedShort.json deleted file mode 100644 index 529431b49d9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsUnsignedShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsUnsignedShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWChar.json deleted file mode 100644 index 7bda7b4a325..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWString.json deleted file mode 100644 index 0d8de076ac7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArraySingleDimensionLiteralsWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArraySingleDimensionLiteralsWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayString.json deleted file mode 100644 index 03dbcfde4ea..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayStructure.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayStructure.json deleted file mode 100644 index 9c02285ff27..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULong.json deleted file mode 100644 index f1cd76ee747..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULongLong.json deleted file mode 100644 index b2d4e0f9145..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUShort.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUShort.json deleted file mode 100644 index 857c29c4206..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUnion.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUnion.json deleted file mode 100644 index 42e80444ac6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayUnion.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayUnion" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWChar.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWChar.json deleted file mode 100644 index 6fb1e0b439a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWString.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWString.json deleted file mode 100644 index 1d729fa4dab..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_ArrayWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ArrayWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedBigArrays.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedBigArrays.json deleted file mode 100644 index 2a31ec7bcc7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedBigArrays.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BoundedBigArrays" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedSmallArrays.json b/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedSmallArrays.json deleted file mode 100644 index 4646c26a57f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_arrays_BoundedSmallArrays.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BoundedSmallArrays" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_bitsets_BitsetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_bitsets_BitsetStruct.json deleted file mode 100644 index 7d63bfec75b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_bitsets_BitsetStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BitsetStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_constants_ConstsLiteralsStruct.json b/test/dds/xtypes/TypesTestsCases/Case_constants_ConstsLiteralsStruct.json deleted file mode 100644 index 8ce0f177efd..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_constants_ConstsLiteralsStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ConstsLiteralsStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json b/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json deleted file mode 100644 index 515bf4fb301..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_constants_Module2ConstsLiteralsStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "const_module2::Module2ConstsLiteralsStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json b/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json deleted file mode 100644 index 13ae820a8bd..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_constants_ModuleConstsLiteralsStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "const_module1::ModuleConstsLiteralsStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardDeclarationsRecursiveStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardDeclarationsRecursiveStruct.json deleted file mode 100644 index 7ed3ecaccf0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardDeclarationsRecursiveStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ForwardDeclarationsRecursiveStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardStruct.json deleted file mode 100644 index bee175ba528..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_declarations_ForwardStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ForwardStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledCommonNameStructure.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledCommonNameStructure.json deleted file mode 100644 index 9d19aeb79a0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledCommonNameStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ModuledCommonNameStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardDeclarationsRecursiveStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardDeclarationsRecursiveStruct.json deleted file mode 100644 index bd370e695a3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardDeclarationsRecursiveStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ModuledForwardDeclarationsRecursiveStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json b/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json deleted file mode 100644 index b537f6d0f53..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_declarations_ModuledForwardStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "declarations_module::ModuledForwardStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_enumerations_BitMaskStructure.json b/test/dds/xtypes/TypesTestsCases/Case_enumerations_BitMaskStructure.json deleted file mode 100644 index c1cbeef0732..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_enumerations_BitMaskStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BitMaskStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_enumerations_BoundedBitMaskStructure.json b/test/dds/xtypes/TypesTestsCases/Case_enumerations_BoundedBitMaskStructure.json deleted file mode 100644 index e0e502da17c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_enumerations_BoundedBitMaskStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BoundedBitMaskStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_enumerations_EnumStructure.json b/test/dds/xtypes/TypesTestsCases/Case_enumerations_EnumStructure.json deleted file mode 100644 index 9b3b209825c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_enumerations_EnumStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "EnumStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_InnerStructExternal.json b/test/dds/xtypes/TypesTestsCases/Case_external_InnerStructExternal.json deleted file mode 100644 index b775a5f4438..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_InnerStructExternal.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerStructExternal" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_array_short_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_array_short_external.json deleted file mode 100644 index 2ff5c476bb5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_array_short_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "array_short_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_boolean_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_boolean_external.json deleted file mode 100644 index 48b79086f70..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_boolean_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "boolean_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_char_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_char_external.json deleted file mode 100644 index 5b2ee615814..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_char_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "char_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_double_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_double_external.json deleted file mode 100644 index 178369115b9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_double_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "double_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ext_and_inner_struct_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ext_and_inner_struct_external.json deleted file mode 100644 index 7a4f4dfd110..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_ext_and_inner_struct_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ext_and_inner_struct_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ext_struct_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ext_struct_external.json deleted file mode 100644 index 09c96489393..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_ext_struct_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ext_struct_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_float_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_float_external.json deleted file mode 100644 index 1b9718f0d56..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_float_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "float_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_long_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_long_external.json deleted file mode 100644 index ccea3212554..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_long_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "long_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_longdouble_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_longdouble_external.json deleted file mode 100644 index 15215210b29..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_longdouble_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longdouble_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_longlong_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_longlong_external.json deleted file mode 100644 index ec880c9e632..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_longlong_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longlong_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_map_short_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_map_short_external.json deleted file mode 100644 index b92065c2497..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_map_short_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "map_short_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_octet_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_octet_external.json deleted file mode 100644 index 2b3655335f7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_octet_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "octet_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_structure.json b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_structure.json deleted file mode 100644 index df540b14e85..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_structure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "recursive_structure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_1.json b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_1.json deleted file mode 100644 index adcf5982b4a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_1.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "recursive_test_1" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_2.json b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_2.json deleted file mode 100644 index 8b1f4e2cea8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_test_2.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "recursive_test_2" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_union_container.json b/test/dds/xtypes/TypesTestsCases/Case_external_recursive_union_container.json deleted file mode 100644 index 6eb039d5411..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_recursive_union_container.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "recursive_union_container" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_sequence_short_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_sequence_short_external.json deleted file mode 100644 index b97d83216c8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_sequence_short_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "sequence_short_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_short_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_short_external.json deleted file mode 100644 index 0fd91fba201..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_short_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "short_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_string_bounded_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_string_bounded_external.json deleted file mode 100644 index 37ca6b67501..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_string_bounded_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_bounded_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_string_unbounded_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_string_unbounded_external.json deleted file mode 100644 index 3f281dcda0b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_string_unbounded_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_unbounded_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_struct_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_struct_external.json deleted file mode 100644 index e990b359e65..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_struct_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "struct_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_struct_external_optional.json b/test/dds/xtypes/TypesTestsCases/Case_external_struct_external_optional.json deleted file mode 100644 index ca622d79bb6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_struct_external_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "struct_external_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ulong_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ulong_external.json deleted file mode 100644 index 8f50609cd70..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_ulong_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulong_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ulonglong_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ulonglong_external.json deleted file mode 100644 index 2ab073216c9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_ulonglong_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulonglong_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_ushort_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_ushort_external.json deleted file mode 100644 index 6c764bd9c68..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_ushort_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ushort_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_external_wchar_external.json b/test/dds/xtypes/TypesTestsCases/Case_external_wchar_external.json deleted file mode 100644 index 7823e1f6617..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_external_wchar_external.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "wchar_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalBooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalBooleanStruct.json deleted file mode 100644 index 97945d4d24e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalBooleanStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalBooleanStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalCharStruct.json deleted file mode 100644 index 563baf4f442..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalDoubleStruct.json deleted file mode 100644 index c0bd31756a9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyInheritanceStruct.json deleted file mode 100644 index 97493e9c1e9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalEmptyInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyStruct.json deleted file mode 100644 index 626da4f37ca..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalEmptyStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalEmptyStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalExtensibilityInheritance.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalExtensibilityInheritance.json deleted file mode 100644 index e4306b75d83..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalExtensibilityInheritance.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalExtensibilityInheritance" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalFloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalFloatStruct.json deleted file mode 100644 index 18bf9c2206f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalFloatStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalFloatStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalInheritanceStruct.json deleted file mode 100644 index f05e28e917f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongDoubleStruct.json deleted file mode 100644 index 1cad78899db..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalLongDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongLongStruct.json deleted file mode 100644 index f6b91dd0268..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalLongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongStruct.json deleted file mode 100644 index 1c1058beb0a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalOctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalOctetStruct.json deleted file mode 100644 index 0577ab7e530..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalOctetStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalOctetStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalShortStruct.json deleted file mode 100644 index 84d26572cc8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongLongStruct.json deleted file mode 100644 index a31387adc56..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalULongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongStruct.json deleted file mode 100644 index 3d144641f40..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalULongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalULongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalUShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalUShortStruct.json deleted file mode 100644 index b241c959ef8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalUShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalUShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalUnionStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalUnionStruct.json deleted file mode 100644 index 8a7faeaea42..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalUnionStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalUnionStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_FinalWCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_FinalWCharStruct.json deleted file mode 100644 index e6c957b594a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_FinalWCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FinalWCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_final_InheritanceEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_final_InheritanceEmptyStruct.json deleted file mode 100644 index cd20c04ec13..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_final_InheritanceEmptyStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InheritanceEmptyStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerEmptyStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerEmptyStructureHelper.json deleted file mode 100644 index 786feaf2d92..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerEmptyStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerEmptyStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerStructureHelper.json deleted file mode 100644 index 6bae50f7832..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_helpers_basic_inner_types_InnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_BitsetsChildInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_BitsetsChildInheritanceStruct.json deleted file mode 100644 index d6ed56c8187..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_inheritance_BitsetsChildInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BitsetsChildInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerEmptyStructureHelperChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerEmptyStructureHelperChild.json deleted file mode 100644 index ab241d45614..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerEmptyStructureHelperChild.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerEmptyStructureHelperChild" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChild.json deleted file mode 100644 index 5ae8c05d8fa..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChild.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerStructureHelperChild" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChildChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChildChild.json deleted file mode 100644 index 49ad4bba16b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperChildChild.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerStructureHelperChildChild" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChild.json deleted file mode 100644 index 2e852f80458..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChild.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerStructureHelperEmptyChild" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChildChild.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChildChild.json deleted file mode 100644 index 98a2acb438d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_inheritance_InnerStructureHelperEmptyChildChild.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerStructureHelperEmptyChildChild" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructAliasInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructAliasInheritanceStruct.json deleted file mode 100644 index 33f5fc9fbfd..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructAliasInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructAliasInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructuresInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructuresInheritanceStruct.json deleted file mode 100644 index 64469b42b2d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_inheritance_StructuresInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructuresInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_InheritanceKeyedEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_InheritanceKeyedEmptyStruct.json deleted file mode 100644 index 9a7ee43525a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_InheritanceKeyedEmptyStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InheritanceKeyedEmptyStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedBooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedBooleanStruct.json deleted file mode 100644 index 3dfe91956c0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedBooleanStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedBooleanStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedCharStruct.json deleted file mode 100644 index bd0251997ad..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedDoubleStruct.json deleted file mode 100644 index f865d4b7835..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyInheritanceStruct.json deleted file mode 100644 index e41824010f3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedEmptyInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyStruct.json deleted file mode 100644 index 6a6551ef08e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedEmptyStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedEmptyStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedFloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedFloatStruct.json deleted file mode 100644 index c6d9fc18866..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedFloatStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedFloatStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedInheritanceStruct.json deleted file mode 100644 index 9011557f40d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongDoubleStruct.json deleted file mode 100644 index 01fbc4ef27d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedLongDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongLongStruct.json deleted file mode 100644 index 90cc6ea46cc..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedLongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongStruct.json deleted file mode 100644 index cbd88702f33..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedOctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedOctetStruct.json deleted file mode 100644 index 4a18464d1d4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedOctetStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedOctetStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedShortStruct.json deleted file mode 100644 index 8e21fdd85f5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongLongStruct.json deleted file mode 100644 index 88dd6e454bf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedULongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongStruct.json deleted file mode 100644 index 228e61683e7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedULongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedULongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedUShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedUShortStruct.json deleted file mode 100644 index 5e5940359e4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedUShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedUShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedWCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_key_KeyedWCharStruct.json deleted file mode 100644 index 5f82adccb64..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_key_KeyedWCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "KeyedWCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedLargeMap.json b/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedLargeMap.json deleted file mode 100644 index 25fabaae0d4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedLargeMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BoundedLargeMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedSmallMap.json b/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedSmallMap.json deleted file mode 100644 index 0d3334ff810..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_BoundedSmallMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BoundedSmallMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperBoolean.json deleted file mode 100644 index d138e816378..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperChar.json deleted file mode 100644 index 388ef4d7a5b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperDouble.json deleted file mode 100644 index f8cf67c3162..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperFloat.json deleted file mode 100644 index 404c4e20ad6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.json deleted file mode 100644 index 4bf3bb30b30..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.json deleted file mode 100644 index 28fa8a57e70..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.json deleted file mode 100644 index 6231170df83..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper.json deleted file mode 100644 index b5bd0e264b9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.json deleted file mode 100644 index 8dfb094c895..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.json deleted file mode 100644 index 06efe1858c2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.json deleted file mode 100644 index 3fb9f97b1b3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper.json deleted file mode 100644 index 9be88409e0f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper.json deleted file mode 100644 index 862ea546e68..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper.json deleted file mode 100644 index 26890d811e1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper.json deleted file mode 100644 index 5cca7621d4b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLong.json deleted file mode 100644 index d169e24600e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongDouble.json deleted file mode 100644 index 56774bdbc56..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongLong.json deleted file mode 100644 index d9bb5c969b0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperOctet.json deleted file mode 100644 index 24454297214..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperShort.json deleted file mode 100644 index 22c718eeb46..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperString.json deleted file mode 100644 index c5138570c97..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULong.json deleted file mode 100644 index c787780080f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULongLong.json deleted file mode 100644 index 7fdfa726545..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperUShort.json deleted file mode 100644 index 5f197ea2e34..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWChar.json deleted file mode 100644 index 16561cbbe4f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWString.json deleted file mode 100644 index 27b0c2129f7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedStringHelperWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedStringHelperWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperBoolean.json deleted file mode 100644 index c908f29dceb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperChar.json deleted file mode 100644 index 5901060849e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperDouble.json deleted file mode 100644 index 5145435d3f4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperFloat.json deleted file mode 100644 index 432c6a3c611..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.json deleted file mode 100644 index 1f61d5896d6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.json deleted file mode 100644 index af41969ff94..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.json deleted file mode 100644 index a2b71b64a6d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasHelper.json deleted file mode 100644 index 64caa01fe35..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.json deleted file mode 100644 index 06c4c8aa741..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.json deleted file mode 100644 index df901381771..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.json deleted file mode 100644 index 92198766c79..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.json deleted file mode 100644 index 23d5304b0d1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerEnumHelper.json deleted file mode 100644 index 5adce8e63a6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerStructureHelper.json deleted file mode 100644 index 86cb66f7489..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerUnionHelper.json deleted file mode 100644 index cba2406c687..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLong.json deleted file mode 100644 index 6918eef611a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongDouble.json deleted file mode 100644 index 9e130489ad2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongLong.json deleted file mode 100644 index 5323cf43cd7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperOctet.json deleted file mode 100644 index 8b996c42ce1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperShort.json deleted file mode 100644 index d392df37bb4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperString.json deleted file mode 100644 index dce04f74b80..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULong.json deleted file mode 100644 index e4de644b268..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULongLong.json deleted file mode 100644 index e939ec11a35..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperUShort.json deleted file mode 100644 index 444a2fcda83..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWChar.json deleted file mode 100644 index a1db0c2b8d0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWString.json deleted file mode 100644 index 43d2b7dd768..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapInnerAliasBoundedWStringHelperWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapInnerAliasBoundedWStringHelperWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongLongValueDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongLongValueDouble.json deleted file mode 100644 index 6440525aa54..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongLongValueDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapKeyULongLongValueDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongDouble.json deleted file mode 100644 index 6a62f53530a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapKeyULongValueLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongLong.json deleted file mode 100644 index e7ffaaf9178..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapKeyULongValueLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapKeyULongValueLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongBoolean.json deleted file mode 100644 index 9f64eafbd2d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongChar.json deleted file mode 100644 index bdadd86af89..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongDouble.json deleted file mode 100644 index 73d3373f818..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongFloat.json deleted file mode 100644 index fd6dd4c398e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasArrayHelper.json deleted file mode 100644 index 6f41eef77d3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedStringHelper.json deleted file mode 100644 index 5d3b2faaaf8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedWStringHelper.json deleted file mode 100644 index b544bce04f4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasHelper.json deleted file mode 100644 index e5d0f5775c7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasMapHelper.json deleted file mode 100644 index 990718d8ae7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasSequenceHelper.json deleted file mode 100644 index f21abdaaef8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitMaskHelper.json deleted file mode 100644 index 6f86fd5943b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitsetHelper.json deleted file mode 100644 index fb69da47b04..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerEnumHelper.json deleted file mode 100644 index fe2313f75cd..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerStructureHelper.json deleted file mode 100644 index 8ee58698ceb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerUnionHelper.json deleted file mode 100644 index 86245cde63e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongDoubleValue.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongDoubleValue.json deleted file mode 100644 index d7508a5b5de..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongDoubleValue.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongKeyLongDoubleValue" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongLongValue.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongLongValue.json deleted file mode 100644 index 4021b20fdae..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongKeyLongLongValue.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongKeyLongLongValue" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLong.json deleted file mode 100644 index df663add63c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongBoolean.json deleted file mode 100644 index 4418eff4f97..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongChar.json deleted file mode 100644 index d4a1a230fbf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongFloat.json deleted file mode 100644 index 414696bd698..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasArrayHelper.json deleted file mode 100644 index 1a2797b0345..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedStringHelper.json deleted file mode 100644 index ecdc72a06ea..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedWStringHelper.json deleted file mode 100644 index e0bb9dd8941..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasHelper.json deleted file mode 100644 index 02d7f3984ef..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasMapHelper.json deleted file mode 100644 index 3cb5cd7c33c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasSequenceHelper.json deleted file mode 100644 index 14573b23066..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitMaskHelper.json deleted file mode 100644 index bb6ce42ce94..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitsetHelper.json deleted file mode 100644 index 21dd4c8dae2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerEnumHelper.json deleted file mode 100644 index a2c5c74a6f1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerStructureHelper.json deleted file mode 100644 index dd69acdf0e8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerUnionHelper.json deleted file mode 100644 index 5a3f3b9be38..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyDoubleValue.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyDoubleValue.json deleted file mode 100644 index 54b04e22e74..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyDoubleValue.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongKeyDoubleValue" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyLongValue.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyLongValue.json deleted file mode 100644 index 2a05d04adf5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongKeyLongValue.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongKeyLongValue" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongDouble.json deleted file mode 100644 index 322eb9adb66..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongLong.json deleted file mode 100644 index 4c5d74782b6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongOctet.json deleted file mode 100644 index 01489b6dd71..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongShort.json deleted file mode 100644 index 4abe4c2e026..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongString.json deleted file mode 100644 index 3d7606ba324..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULong.json deleted file mode 100644 index 95c14efded4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULongLong.json deleted file mode 100644 index 756799d5b6b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongUShort.json deleted file mode 100644 index 83d789bc9ef..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWChar.json deleted file mode 100644 index 48971c8dcd4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWString.json deleted file mode 100644 index a7219fb4275..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongLongWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongLongWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongOctet.json deleted file mode 100644 index ffaad3d3a3d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongShort.json deleted file mode 100644 index 52cffde1462..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongString.json deleted file mode 100644 index cb2f3417a8a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULong.json deleted file mode 100644 index 92d3d98581e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULongLong.json deleted file mode 100644 index a9f1bae2abe..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongUShort.json deleted file mode 100644 index 45e3a56da67..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWChar.json deleted file mode 100644 index b99514bcd8e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWString.json deleted file mode 100644 index 7ff8ee32fe6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapLongWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapLongWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortBoolean.json deleted file mode 100644 index fe47f717664..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortChar.json deleted file mode 100644 index 09cee0716ff..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortDouble.json deleted file mode 100644 index d007fce90ae..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortFloat.json deleted file mode 100644 index f60c3d948fe..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasArrayHelper.json deleted file mode 100644 index 1ff0dbbc740..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedStringHelper.json deleted file mode 100644 index 798538b6fea..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedWStringHelper.json deleted file mode 100644 index 27c1454f191..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasHelper.json deleted file mode 100644 index bb0b864e92c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasMapHelper.json deleted file mode 100644 index 4102abd3b5b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasSequenceHelper.json deleted file mode 100644 index 2158503a5e9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitMaskHelper.json deleted file mode 100644 index a77565b3754..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitsetHelper.json deleted file mode 100644 index 3b6248eb997..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerEnumHelper.json deleted file mode 100644 index 7075b364126..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerStructureHelper.json deleted file mode 100644 index 79d07c70dee..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerUnionHelper.json deleted file mode 100644 index b18c5df90df..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLong.json deleted file mode 100644 index d386e7f213d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongDouble.json deleted file mode 100644 index ce01e75de11..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongLong.json deleted file mode 100644 index 2edb07be312..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortOctet.json deleted file mode 100644 index 5426a3142c0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortShort.json deleted file mode 100644 index 375a94803f9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortString.json deleted file mode 100644 index 9b9024a72de..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULong.json deleted file mode 100644 index cd1721d37fd..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULongLong.json deleted file mode 100644 index 6234efbded4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortUShort.json deleted file mode 100644 index eac60b7d458..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWChar.json deleted file mode 100644 index 66b6eed6f4c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWString.json deleted file mode 100644 index 9b0315c463f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapShortWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapShortWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringBoolean.json deleted file mode 100644 index 4c58cb851d8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringChar.json deleted file mode 100644 index 14a4672050d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringDouble.json deleted file mode 100644 index 58cf06240e3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringFloat.json deleted file mode 100644 index 6ccf2efc4f2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasArrayHelper.json deleted file mode 100644 index 5be26e23b26..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedStringHelper.json deleted file mode 100644 index 2525764b3c6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedWStringHelper.json deleted file mode 100644 index 5cb5c63ba76..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasHelper.json deleted file mode 100644 index c03bc1dc22b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasMapHelper.json deleted file mode 100644 index 31c1f0e1f2c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasSequenceHelper.json deleted file mode 100644 index 9358f4423c2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitMaskHelper.json deleted file mode 100644 index 4b2046fe610..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitsetHelper.json deleted file mode 100644 index 5c044eb0b4a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerEnumHelper.json deleted file mode 100644 index 954423fcf83..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerStructureHelper.json deleted file mode 100644 index 31b0915a730..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerUnionHelper.json deleted file mode 100644 index c845d612a61..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLong.json deleted file mode 100644 index f490eb537ff..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongDouble.json deleted file mode 100644 index 58b23a014e9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongLong.json deleted file mode 100644 index 7145bf5ff06..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringOctet.json deleted file mode 100644 index 25c5882a64a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringShort.json deleted file mode 100644 index 1d2b7624f01..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringString.json deleted file mode 100644 index fb8e0427651..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULong.json deleted file mode 100644 index b99bd060f71..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULongLong.json deleted file mode 100644 index 46692371c5f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringUShort.json deleted file mode 100644 index 7b9a7b440b7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWChar.json deleted file mode 100644 index 1e2056c88ec..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWString.json deleted file mode 100644 index c65768ba138..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapStringWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapStringWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongBoolean.json deleted file mode 100644 index 822419b8859..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongChar.json deleted file mode 100644 index 02b318ba43c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongDouble.json deleted file mode 100644 index 488afae3bc7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongFloat.json deleted file mode 100644 index 22e29f86b54..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasArrayHelper.json deleted file mode 100644 index d5abecc166a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedStringHelper.json deleted file mode 100644 index 1817e9ba7da..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedWStringHelper.json deleted file mode 100644 index f7c35a729ff..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasHelper.json deleted file mode 100644 index 0aa247a5227..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasMapHelper.json deleted file mode 100644 index ef14441d9a3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasSequenceHelper.json deleted file mode 100644 index c35527c891f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitMaskHelper.json deleted file mode 100644 index 07ae831962b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitsetHelper.json deleted file mode 100644 index 21fc0ab9631..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerEnumHelper.json deleted file mode 100644 index 56f46a908a7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerStructureHelper.json deleted file mode 100644 index 2defeeccede..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerUnionHelper.json deleted file mode 100644 index 4a5a3f32737..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLong.json deleted file mode 100644 index d1e316925ee..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongBoolean.json deleted file mode 100644 index 1845c40d36d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongChar.json deleted file mode 100644 index 25e07668d77..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongFloat.json deleted file mode 100644 index 3cd601ca537..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasArrayHelper.json deleted file mode 100644 index d8f44ee3797..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedStringHelper.json deleted file mode 100644 index 2686a6dc842..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedWStringHelper.json deleted file mode 100644 index 1be30c642f2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasHelper.json deleted file mode 100644 index 80de62f43d3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasMapHelper.json deleted file mode 100644 index 94ee798884e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasSequenceHelper.json deleted file mode 100644 index e5766bd61be..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitMaskHelper.json deleted file mode 100644 index af2bc6e22f7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitsetHelper.json deleted file mode 100644 index 716d10b350e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerEnumHelper.json deleted file mode 100644 index e5b2f363e98..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerStructureHelper.json deleted file mode 100644 index d718cd17b56..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerUnionHelper.json deleted file mode 100644 index 69d78b59020..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLong.json deleted file mode 100644 index 827a06b0f51..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongDouble.json deleted file mode 100644 index 77cfb53e176..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongLong.json deleted file mode 100644 index e90f3140472..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongOctet.json deleted file mode 100644 index dd183be2c58..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongShort.json deleted file mode 100644 index 296b5517313..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongString.json deleted file mode 100644 index d88845fe2ca..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULong.json deleted file mode 100644 index 32ac26bf713..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULongLong.json deleted file mode 100644 index 8d33fd9f50f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongUShort.json deleted file mode 100644 index 723243f383d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWChar.json deleted file mode 100644 index 816a0b6fcc0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWString.json deleted file mode 100644 index 5c522bdfc93..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongLongWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongLongWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongOctet.json deleted file mode 100644 index 0f7da027277..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongShort.json deleted file mode 100644 index 038d3ff3afc..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongString.json deleted file mode 100644 index 82fe00d9203..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULong.json deleted file mode 100644 index 47e0e72f678..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULongLong.json deleted file mode 100644 index f83aedfc700..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongUShort.json deleted file mode 100644 index 4cf7477e6f2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWChar.json deleted file mode 100644 index df973d738f2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWString.json deleted file mode 100644 index c95fa869e58..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapULongWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapULongWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortBoolean.json deleted file mode 100644 index fba672daad2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortChar.json deleted file mode 100644 index 3a1943b83d7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortDouble.json deleted file mode 100644 index 1d82d380554..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortFloat.json deleted file mode 100644 index 48b459d966f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasArrayHelper.json deleted file mode 100644 index 3fb74b37c49..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedStringHelper.json deleted file mode 100644 index d7bbe7b89d4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedWStringHelper.json deleted file mode 100644 index e0f4cebb15c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasHelper.json deleted file mode 100644 index 18021e6af54..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasMapHelper.json deleted file mode 100644 index e503705e8a3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasSequenceHelper.json deleted file mode 100644 index 744d1066a03..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitMaskHelper.json deleted file mode 100644 index 72124e498fb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitsetHelper.json deleted file mode 100644 index 5d0d70f82f0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerEnumHelper.json deleted file mode 100644 index f0f0d2ee688..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerStructureHelper.json deleted file mode 100644 index 86a81ce459f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerUnionHelper.json deleted file mode 100644 index 307829e8f33..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLong.json deleted file mode 100644 index 1aae19621b8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongDouble.json deleted file mode 100644 index 44aa3360a13..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongLong.json deleted file mode 100644 index b38bc1ec2cb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortOctet.json deleted file mode 100644 index a146631cd56..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortShort.json deleted file mode 100644 index dfb0af632c6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortString.json deleted file mode 100644 index 4bce3939d48..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULong.json deleted file mode 100644 index 60ee3457114..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULongLong.json deleted file mode 100644 index 68dccbd8c41..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortUShort.json deleted file mode 100644 index a3d8a3c5fb5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWChar.json deleted file mode 100644 index ce0ad9cd238..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWString.json deleted file mode 100644 index 09d412aa2e0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapUShortWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapUShortWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringBoolean.json deleted file mode 100644 index bd8ddf58136..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringChar.json deleted file mode 100644 index 017dc16aff7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringDouble.json deleted file mode 100644 index fabe8dbec63..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringFloat.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringFloat.json deleted file mode 100644 index 2feb0d83b5d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasArrayHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasArrayHelper.json deleted file mode 100644 index f869274e2a4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasArrayHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerAliasArrayHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedStringHelper.json deleted file mode 100644 index 45b35d02073..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerAliasBoundedStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedWStringHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedWStringHelper.json deleted file mode 100644 index ab9a05656d3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasBoundedWStringHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerAliasBoundedWStringHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasHelper.json deleted file mode 100644 index 1ac982c4856..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasMapHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasMapHelper.json deleted file mode 100644 index 55ce7be90d8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasMapHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerAliasMapHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasSequenceHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasSequenceHelper.json deleted file mode 100644 index 080c95bd1dd..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerAliasSequenceHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerAliasSequenceHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitMaskHelper.json deleted file mode 100644 index 92ebd99fe14..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitsetHelper.json deleted file mode 100644 index 067ea4cb09a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerEnumHelper.json deleted file mode 100644 index 259c200ca71..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerStructureHelper.json deleted file mode 100644 index dee6d076445..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerUnionHelper.json deleted file mode 100644 index 01a58c455d9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLong.json deleted file mode 100644 index e6a16186e82..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongDouble.json deleted file mode 100644 index 10c85ab38e9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongLong.json deleted file mode 100644 index 7f88178411b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringOctet.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringOctet.json deleted file mode 100644 index 663dbc2410b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringShort.json deleted file mode 100644 index f67dae1edb2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringString.json deleted file mode 100644 index 94c6aa7674a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULong.json deleted file mode 100644 index fdb9449698c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULongLong.json deleted file mode 100644 index 68e6395c87d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringUShort.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringUShort.json deleted file mode 100644 index e0149da403a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWChar.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWChar.json deleted file mode 100644 index 7db6f0862e5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWString.json b/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWString.json deleted file mode 100644 index d908a1bca2a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_maps_MapWStringWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MapWStringWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidDefault.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidDefault.json deleted file mode 100644 index f7e992fdc2b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidDefault.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AutoidDefault" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidHash.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidHash.json deleted file mode 100644 index a7d34fa2379..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidHash.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AutoidHash" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidSequential.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidSequential.json deleted file mode 100644 index 7b5d8f2e629..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_AutoidSequential.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "AutoidSequential" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidDefault.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidDefault.json deleted file mode 100644 index cc592296791..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidDefault.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "DerivedAutoidDefault" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidHash.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidHash.json deleted file mode 100644 index b7c9491fc9f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidHash.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "DerivedAutoidHash" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidSequential.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidSequential.json deleted file mode 100644 index b14a36ddfeb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedAutoidSequential.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "DerivedAutoidSequential" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedEmptyAutoidSequential.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedEmptyAutoidSequential.json deleted file mode 100644 index 88b893b6464..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_DerivedEmptyAutoidSequential.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "DerivedEmptyAutoidSequential" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashid.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashid.json deleted file mode 100644 index 1443f6aa84b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashid.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FixHashid" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashidDefault.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashidDefault.json deleted file mode 100644 index f5fd1208091..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHashidDefault.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FixHashidDefault" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHexId.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHexId.json deleted file mode 100644 index 3c809410398..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixHexId.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FixHexId" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixId.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixId.json deleted file mode 100644 index ecd09936fd1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixId.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FixId" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixMix.json b/test/dds/xtypes/TypesTestsCases/Case_member_id_FixMix.json deleted file mode 100644 index cd7372c468f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_member_id_FixMix.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FixMix" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableBooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableBooleanStruct.json deleted file mode 100644 index cd3eeda6cb6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableBooleanStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableBooleanStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableCharStruct.json deleted file mode 100644 index 20631ab1281..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableDoubleStruct.json deleted file mode 100644 index af2dab8ec42..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyInheritanceStruct.json deleted file mode 100644 index f2a60665e83..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableEmptyInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyStruct.json deleted file mode 100644 index c3a02f964d5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableEmptyStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableEmptyStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableExtensibilityInheritance.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableExtensibilityInheritance.json deleted file mode 100644 index 2f1bba68e5e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableExtensibilityInheritance.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableExtensibilityInheritance" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableFloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableFloatStruct.json deleted file mode 100644 index 0d5d82cd05b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableFloatStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableFloatStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceEmptyStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceEmptyStruct.json deleted file mode 100644 index f0955c3f0bf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceEmptyStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableInheritanceEmptyStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceStruct.json deleted file mode 100644 index b2208a362ab..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableInheritanceStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableInheritanceStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongDoubleStruct.json deleted file mode 100644 index e75b4aae4e6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableLongDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongLongStruct.json deleted file mode 100644 index 6ba066332ff..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableLongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongStruct.json deleted file mode 100644 index 06f86a41059..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableOctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableOctetStruct.json deleted file mode 100644 index a546077128a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableOctetStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableOctetStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableShortStruct.json deleted file mode 100644 index 520c1546866..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongLongStruct.json deleted file mode 100644 index 9a710e78761..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableULongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongStruct.json deleted file mode 100644 index e1ad3f6c782..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableULongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableULongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUShortStruct.json deleted file mode 100644 index 3635126e1be..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableUShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUnionStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUnionStruct.json deleted file mode 100644 index 1ba73b2dd00..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableUnionStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableUnionStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableWCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableWCharStruct.json deleted file mode 100644 index 43cd975824a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_mutable_MutableWCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "MutableWCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_InnerStructOptional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_InnerStructOptional.json deleted file mode 100644 index e5723622cbc..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_InnerStructOptional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerStructOptional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_1_optional.json deleted file mode 100644 index 6eb6ad4d030..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "array_short_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_2_optional.json deleted file mode 100644 index 7e6c6992fac..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "array_short_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_4_optional.json deleted file mode 100644 index 5dcaed9a918..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "array_short_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_optional.json deleted file mode 100644 index 1426ad1452d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_array_short_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "array_short_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_1_optional.json deleted file mode 100644 index 88fde5ddc1b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "boolean_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_2_optional.json deleted file mode 100644 index 86a41c9d99a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "boolean_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_4_optional.json deleted file mode 100644 index 7538d9374fe..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "boolean_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_optional.json deleted file mode 100644 index e7b9e07dd4e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_boolean_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "boolean_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_1_optional.json deleted file mode 100644 index 93b67e1c808..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "char_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_2_optional.json deleted file mode 100644 index 4fc7ca1f911..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "char_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_4_optional.json deleted file mode 100644 index d1f750bc5e4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_char_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "char_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_char_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_char_optional.json deleted file mode 100644 index 252509d3b1d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_char_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "char_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_1_optional.json deleted file mode 100644 index d8ba138eb57..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "double_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_2_optional.json deleted file mode 100644 index 2823814d05e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "double_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_4_optional.json deleted file mode 100644 index b3fe1bb7a80..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_double_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "double_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_double_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_double_optional.json deleted file mode 100644 index b1a3037475c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_double_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "double_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_1_optional.json deleted file mode 100644 index 6fdd31e47ee..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "float_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_2_optional.json deleted file mode 100644 index 5d0479563ca..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "float_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_4_optional.json deleted file mode 100644 index ba607c1460f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_float_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "float_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_float_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_float_optional.json deleted file mode 100644 index 29545363add..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_float_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "float_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_1_optional.json deleted file mode 100644 index 6eb705c58ba..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "long_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_2_optional.json deleted file mode 100644 index cc4b0f84982..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "long_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_4_optional.json deleted file mode 100644 index 396aec76df3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_long_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "long_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_long_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_long_optional.json deleted file mode 100644 index b7fd48646ee..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_long_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "long_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_1_optional.json deleted file mode 100644 index 6fc634a5350..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longdouble_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_2_optional.json deleted file mode 100644 index ffc53d5ffcb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longdouble_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_4_optional.json deleted file mode 100644 index b7506890215..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longdouble_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_optional.json deleted file mode 100644 index 5c1f173b168..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_longdouble_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longdouble_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_1_optional.json deleted file mode 100644 index 0127961ef50..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longlong_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_2_optional.json deleted file mode 100644 index 957fad4a1a8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longlong_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_4_optional.json deleted file mode 100644 index 27a10289c8b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longlong_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_optional.json deleted file mode 100644 index 3b137f79116..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_longlong_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longlong_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_1_optional.json deleted file mode 100644 index e78686563e9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "map_short_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_2_optional.json deleted file mode 100644 index ec7146c8252..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "map_short_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_4_optional.json deleted file mode 100644 index bcb54490571..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "map_short_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_optional.json deleted file mode 100644 index 316c8f62763..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_map_short_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "map_short_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_1_optional.json deleted file mode 100644 index f9f4ba29c7f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "octet_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_2_optional.json deleted file mode 100644 index 8371465307e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "octet_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_4_optional.json deleted file mode 100644 index 77550822729..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "octet_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_octet_optional.json deleted file mode 100644 index a7acf916531..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_octet_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "octet_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_1_optional.json deleted file mode 100644 index d5bbc5ec9ec..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "opt_struct_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_2_optional.json deleted file mode 100644 index e196ef47397..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "opt_struct_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_4_optional.json deleted file mode 100644 index 75c56738b0b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "opt_struct_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_optional.json deleted file mode 100644 index eec3d576e6c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_opt_struct_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "opt_struct_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_1_optional.json deleted file mode 100644 index 409e40d20c8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "sequence_short_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_2_optional.json deleted file mode 100644 index 84ff048a995..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "sequence_short_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_4_optional.json deleted file mode 100644 index 5fdd80ccedf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "sequence_short_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_optional.json deleted file mode 100644 index 169ba1b3929..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_sequence_short_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "sequence_short_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_1_optional.json deleted file mode 100644 index c01e240cf46..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "short_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_2_optional.json deleted file mode 100644 index 32d8e6d8d15..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "short_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_4_optional.json deleted file mode 100644 index 191d8423052..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_short_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "short_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_short_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_short_optional.json deleted file mode 100644 index c9da0bab0e5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_short_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "short_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_1_optional.json deleted file mode 100644 index cfe44e1ec5a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_bounded_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_2_optional.json deleted file mode 100644 index 6bd08414077..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_bounded_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_4_optional.json deleted file mode 100644 index b87c3a4b9cc..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_bounded_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_optional.json deleted file mode 100644 index 43690830057..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_string_bounded_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_bounded_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_1_optional.json deleted file mode 100644 index e0071a09c58..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_unbounded_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_2_optional.json deleted file mode 100644 index 7f08aead51d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_unbounded_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_4_optional.json deleted file mode 100644 index 0a40e5d1569..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_unbounded_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_optional.json deleted file mode 100644 index ab620d62de6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_string_unbounded_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_unbounded_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_1_optional.json deleted file mode 100644 index d0a16a05c01..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "struct_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_2_optional.json deleted file mode 100644 index 43b78038fe4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "struct_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_4_optional.json deleted file mode 100644 index 7fe66da5a5e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "struct_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_struct_optional.json deleted file mode 100644 index 7a2627e7334..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_struct_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "struct_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_1_optional.json deleted file mode 100644 index 245deb10956..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulong_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_2_optional.json deleted file mode 100644 index 75e4192ae46..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulong_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_4_optional.json deleted file mode 100644 index e1c44daf2f4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulong_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_optional.json deleted file mode 100644 index de75c295191..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ulong_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulong_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_1_optional.json deleted file mode 100644 index a135ba72dcb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulonglong_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_2_optional.json deleted file mode 100644 index c4aa678464e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulonglong_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_4_optional.json deleted file mode 100644 index 40a98295712..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulonglong_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_optional.json deleted file mode 100644 index 9d841b99f40..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ulonglong_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulonglong_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_1_optional.json deleted file mode 100644 index db84b0d60b9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ushort_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_2_optional.json deleted file mode 100644 index 617e6aeef8d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ushort_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_4_optional.json deleted file mode 100644 index 45d5de15d6a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ushort_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_optional.json deleted file mode 100644 index 3a7d5be1a94..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_ushort_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ushort_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_1_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_1_optional.json deleted file mode 100644 index f97443d2d85..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_1_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "wchar_align_1_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_2_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_2_optional.json deleted file mode 100644 index bb4071d5221..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_2_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "wchar_align_2_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_4_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_4_optional.json deleted file mode 100644 index 34cdd791f2e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_align_4_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "wchar_align_4_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_optional.json b/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_optional.json deleted file mode 100644 index 660a1f70bee..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_optional_wchar_optional.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "wchar_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_BooleanStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_BooleanStruct.json deleted file mode 100644 index 659e4f53c8a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_BooleanStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BooleanStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_CharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_CharStruct.json deleted file mode 100644 index 4d9c372822c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_CharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "CharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_DoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_DoubleStruct.json deleted file mode 100644 index 22e3dfdcc16..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_DoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "DoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_FloatStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_FloatStruct.json deleted file mode 100644 index db47aee2498..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_FloatStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "FloatStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int16Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int16Struct.json deleted file mode 100644 index 4e81289772b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int16Struct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Int16Struct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int32Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int32Struct.json deleted file mode 100644 index c44fd54023b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int32Struct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Int32Struct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int64Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int64Struct.json deleted file mode 100644 index 7605a815035..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int64Struct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Int64Struct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int8Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Int8Struct.json deleted file mode 100644 index 69352e739da..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_Int8Struct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Int8Struct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongDoubleStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongDoubleStruct.json deleted file mode 100644 index f1738a5d0d2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongDoubleStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "LongDoubleStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongLongStruct.json deleted file mode 100644 index 43fd60cfb90..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "LongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_LongStruct.json deleted file mode 100644 index 412cdf9be15..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_LongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "LongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_OctetStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_OctetStruct.json deleted file mode 100644 index 97bfa637228..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_OctetStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "OctetStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_ShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_ShortStruct.json deleted file mode 100644 index 829851f6281..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_ShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongLongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongLongStruct.json deleted file mode 100644 index e7b4d2db3cf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongLongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ULongLongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongStruct.json deleted file mode 100644 index f49e607964e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_ULongStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ULongStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_UShortStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_UShortStruct.json deleted file mode 100644 index 5377b06c5b1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_UShortStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UShortStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint16Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint16Struct.json deleted file mode 100644 index 97f81462b19..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint16Struct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Uint16Struct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint32Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint32Struct.json deleted file mode 100644 index 6f1ae5fc89f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint32Struct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Uint32Struct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint64Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint64Struct.json deleted file mode 100644 index a7b7c72166e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint64Struct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Uint64Struct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint8Struct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint8Struct.json deleted file mode 100644 index 40a593fa3a4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_Uint8Struct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Uint8Struct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_primitives_WCharStruct.json b/test/dds/xtypes/TypesTestsCases/Case_primitives_WCharStruct.json deleted file mode 100644 index 1101850281d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_primitives_WCharStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "WCharStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedBigSequences.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedBigSequences.json deleted file mode 100644 index e6b96e0a918..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedBigSequences.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BoundedBigSequences" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedSmallSequences.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedSmallSequences.json deleted file mode 100644 index f0c93b6c584..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_BoundedSmallSequences.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "BoundedSmallSequences" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceAlias.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceAlias.json deleted file mode 100644 index bbd03dd0317..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceAlias.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceAlias" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitMask.json deleted file mode 100644 index 1249c62ba07..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitMask.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceBitMask" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitset.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitset.json deleted file mode 100644 index 6257e8fc1fa..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBitset.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceBitset" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBoolean.json deleted file mode 100644 index f5580c80153..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceChar.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceChar.json deleted file mode 100644 index b96977bf13c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceDouble.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceDouble.json deleted file mode 100644 index 7d26203c6c5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceEnum.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceEnum.json deleted file mode 100644 index 4321ccccf4a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceEnum.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceEnum" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceFloat.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceFloat.json deleted file mode 100644 index 36e2d9f8ced..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLong.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLong.json deleted file mode 100644 index ff0316218b8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongDouble.json deleted file mode 100644 index 0eda4d2adc4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongLong.json deleted file mode 100644 index c7f01069b09..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceMap.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceMap.json deleted file mode 100644 index 00c3a1ca5ce..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceOctet.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceOctet.json deleted file mode 100644 index bf28ab3ca3a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceSequence.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceSequence.json deleted file mode 100644 index 093bedab292..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceSequence.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceSequence" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShort.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShort.json deleted file mode 100644 index 4eb02b886e9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShortArray.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShortArray.json deleted file mode 100644 index 765ae702517..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceShortArray.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceShortArray" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceString.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceString.json deleted file mode 100644 index b4d2bc11c2c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStringBounded.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStringBounded.json deleted file mode 100644 index 72c750f3ef5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStringBounded.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceStringBounded" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStructure.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStructure.json deleted file mode 100644 index dc175c8ebe6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULong.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULong.json deleted file mode 100644 index 772cc01240b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULongLong.json deleted file mode 100644 index e4883e1a673..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUShort.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUShort.json deleted file mode 100644 index 56bb3ab924e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUnion.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUnion.json deleted file mode 100644 index 961f127b050..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceUnion.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceUnion" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWChar.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWChar.json deleted file mode 100644 index 1457bc431c1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWString.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWString.json deleted file mode 100644 index 5e74a61f890..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWStringBounded.json b/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWStringBounded.json deleted file mode 100644 index d15f56b280f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_sequences_SequenceWStringBounded.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SequenceWStringBounded" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_LargeStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_LargeStringStruct.json deleted file mode 100644 index ea4e88ed1d1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_strings_LargeStringStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "LargeStringStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_LargeWStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_LargeWStringStruct.json deleted file mode 100644 index 0d5e405a40e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_strings_LargeWStringStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "LargeWStringStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_SmallStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_SmallStringStruct.json deleted file mode 100644 index 047d3671ec0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_strings_SmallStringStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SmallStringStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_SmallWStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_SmallWStringStruct.json deleted file mode 100644 index aed42bc615c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_strings_SmallWStringStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "SmallWStringStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_StringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_StringStruct.json deleted file mode 100644 index e52440a2d7c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_strings_StringStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StringStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_strings_WStringStruct.json b/test/dds/xtypes/TypesTestsCases/Case_strings_WStringStruct.json deleted file mode 100644 index 77b46402ce3..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_strings_WStringStruct.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "WStringStruct" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructAlias.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructAlias.json deleted file mode 100644 index b57c642b8fb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructAlias.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructAlias" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitMask.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitMask.json deleted file mode 100644 index dbaa022cba8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitMask.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructBitMask" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitset.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitset.json deleted file mode 100644 index 10a3fa8c214..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBitset.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructBitset" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoolean.json deleted file mode 100644 index 0669d9d6e3b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedString.json deleted file mode 100644 index 02eae64c85e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructBoundedString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedWString.json deleted file mode 100644 index 6f9751adcdb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructBoundedWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructBoundedWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar16.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar16.json deleted file mode 100644 index 677072c1d52..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar16.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructChar16" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar8.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar8.json deleted file mode 100644 index cf70d9d9f0d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructChar8.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructChar8" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructDouble.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructDouble.json deleted file mode 100644 index 071ed087ef5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructEmpty.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructEmpty.json deleted file mode 100644 index 6bc26cc5f52..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructEmpty.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructEmpty" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructEnum.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructEnum.json deleted file mode 100644 index 6bbc8dbbaa9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructEnum.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructEnum" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructFloat.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructFloat.json deleted file mode 100644 index 45aa1fee4eb..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLong.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLong.json deleted file mode 100644 index 5ba35e56cef..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongDouble.json deleted file mode 100644 index 7e7de30e59f..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongLong.json deleted file mode 100644 index fafe86af6f1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructMap.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructMap.json deleted file mode 100644 index 93223953838..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructOctet.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructOctet.json deleted file mode 100644 index b64fd7e90d4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructSequence.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructSequence.json deleted file mode 100644 index 07020f0a2e1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructSequence.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructSequence" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructShort.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructShort.json deleted file mode 100644 index 048b37f8226..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructShortArray.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructShortArray.json deleted file mode 100644 index 6b9e5384b8a..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructShortArray.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructShortArray" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructString.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructString.json deleted file mode 100644 index 19cb1ed16ee..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructStructure.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructStructure.json deleted file mode 100644 index 3895fbb5773..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructStructure.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructStructure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnion.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnion.json deleted file mode 100644 index 637603d6648..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnion.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructUnion" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLong.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLong.json deleted file mode 100644 index ac5262b0e73..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructUnsignedLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLongLong.json deleted file mode 100644 index 17725004375..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructUnsignedLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedShort.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedShort.json deleted file mode 100644 index cae29f900c7..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructUnsignedShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructUnsignedShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_StructWString.json b/test/dds/xtypes/TypesTestsCases/Case_structures_StructWString.json deleted file mode 100644 index 5a8ecb17fc2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_StructWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "StructWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_Structures.json b/test/dds/xtypes/TypesTestsCases/Case_structures_Structures.json deleted file mode 100644 index 9a7aca1f6a1..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_Structures.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "Structures" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_bar.json b/test/dds/xtypes/TypesTestsCases/Case_structures_bar.json deleted file mode 100644 index d43a579ca59..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_bar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "bar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json b/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json deleted file mode 100644 index 205e3532676..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_foo.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "testing_1::foo" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_root1.json b/test/dds/xtypes/TypesTestsCases/Case_structures_root1.json deleted file mode 100644 index 5ffb44a244b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_root1.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "root1" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_structures_root2.json b/test/dds/xtypes/TypesTestsCases/Case_structures_root2.json deleted file mode 100644 index 3d1edde3816..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_structures_root2.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "root2" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionArray.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionArray.json deleted file mode 100644 index fd72b38bf4e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionArray.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionArray" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoolean.json deleted file mode 100644 index 1ced5a31c89..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedString.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedString.json deleted file mode 100644 index 6e56e1144e8..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionBoundedString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedWString.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedWString.json deleted file mode 100644 index e35aeb64b3e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionBoundedWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionBoundedWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionChar.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionChar.json deleted file mode 100644 index cf986805d66..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorAlias.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorAlias.json deleted file mode 100644 index 94931fb4270..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorAlias.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorAlias" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorBoolean.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorBoolean.json deleted file mode 100644 index 23f58eb1fba..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorBoolean.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorBoolean" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorChar.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorChar.json deleted file mode 100644 index 7d699965536..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnum.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnum.json deleted file mode 100644 index 8366d22c616..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnum.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorEnum" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnumLabel.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnumLabel.json deleted file mode 100644 index 877201d14fc..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorEnumLabel.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorEnumLabel" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLong.json deleted file mode 100644 index 118e15280b6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLongLong.json deleted file mode 100644 index 944f9472590..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorOctet.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorOctet.json deleted file mode 100644 index 3c3d9f3e906..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorShort.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorShort.json deleted file mode 100644 index 45cdc6287b9..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULong.json deleted file mode 100644 index 4a8f2b5854c..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULongLong.json deleted file mode 100644 index 32e30e4b4d6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorUShort.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorUShort.json deleted file mode 100644 index eabe5f38f03..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorWChar.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorWChar.json deleted file mode 100644 index c3ec76c9b52..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDiscriminatorWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDiscriminatorWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDouble.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDouble.json deleted file mode 100644 index e6fa6403139..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionFloat.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionFloat.json deleted file mode 100644 index 6b7910ec511..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionFloat.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionFloat" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerAliasHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerAliasHelper.json deleted file mode 100644 index 7e2ec15b81e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerAliasHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionInnerAliasHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitMaskHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitMaskHelper.json deleted file mode 100644 index 6e17fa78590..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitMaskHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionInnerBitMaskHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitsetHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitsetHelper.json deleted file mode 100644 index 10344cb46b0..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerBitsetHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionInnerBitsetHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerEnumHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerEnumHelper.json deleted file mode 100644 index 56e359cfedd..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerEnumHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionInnerEnumHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerStructureHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerStructureHelper.json deleted file mode 100644 index cd7b1ca1ded..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerStructureHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionInnerStructureHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerUnionHelper.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerUnionHelper.json deleted file mode 100644 index 203db97765b..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionInnerUnionHelper.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionInnerUnionHelper" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLong.json deleted file mode 100644 index 445d48fb6d6..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongDouble.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongDouble.json deleted file mode 100644 index 740598fc780..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongDouble.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionLongDouble" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongLong.json deleted file mode 100644 index 52231305be4..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionLongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionLongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionMap.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionMap.json deleted file mode 100644 index a1ff8de9945..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionMap.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionMap" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionOctet.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionOctet.json deleted file mode 100644 index 1af20ff67d2..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionOctet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionOctet" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionSequence.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionSequence.json deleted file mode 100644 index 36af772396d..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionSequence.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionSequence" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionShort.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionShort.json deleted file mode 100644 index 7e569a73f31..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionString.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionString.json deleted file mode 100644 index d7584ba7a51..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULong.json deleted file mode 100644 index db6dc2d4abf..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionULong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULongLong.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULongLong.json deleted file mode 100644 index 0f57717b396..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionULongLong.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionULongLong" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionUShort.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionUShort.json deleted file mode 100644 index 94fff93bd1e..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionUShort.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionUShort" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWChar.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWChar.json deleted file mode 100644 index 30be0313f07..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWChar.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionWChar" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWString.json b/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWString.json deleted file mode 100644 index f6cd0bf9ea5..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Case_unions_UnionWString.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "UnionWString" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_aliases.json b/test/dds/xtypes/TypesTestsCases/Cases_aliases.json new file mode 100644 index 00000000000..8ef702c2a05 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_aliases.json @@ -0,0 +1,529 @@ +{ + "test_cases": [ + { + "TestCase": "Case_aliases_AliasAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasBitmask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasBitmask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasBool", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasBool" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasChar16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasChar16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasChar8", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasChar8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasFloat128", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasFloat128" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasFloat32", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasFloat32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasFloat64", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasFloat64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasInt16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasInt16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasInt32", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasInt32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasInt64", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasInt64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasMultiArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasMultiArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasString16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasString16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasString8", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasString8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasUInt32", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasUInt32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasUInt64", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasUInt64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasUint16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasUint16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AliasUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_annotations.json b/test/dds/xtypes/TypesTestsCases/Cases_annotations.json new file mode 100644 index 00000000000..e7ee8142f71 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_annotations.json @@ -0,0 +1,46 @@ +{ + "test_cases": [ + { + "TestCase": "Case_annotations_AnnotatedStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AnnotatedStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_annotations_EmptyAnnotatedStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "EmptyAnnotatedStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_appendable.json b/test/dds/xtypes/TypesTestsCases/Cases_appendable.json new file mode 100644 index 00000000000..3ce165cc54b --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_appendable.json @@ -0,0 +1,403 @@ +{ + "test_cases": [ + { + "TestCase": "Case_appendable_AppendableBooleanStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableEmptyInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableExtensibilityInheritance", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableFloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableInheritanceEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableInheritanceEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableLongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableLongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableOctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableUShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableUnionStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableWCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AppendableWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_arrays.json b/test/dds/xtypes/TypesTestsCases/Cases_arrays.json new file mode 100644 index 00000000000..969e01fd950 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_arrays.json @@ -0,0 +1,2188 @@ +{ + "test_cases": [ + { + "TestCase": "Case_arrays_ArrayAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBitSet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBitSet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayShortArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsShortArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsUnsignedLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsUnsignedShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ArrayWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_BoundedBigArrays", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedBigArrays" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_BoundedSmallArrays", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedSmallArrays" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_bitsets.json b/test/dds/xtypes/TypesTestsCases/Cases_bitsets.json new file mode 100644 index 00000000000..411f7f7b5da --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_bitsets.json @@ -0,0 +1,25 @@ +{ + "test_cases": [ + { + "TestCase": "Case_bitsets_BitsetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BitsetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_constants.json b/test/dds/xtypes/TypesTestsCases/Cases_constants.json new file mode 100644 index 00000000000..e3e8dcc1b5d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_constants.json @@ -0,0 +1,67 @@ +{ + "test_cases": [ + { + "TestCase": "Case_constants_ConstsLiteralsStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ConstsLiteralsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_constants_Module2ConstsLiteralsStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Module2ConstsLiteralsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_constants_ModuleConstsLiteralsStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ModuleConstsLiteralsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_declarations.json b/test/dds/xtypes/TypesTestsCases/Cases_declarations.json new file mode 100644 index 00000000000..0e03790b678 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_declarations.json @@ -0,0 +1,109 @@ +{ + "test_cases": [ + { + "TestCase": "Case_declarations_ForwardDeclarationsRecursiveStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ForwardDeclarationsRecursiveStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_declarations_ForwardStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ForwardStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_declarations_ModuledCommonNameStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ModuledCommonNameStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_declarations_ModuledForwardDeclarationsRecursiveStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ModuledForwardDeclarationsRecursiveStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_declarations_ModuledForwardStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ModuledForwardStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_enumerations.json b/test/dds/xtypes/TypesTestsCases/Cases_enumerations.json new file mode 100644 index 00000000000..89754d7fe7d --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_enumerations.json @@ -0,0 +1,67 @@ +{ + "test_cases": [ + { + "TestCase": "Case_enumerations_BitMaskStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BitMaskStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_enumerations_BoundedBitMaskStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedBitMaskStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_enumerations_EnumStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "EnumStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_external.json b/test/dds/xtypes/TypesTestsCases/Cases_external.json new file mode 100644 index 00000000000..8abbf6570ce --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_external.json @@ -0,0 +1,571 @@ +{ + "test_cases": [ + { + "TestCase": "Case_external_InnerStructExternal", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructExternal" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_array_short_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_boolean_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_char_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_double_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_ext_and_inner_struct_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ext_and_inner_struct_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_ext_struct_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ext_struct_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_float_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_long_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_longdouble_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_longlong_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_map_short_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_octet_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_recursive_structure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "recursive_structure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_recursive_test_1", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "recursive_test_1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_recursive_test_2", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "recursive_test_2" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_recursive_union_container", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "recursive_union_container" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_sequence_short_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_short_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_string_bounded_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_string_unbounded_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_struct_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_struct_external_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_external_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_ulong_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_ulonglong_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_ushort_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_external_wchar_external", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_external" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_final.json b/test/dds/xtypes/TypesTestsCases/Cases_final.json new file mode 100644 index 00000000000..618dec5d097 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_final.json @@ -0,0 +1,403 @@ +{ + "test_cases": [ + { + "TestCase": "Case_final_FinalBooleanStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalEmptyInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalExtensibilityInheritance", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalFloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalLongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalLongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalOctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalUShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalUnionStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalWCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FinalWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_InheritanceEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InheritanceEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json b/test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json new file mode 100644 index 00000000000..d891ac87860 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json @@ -0,0 +1,46 @@ +{ + "test_cases": [ + { + "TestCase": "Case_helpers/basic_inner_types_InnerEmptyStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerEmptyStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_helpers/basic_inner_types_InnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_inheritance.json b/test/dds/xtypes/TypesTestsCases/Cases_inheritance.json new file mode 100644 index 00000000000..cd8a54ae2c9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_inheritance.json @@ -0,0 +1,172 @@ +{ + "test_cases": [ + { + "TestCase": "Case_inheritance_BitsetsChildInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BitsetsChildInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerEmptyStructureHelperChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerEmptyStructureHelperChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerStructureHelperChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerStructureHelperChildChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperChildChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerStructureHelperEmptyChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperEmptyChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerStructureHelperEmptyChildChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperEmptyChildChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_StructAliasInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructAliasInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_StructuresInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructuresInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_key.json b/test/dds/xtypes/TypesTestsCases/Cases_key.json new file mode 100644 index 00000000000..351c924ea2a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_key.json @@ -0,0 +1,361 @@ +{ + "test_cases": [ + { + "TestCase": "Case_key_InheritanceKeyedEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InheritanceKeyedEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedBooleanStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedEmptyInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedFloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedLongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedLongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedOctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedUShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedWCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_maps.json b/test/dds/xtypes/TypesTestsCases/Cases_maps.json new file mode 100644 index 00000000000..90775175b12 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_maps.json @@ -0,0 +1,4414 @@ +{ + "test_cases": [ + { + "TestCase": "Case_maps_BoundedLargeMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedLargeMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_BoundedSmallMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedSmallMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapKeyULongLongValueDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapKeyULongLongValueDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapKeyULongValueLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapKeyULongValueLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapKeyULongValueLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapKeyULongValueLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongKeyLongDoubleValue", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongKeyLongDoubleValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongKeyLongLongValue", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongKeyLongLongValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongKeyDoubleValue", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongKeyDoubleValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongKeyLongValue", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongKeyLongValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapShortWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapStringWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapULongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MapUShortWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_member_id.json b/test/dds/xtypes/TypesTestsCases/Cases_member_id.json new file mode 100644 index 00000000000..3a40a5695e6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_member_id.json @@ -0,0 +1,256 @@ +{ + "test_cases": [ + { + "TestCase": "Case_member_id_AutoidDefault", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AutoidDefault" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_AutoidHash", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AutoidHash" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_AutoidSequential", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "AutoidSequential" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_DerivedAutoidDefault", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DerivedAutoidDefault" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_DerivedAutoidHash", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DerivedAutoidHash" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_DerivedAutoidSequential", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DerivedAutoidSequential" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_DerivedEmptyAutoidSequential", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DerivedEmptyAutoidSequential" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_FixHashid", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixHashid" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_FixHashidDefault", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixHashidDefault" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_FixHexId", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixHexId" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_FixId", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixId" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_member_id_FixMix", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FixMix" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_mutable.json b/test/dds/xtypes/TypesTestsCases/Cases_mutable.json new file mode 100644 index 00000000000..08fc2bbac90 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_mutable.json @@ -0,0 +1,403 @@ +{ + "test_cases": [ + { + "TestCase": "Case_mutable_MutableBooleanStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableEmptyInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableExtensibilityInheritance", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableFloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableInheritanceEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableInheritanceEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableLongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableLongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableOctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableUShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableUnionStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableWCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "MutableWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_optional.json b/test/dds/xtypes/TypesTestsCases/Cases_optional.json new file mode 100644 index 00000000000..75adf18acf5 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_optional.json @@ -0,0 +1,1705 @@ +{ + "test_cases": [ + { + "TestCase": "Case_optional_InnerStructOptional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "InnerStructOptional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_array_short_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_array_short_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_array_short_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_array_short_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "array_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_boolean_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_boolean_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_boolean_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_boolean_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "boolean_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_char_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_char_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_char_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_char_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "char_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_double_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_double_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_double_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_double_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "double_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_float_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_float_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_float_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_float_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "float_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_long_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_long_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_long_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_long_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "long_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longdouble_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longdouble_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longdouble_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longdouble_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longdouble_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longlong_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longlong_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longlong_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longlong_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "longlong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_map_short_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_map_short_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_map_short_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_map_short_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "map_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_octet_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_octet_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_octet_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_octet_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "octet_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_opt_struct_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_opt_struct_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_opt_struct_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_opt_struct_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "opt_struct_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_sequence_short_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_sequence_short_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_sequence_short_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_sequence_short_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "sequence_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_short_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_short_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_short_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_short_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_bounded_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_bounded_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_bounded_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_bounded_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_bounded_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_unbounded_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_unbounded_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_unbounded_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_unbounded_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "string_unbounded_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_struct_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_struct_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_struct_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_struct_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "struct_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulong_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulong_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulong_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulong_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulonglong_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulonglong_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulonglong_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulonglong_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ulonglong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ushort_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ushort_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ushort_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ushort_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ushort_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_wchar_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_wchar_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_wchar_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_wchar_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "wchar_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_primitives.json b/test/dds/xtypes/TypesTestsCases/Cases_primitives.json new file mode 100644 index 00000000000..e9e9a946272 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_primitives.json @@ -0,0 +1,445 @@ +{ + "test_cases": [ + { + "TestCase": "Case_primitives_BooleanStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_CharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "CharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_DoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "DoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_FloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "FloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Int16Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Int16Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Int32Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Int32Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Int64Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Int64Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Int8Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Int8Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_LongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_LongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_LongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_OctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "OctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_ShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_ULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_ULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "ULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_UShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Uint16Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Uint16Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Uint32Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Uint32Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Uint64Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Uint64Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Uint8Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Uint8Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_WCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "WCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_sequences.json b/test/dds/xtypes/TypesTestsCases/Cases_sequences.json new file mode 100644 index 00000000000..1bc77fa7eff --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_sequences.json @@ -0,0 +1,592 @@ +{ + "test_cases": [ + { + "TestCase": "Case_sequences_BoundedBigSequences", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedBigSequences" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_BoundedSmallSequences", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "BoundedSmallSequences" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceShortArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceStringBounded", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceStringBounded" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceWStringBounded", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SequenceWStringBounded" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_strings.json b/test/dds/xtypes/TypesTestsCases/Cases_strings.json new file mode 100644 index 00000000000..e002cf04787 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_strings.json @@ -0,0 +1,130 @@ +{ + "test_cases": [ + { + "TestCase": "Case_strings_LargeStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LargeStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_LargeWStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "LargeWStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_SmallStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SmallStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_SmallWStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "SmallWStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_StringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_WStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "WStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_structures.json b/test/dds/xtypes/TypesTestsCases/Cases_structures.json new file mode 100644 index 00000000000..62c7777b68a --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_structures.json @@ -0,0 +1,697 @@ +{ + "test_cases": [ + { + "TestCase": "Case_structures_StructAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructChar16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructChar16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructChar8", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructChar8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructEmpty", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructEmpty" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructShortArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructUnsignedLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructUnsignedLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructUnsignedLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructUnsignedLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructUnsignedShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructUnsignedShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "StructWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_Structures", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "Structures" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_bar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "bar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_foo", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "foo" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_foo", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "foo" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_root1", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "root1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_root2", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "root2" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_unions.json b/test/dds/xtypes/TypesTestsCases/Cases_unions.json new file mode 100644 index 00000000000..41b67a9ccf9 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_unions.json @@ -0,0 +1,823 @@ +{ + "test_cases": [ + { + "TestCase": "Case_unions_UnionArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorEnumLabel", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorEnumLabel" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 2dc4969e7ae..9ede0249098 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -1,11 +1,11 @@ import json -import logging import os import shutil import subprocess import sys import time +# Define the directory of the script script_dir = os.path.dirname(os.path.realpath(__file__)) @@ -17,11 +17,6 @@ def read_json(file_name): return structure_dic -def participants_definition(file_name): - """Return a list with each participant defined in dictionary.""" - return read_json(file_name)['participants'] - - def define_args(participant): """Use dictionary to get command args for each participant.""" args = [] @@ -30,6 +25,7 @@ def define_args(participant): args.extend([f"timeout={participant.get('timeout', 10)}"]) args.extend([f"expected_matches={participant.get('expected_matches', 1)}"]) + # Check if 'known_types' key exists and is a list if 'known_types' in participant and isinstance(participant['known_types'], list): args.append(f'known_types={",".join(participant["known_types"])}') else: @@ -37,6 +33,7 @@ def define_args(participant): return args + def find_executable(executable_name): """Find the full path of an executable file by name.""" executable_path = shutil.which(executable_name) @@ -48,57 +45,69 @@ def find_executable(executable_name): return executable_path -def define_commands(participants): +def define_commands(test_cases): """Create commands for each participant adding executable to args.""" executable_path = find_executable('DDSXtypesCommunication') if not executable_path: print("ERROR: Executable 'DDSXtypesCommunication' not found in the system PATH or is not executable.") sys.exit(1) - commands = [[executable_path] + define_args(participant) for participant in participants] + all_commands = [] + for test_case in test_cases: + # For each test case, create commands for all participants + commands = [[executable_path] + define_args(participant) for participant in test_case['participants']] + all_commands.extend(commands) - return commands + return all_commands -def execute_commands(commands, logger): - """Get test definitions in command lists and execute each process.""" +def execute_commands(commands): + """Execute each process with the given commands.""" processes = [] for command in commands: - logger.info(f'Executing: {command}') processes.append(subprocess.Popen(command)) time.sleep(0.1) # Delay for consistency ret_value = 0 for proc in processes: - proc.communicate() + proc.communicate() # Wait for the process to finish ret_value += proc.returncode - # time.sleep(1) # Delay for consistency return ret_value if __name__ == '__main__': - - logger = logging.getLogger('XTYPES COMMUNICATION TEST') - logger.setLevel(logging.INFO) - args = sys.argv[1:] + # Check if the number of arguments is correct if len(args) != 1: - logger.error('ARGUMENTS ERROR : 1 argument required: path to .json file with test definition') + ('ARGUMENTS ERROR: 1 argument required: path to .json file with test definition') sys.exit(1) - participants = participants_definition(args[0]) - - commands = define_commands(participants) - - test_value = execute_commands(commands, logger) - - logger.error(test_value) - - if test_value != 0: + # Read test cases from the provided JSON file + test_cases = read_json(args[0])['test_cases'] + + total_test_value = 0 + failed_tests = [] + + for test_case in test_cases: + # Define commands for each test case + commands = define_commands([test_case]) + # Execute the commands and get the return value + test_value = execute_commands(commands) + total_test_value += test_value + if test_value != 0: + failed_tests.append(f"Test {test_case.get('TestCase')} failed!!!") + + # Exit with appropriate exit code based on total test value + if total_test_value != 0: + print("SOME TESTS FAILED!!!") + print("---------------------------------------------------") + for failed_test in failed_tests: + print(failed_test) + print("---------------------------------------------------") sys.exit(1) else: sys.exit(0) diff --git a/test/dds/xtypes/update_header_and_create_cases.py b/test/dds/xtypes/update_header_and_create_cases.py old mode 100755 new mode 100644 index 1cbeec0980d..20f457f9be5 --- a/test/dds/xtypes/update_header_and_create_cases.py +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -2,6 +2,7 @@ import os import re import sys +import fnmatch class IDLProcessor: def __init__(self): @@ -11,19 +12,21 @@ def __init__(self): self.idl_without_typeobjects = {"XtypesTestsTypeNoTypeObject", "declarations", "external"} self.struct_info = set() + def extract_structures(self, idl_text): + # Regular expressions for module and struct extraction module_regexp = r'module\s+(\w+)\s*{((?:.|[\r\n])*?)\};\s*\};' struct_regexp = r'struct\s+(\w+)(\s*:\s*\w+)?\s*\{([^}]+)' + # Extract structures within modules modules = re.findall(module_regexp, idl_text, re.DOTALL) module_structures = {} for module_match in modules: module_name, module_content = module_match - # Extract structures within the module structures = re.findall(struct_regexp, module_content) module_structures[module_name] = structures - # Regular expression to find structures outside modules + # Find structures outside modules outside_structures = re.findall(struct_regexp, idl_text) # Remove duplicate structures @@ -34,21 +37,19 @@ def extract_structures(self, idl_text): return module_structures, outside_structures + def process_idl_files(self, idls_path): # Search for .idl files in the specified folder and its subdirectories print("Searching for .idl files...") for root, dirs, files in os.walk(idls_path): for file_name in files: - if file_name.endswith('.idl') and file_name not in self.files_to_ignore: # Check if the file should be ignored + if file_name.endswith('.idl') and file_name not in self.files_to_ignore: file_path = os.path.join(root, file_name) print(f"Found .idl file: {file_path}") - # Get the relative path of the .idl file from the specified folder idl_file_relative_path = os.path.relpath(file_path, idls_path) - # Remove the file extension to get the IDL file name idl_file_name = os.path.splitext(idl_file_relative_path)[0] with open(file_path, 'r') as file: content = file.read() - # Extract structures from IDL content module_structures, outside_structures = self.extract_structures(content) # Store struct information along with the IDL file name and module name @@ -68,39 +69,49 @@ def create_case_files(struct_info): os.makedirs(cases_folder) print(f"Created 'TypesTestsCases' folder: {cases_folder}") - # Generate case files for each struct + # Aggregate test cases for each IDL file + idl_test_cases = {} + for struct_name, idl_file_name, _, idls_path in struct_info: + if idls_path != "BaseCasesIDLs/": + if idl_file_name not in idl_test_cases: + idl_test_cases[idl_file_name] = [] + + # Ignore cases for maps that use WString as keys + if (not fnmatch.fnmatch(struct_name, "MapWString*") and not + fnmatch.fnmatch(struct_name, "MapInnerAliasBoundedWStringHelper*")): + idl_test_cases[idl_file_name].append({ + "TestCase": f"Case_{idl_file_name}_{struct_name}", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [f"{struct_name}"] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }) + + # Generate case files for each IDL file print("Creating case files...") - for struct_name, idl_file_name, module_name, idls_path in struct_info: - if idls_path != "BaseCasesIDLs/": # Ignore cases for the IDL files in the 'BaseCasesIDLs' folder - idl_file_name = idl_file_name.replace("/", "_") # Replace "/" with "_" - case_data = { - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - f"{module_name}::{struct_name}" if module_name else struct_name - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - } - - file_name = f"Case_{idl_file_name}_{struct_name}.json" - file_path = os.path.join(cases_folder, file_name) - with open(file_path, 'w') as f: - json.dump(case_data, f, indent=4) - print(f"Created case file: {file_path}") - + for idl_file_name, test_cases in idl_test_cases.items(): + idl_file_name = idl_file_name.replace("/", "_") + test_cases.sort(key=lambda x: x["TestCase"]) + case_data = {"test_cases": test_cases} + file_name = f"Cases_{idl_file_name}.json" + file_path = os.path.join(cases_folder, file_name) + with open(file_path, 'w') as f: + json.dump(case_data, f, indent=4) + print(f"Created case file: {file_path}") + def update_types_header_file(struct_info, typecode_path): # Update types header file with necessary includes header_file_path = os.path.join(os.path.dirname(__file__), 'TypeLookupServiceTestsTypes.h') @@ -116,7 +127,7 @@ def update_types_header_file(struct_info, typecode_path): # Add new include lines before the #endif directive new_include_lines = set() for _, idl_file_name, _, idls_path in struct_info: - if idls_path != "BaseCasesIDLs/": # Ignore cases for the IDL files in the 'BaseCasesIDLs' folder + if idls_path != "BaseCasesIDLs/": include_line = f'#include "{typecode_path}{idl_file_name}PubSubTypes.h"\n' new_include_lines.add(include_line) else: @@ -160,14 +171,12 @@ def update_participant_headers_file(file_name, macro_name, struct_info, idl_with def insert_macros(func_declaration, macro_name, struct_info, idl_without_typeobjects): # Insert macros into the function declaration lines = func_declaration.split('\n') - # Remove all lines starting with the macro_name - lines = [line for line in lines if not re.match(rf'\s*{macro_name}\((\w+|\w+::\w+)\);', line)] + lines = [line for line in lines if not re.match(rf'\s*{macro_name}\((\w+|\w+::\w+)\);', line)] # Remove existing macro lines updated_func = '\n'.join(lines) idx = updated_func.rfind(' }') if idx != -1: - # Convert struct_info to a list and sort it alphabetically by idl_file_name and then by struct_name - struct_info = sorted(list(struct_info), key=lambda x: (x[1], x[2], x[0])) + struct_info = sorted(list(struct_info), key=lambda x: (x[1], x[2], x[0])) # Sort struct_info alphabetically for struct_name, idl_file_name, module_name, _ in struct_info: if idl_file_name in idl_without_typeobjects: if module_name: @@ -221,7 +230,6 @@ def main(): print(f"The directory '{typecode_path}' does not exist.") return - processor = IDLProcessor() processor.process_idl_files("BaseCasesIDLs/") processor.process_idl_files(idls_path) @@ -230,10 +238,8 @@ def main(): print("No structures found in the IDL files.") return - # Delete files before creating new ones - delete_files_in_cases_folder() + delete_files_in_cases_folder() - # Perform necessary operations create_case_files(processor.struct_info) update_types_header_file(processor.struct_info, typecode_path) update_participant_headers_file("TypeLookupServicePublisher.h", "PUBLISHER_TYPE_CREATOR_FUNCTION", From c95ce07036da6aefa1bc595aa57318359c3716b5 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Tue, 20 Feb 2024 19:02:11 +0100 Subject: [PATCH 22/45] Refs #20165: Fix for modules. Signed-off-by: adriancampo --- .../dds/xtypes/TypeLookupServicePublisher.cpp | 16 ++++++------ test/dds/xtypes/TypeLookupServicePublisher.h | 2 +- .../xtypes/TypeLookupServiceSubscriber.cpp | 16 ++++++------ test/dds/xtypes/TypeLookupServiceSubscriber.h | 2 +- .../TypesTestsCases/Cases_constants.json | 4 +-- .../TypesTestsCases/Cases_declarations.json | 2 +- .../TypesTestsCases/Cases_structures.json | 4 +-- test/dds/xtypes/test_build.py | 25 +++++++++++++------ .../xtypes/update_header_and_create_cases.py | 11 +++++--- 9 files changed, 50 insertions(+), 32 deletions(-) diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index 2f62656d05b..610db416ce4 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -274,8 +274,8 @@ bool TypeLookupServicePublisher::run( std::cout << "ERROR TypeLookupServicePublisher" << std::endl; if (expected_matches_ != sent_samples_.size()) { - std::cout << "expected_matches_ = " << expected_matches_ << - " matched_ = " << sent_samples_.size() << std::endl; + std::cout << "Expected_matches_ = " << expected_matches_ << + " Working_writers_ = " << sent_samples_.size() << std::endl; } for (auto& sent_sample : sent_samples_) @@ -318,19 +318,21 @@ void TypeLookupServicePublisher::on_data_reader_discovery( if (nullptr == participant_->find_type(discovered_reader_type_name)) { // Check for TypeObjectRegistry inconsistency - const bool has_type_object = types_without_typeobject_.find(discovered_reader_type_name) == + std::string modified_type_name = discovered_reader_type_name; + std::replace(modified_type_name.begin(), modified_type_name.end(), ':', '_'); + const bool has_type_object = types_without_typeobject_.find(modified_type_name) == types_without_typeobject_.end(); const bool is_registered = check_registered_type(info.type_information); if ((has_type_object && !is_registered)) { - throw std::runtime_error( - "Type '" + discovered_reader_type_name + "' is not registered but it should be."); + throw std::runtime_error("TypeLookupServiceSubscriber: Type '" + + discovered_reader_type_name + "' is not registered but it should be."); } if ((!has_type_object && is_registered)) { - throw std::runtime_error( - "Type '" + discovered_reader_type_name + "' is registered but it should not be."); + throw std::runtime_error("TypeLookupServiceSubscriber: Type '" + + discovered_reader_type_name + "' is registered but it should not be."); } // Create new publisher for the type diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index d39788ec18f..a9e34256119 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -738,7 +738,7 @@ class TypeLookupServicePublisher PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); PUBLISHER_TYPE_CREATOR_FUNCTION(BitMaskStructure); PUBLISHER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); - types_without_typeobject_.insert("ModuledForwardStruct"); + types_without_typeobject_.insert("declarations_module__ModuledForwardStruct"); PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index e297619a009..2737b8d985d 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -263,8 +263,8 @@ bool TypeLookupServiceSubscriber::run( std::cout << "ERROR TypeLookupServiceSubscriber" << std::endl; if (expected_matches_ != received_samples_.size()) { - std::cout << "expected_matches_ = " << expected_matches_ << - " matched_ = " << received_samples_.size() << std::endl; + std::cout << "Expected_matches_ = " << expected_matches_ << + " Working_writers_ = " << received_samples_.size() << std::endl; } for (auto& received_sample : received_samples_) { @@ -336,19 +336,21 @@ void TypeLookupServiceSubscriber::on_data_writer_discovery( if (participant_->find_type(discovered_writer_type_name) == nullptr) { // Check for TypeObjectRegistry inconsistency - const bool has_type_object = types_without_typeobject_.find(discovered_writer_type_name) == + std::string modified_type_name = discovered_writer_type_name; + std::replace(modified_type_name.begin(), modified_type_name.end(), ':', '_'); + const bool has_type_object = types_without_typeobject_.find(modified_type_name) == types_without_typeobject_.end(); const bool is_registered = check_registered_type(info.type_information); if ((has_type_object && !is_registered)) { - throw std::runtime_error( - "Type '" + discovered_writer_type_name + "' is not registered but it should be."); + throw std::runtime_error("TypeLookupServiceSubscriber: Type '" + + discovered_writer_type_name + "' is not registered but it should be."); } if ((!has_type_object && is_registered)) { - throw std::runtime_error( - "Type '" + discovered_writer_type_name + "' is registered but it should not be."); + throw std::runtime_error("TypeLookupServiceSubscriber: Type '" + + discovered_writer_type_name + "' is registered but it should not be."); } // Create new subscriber for the type diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index aa4048d1c7a..56fb80c14e4 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -738,7 +738,7 @@ class TypeLookupServiceSubscriber SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitMaskStructure); SUBSCRIBER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); - types_without_typeobject_.insert("ModuledForwardStruct"); + types_without_typeobject_.insert("declarations_module__ModuledForwardStruct"); SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); diff --git a/test/dds/xtypes/TypesTestsCases/Cases_constants.json b/test/dds/xtypes/TypesTestsCases/Cases_constants.json index e3e8dcc1b5d..ad4c4da6fb9 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_constants.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_constants.json @@ -30,7 +30,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "Module2ConstsLiteralsStruct" + "const_module2::Module2ConstsLiteralsStruct" ] }, { @@ -51,7 +51,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "ModuleConstsLiteralsStruct" + "const_module1::ModuleConstsLiteralsStruct" ] }, { diff --git a/test/dds/xtypes/TypesTestsCases/Cases_declarations.json b/test/dds/xtypes/TypesTestsCases/Cases_declarations.json index 0e03790b678..d8267dde614 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_declarations.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_declarations.json @@ -93,7 +93,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "ModuledForwardStruct" + "declarations_module::ModuledForwardStruct" ] }, { diff --git a/test/dds/xtypes/TypesTestsCases/Cases_structures.json b/test/dds/xtypes/TypesTestsCases/Cases_structures.json index 62c7777b68a..256dc785f04 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_structures.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_structures.json @@ -618,7 +618,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "foo" + "testing_2::foo" ] }, { @@ -639,7 +639,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "foo" + "testing_1::foo" ] }, { diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 9ede0249098..cc4979a7dde 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -90,7 +90,8 @@ def execute_commands(commands): test_cases = read_json(args[0])['test_cases'] total_test_value = 0 - failed_tests = [] + successful_cases = [] + failling_cases = [] for test_case in test_cases: # Define commands for each test case @@ -98,16 +99,24 @@ def execute_commands(commands): # Execute the commands and get the return value test_value = execute_commands(commands) total_test_value += test_value - if test_value != 0: - failed_tests.append(f"Test {test_case.get('TestCase')} failed!!!") + if test_value == 0: + successful_cases.append(f"Test {test_case.get('TestCase')}") + else: + failling_cases.append(f"Test {test_case.get('TestCase')}") + + # Print the results + if successful_cases.__len__() > 0: + print("---------- SUCCESSFUL CASES ----------") + for successful_test in successful_cases: + print(successful_test) + + if failling_cases.__len__() > 0: + print("----------- FAILLING CASES -----------") + for failed_test in failling_cases: + print(failed_test) # Exit with appropriate exit code based on total test value if total_test_value != 0: - print("SOME TESTS FAILED!!!") - print("---------------------------------------------------") - for failed_test in failed_tests: - print(failed_test) - print("---------------------------------------------------") sys.exit(1) else: sys.exit(0) diff --git a/test/dds/xtypes/update_header_and_create_cases.py b/test/dds/xtypes/update_header_and_create_cases.py index 20f457f9be5..df33860521b 100644 --- a/test/dds/xtypes/update_header_and_create_cases.py +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -71,7 +71,7 @@ def create_case_files(struct_info): # Aggregate test cases for each IDL file idl_test_cases = {} - for struct_name, idl_file_name, _, idls_path in struct_info: + for struct_name, idl_file_name, module_name, idls_path in struct_info: if idls_path != "BaseCasesIDLs/": if idl_file_name not in idl_test_cases: idl_test_cases[idl_file_name] = [] @@ -79,6 +79,11 @@ def create_case_files(struct_info): # Ignore cases for maps that use WString as keys if (not fnmatch.fnmatch(struct_name, "MapWString*") and not fnmatch.fnmatch(struct_name, "MapInnerAliasBoundedWStringHelper*")): + + known_types = [struct_name] + if module_name: + known_types = [f"{module_name}::{struct_name}"] + idl_test_cases[idl_file_name].append({ "TestCase": f"Case_{idl_file_name}_{struct_name}", "participants": [ @@ -87,7 +92,7 @@ def create_case_files(struct_info): "samples": "10", "timeout": "2", "expected_matches": "1", - "known_types": [f"{struct_name}"] + "known_types": known_types }, { "kind": "subscriber", @@ -182,7 +187,7 @@ def insert_macros(func_declaration, macro_name, struct_info, idl_without_typeobj if module_name: updated_func = (updated_func[:idx] + f" {macro_name}({module_name}::{struct_name});\n" - f" types_without_typeobject_.insert(\"{struct_name}\");\n" + + f" types_without_typeobject_.insert(\"{module_name}__{struct_name}\");\n" + updated_func[idx:]) else: updated_func = (updated_func[:idx] + From b82bb45f148b3828408fe7f9cf484b0254802640 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Thu, 22 Feb 2024 20:54:07 +0100 Subject: [PATCH 23/45] Refs #20165: Changes to use take method. Fixed bug with get_map_dependencies. Signed-off-by: adriancampo --- .../xtypes/TypeLookupServiceSubscriber.cpp | 112 +++++++++++++++--- test/dds/xtypes/TypeLookupServiceSubscriber.h | 11 ++ 2 files changed, 109 insertions(+), 14 deletions(-) diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index 2737b8d985d..ce93a0744a5 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -19,6 +19,7 @@ #include "TypeLookupServiceSubscriber.h" +#include #include #include #include @@ -156,6 +157,85 @@ bool TypeLookupServiceSubscriber::create_known_type_impl( return true; } +template +bool TypeLookupServiceSubscriber::process_type_impl( + DataReader* reader) +{ + eprosima::fastdds::dds::LoanableSequence datas; + eprosima::fastdds::dds::SampleInfoSeq infos; + + ReturnCode_t success = reader->take(datas, infos); + if (eprosima::fastdds::dds::RETCODE_OK != success) + { + std::cout << "ERROR TypeLookupServiceSubscriber: error taking samples: " << + reader->type().get_type_name() << std::endl; + return false; + } + + for (int32_t i = 0; i < datas.length(); ++i) + { + Type& data = datas[i]; + eprosima::fastdds::dds::SampleInfo& info = infos[i]; + + if (info.valid_data && reader->is_sample_valid(&data, &info)) + { + std::lock_guard guard(known_types_mutex_); + std::cout << "Subscriber type_" << reader->type().get_type_name() << ": " << std::endl; + received_samples_[info.sample_identity.writer_guid()]++; + cv_.notify_all(); + } + else + { + std::cout << "ERROR TypeLookupServiceSubscriber: sample invalid " << + reader->type().get_type_name() << std::endl; + return false; + } + } + reader->return_loan(datas, infos); + return true; +} + +bool TypeLookupServiceSubscriber::process_dyn_type_impl( + DataReader* reader) +{ + eprosima::fastdds::dds::LoanableSequence datas; + eprosima::fastdds::dds::SampleInfoSeq infos; + + ReturnCode_t success = reader->take(datas, infos); + if (eprosima::fastdds::dds::RETCODE_OK != success) + { + std::cout << "ERROR TypeLookupServiceSubscriber: Error taking dynamic samples: " << + reader->type().get_type_name() << std::endl; + return false; + } + + for (int32_t i = 0; i < datas.length(); ++i) + { + DynamicPubSubType& data = datas[i]; + eprosima::fastdds::dds::SampleInfo& info = infos[i]; + + if (info.valid_data && reader->is_sample_valid(&data, &info)) + { + std::lock_guard guard(known_types_mutex_); + std::cout << "Subscriber dyn_type_" << reader->type().get_type_name() << ": " << std::endl; + received_samples_[info.sample_identity.writer_guid()]++; + cv_.notify_all(); + } + else + { + std::cout << "ERROR TypeLookupServiceSubscriber: Dynamic sample invalid " << + reader->type().get_type_name() << std::endl; + return false; + } + } + + if (RETCODE_OK != reader->return_loan(datas, infos)) + { + return false; + } + return true; +} + bool TypeLookupServiceSubscriber::create_discovered_type( const PublicationBuiltinTopicData& info) { @@ -295,30 +375,34 @@ void TypeLookupServiceSubscriber::on_subscription_matched( void TypeLookupServiceSubscriber::on_data_available( DataReader* reader) { - SampleInfo info; + bool data_correct = false; auto& known_type = known_types_[reader->type().get_type_name()]; if (known_type.dyn_type_) { - DynamicData::_ref_type sample = DynamicDataFactory::get_instance()->create_data(known_type.dyn_type_); - if (reader->take_next_sample(&sample, &info) == RETCODE_OK && info.valid_data) - { - //std::cout << "Subscriber dyn_type_" << reader->type().get_type_name() << ": " << std::endl; - received_samples_[info.sample_identity.writer_guid()]++; - cv_.notify_all(); - } + data_correct = process_dyn_type_impl(reader); } - if (known_type.type_) { - void* sample = known_type.type_; - if (reader->take_next_sample(sample, &info) == RETCODE_OK && info.valid_data) + // Find the type processor in the map + auto it = type_processor_functions_.find(reader->type().get_type_name()); + if (it != type_processor_functions_.end()) { - //std::cout << "Subscriber type_" << reader->type().get_type_name() << ": " << std::endl; - received_samples_[info.sample_identity.writer_guid()]++; - cv_.notify_all(); + // Call the associated type processor function + data_correct = it->second(reader); + } + else + { + std::cout << "ERROR TypeLookupServiceSubscriber: Processed unknown type: " << + reader->type().get_type_name() << std::endl; } } + + if (!data_correct) + { + throw std::runtime_error("TypeLookupServiceSubscriber: Wrong data on_data_available: " + + reader->type().get_type_name()); + } } void TypeLookupServiceSubscriber::on_data_writer_discovery( diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index 56fb80c14e4..408f481f311 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -60,6 +60,9 @@ struct SubKnownType #define SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type) \ type_creator_functions_[#Type] = std::bind(&TypeLookupServiceSubscriber::create_known_type_impl, \ + this, \ + std::placeholders::_1); \ + type_processor_functions_[#Type] = std::bind(&TypeLookupServiceSubscriber::process_type_impl, \ this, \ std::placeholders::_1) @@ -110,6 +113,13 @@ class TypeLookupServiceSubscriber bool create_known_type_impl( const std::string& type); + template + bool process_type_impl( + DataReader* reader); + + bool process_dyn_type_impl( + DataReader* reader); + bool create_discovered_type( const eprosima::fastdds::dds::PublicationBuiltinTopicData& info); @@ -128,6 +138,7 @@ class TypeLookupServiceSubscriber std::map known_types_; std::unordered_set types_without_typeobject_; std::map> type_creator_functions_; + std::map> type_processor_functions_; std::vector create_types_threads; From 6c6bddd3ac9588febf027deb878061458cd6f8a6 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Thu, 22 Feb 2024 21:46:49 +0100 Subject: [PATCH 24/45] Refs #20165: Removed willdcards from cmake. Signed-off-by: adriancampo --- test/dds/xtypes/CMakeLists.txt | 46 ++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index 53ae7001151..493a151f945 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -26,8 +26,50 @@ include_directories(${Asio_INCLUDE_DIR}) ############################################################################### file(GLOB COMMON_SOURCE - ${PROJECT_SOURCE_DIR}/test/dds-types-test/*.cxx - ${PROJECT_SOURCE_DIR}/test/dds-types-test/helpers/*.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/aliasesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/aliasesTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/annotationsPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/annotationsTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/appendablePubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/appendableTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/arraysPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/arraysTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/bitsetsPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/bitsetsTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/constantsPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/constantsTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/declarationsPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/enumerationsPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/enumerationsTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/externalPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/finalPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/finalTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/inheritancePubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/inheritanceTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/keyPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/keyTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/mapsPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/mapsTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/member_idPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/member_idTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/mutablePubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/mutableTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/optionalPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/optionalTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/primitivesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/primitivesTypeObjectSupport.cxx + # ${PROJECT_SOURCE_DIR}/test/dds-types-test/relative_path_includePubSubTypes.cxx + # ${PROJECT_SOURCE_DIR}/test/dds-types-test/relative_path_includeTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/sequencesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/sequencesTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/stringsPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/stringsTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/structuresPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/structuresTypeObjectSupport.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/unionsPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/test/dds-types-test/unionsTypeObjectSupport.cxx ${PROJECT_SOURCE_DIR}/test/dds/xtypes/BaseCasesIDLs/*.cxx ) From 88341248ed292e042e0f288cacf32bf292c18bcb Mon Sep 17 00:00:00 2001 From: adriancampo Date: Wed, 28 Feb 2024 17:16:24 +0100 Subject: [PATCH 25/45] Refs #20165: Updated types. Signed-off-by: adriancampo --- .../TypeObjectRegistry.hpp | 87 ++----------------- test/dds/xtypes/TypeLookupServicePublisher.h | 1 - .../TypesTestsCases/Cases_structures.json | 4 +- 3 files changed, 7 insertions(+), 85 deletions(-) diff --git a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp index a2c482e5a8b..dfebd66e77c 100644 --- a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp +++ b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp @@ -41,93 +41,16 @@ #include namespace std { - template<> struct hash { std::size_t operator ()( - const eprosima::fastdds::dds::xtypes::TypeIdentifier& type_identifier) const + const eprosima::fastdds::dds::xtypes::TypeIdentifier& k) const { - std::size_t hash_value = 0; - - // Incorporate the discriminator into the hash value - hash_value += static_cast(type_identifier._d()); - - if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_SEQUENCE_SMALL && - type_identifier.seq_sdefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) - { - hash_value = (hash_value << 24) | - (static_cast(type_identifier.seq_sdefn().element_identifier().get()-> - equivalence_hash()[0]) << 16) | - (static_cast(type_identifier.seq_sdefn().element_identifier().get()-> - equivalence_hash()[1]) << 8) | - (static_cast(type_identifier.seq_sdefn().element_identifier().get()-> - equivalence_hash()[2])); - } - else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_SEQUENCE_LARGE && - type_identifier.seq_ldefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) - { - hash_value = (hash_value << 24) | - (static_cast(type_identifier.seq_ldefn().element_identifier().get()-> - equivalence_hash()[0]) << 16) | - (static_cast(type_identifier.seq_ldefn().element_identifier().get()-> - equivalence_hash()[1]) << 8) | - (static_cast(type_identifier.seq_ldefn().element_identifier().get()-> - equivalence_hash()[2])); - } - else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_ARRAY_SMALL && - type_identifier.array_sdefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) - { - hash_value = (hash_value << 24) | - (static_cast(type_identifier.array_sdefn().element_identifier().get()-> - equivalence_hash()[0]) << 16) | - (static_cast(type_identifier.array_sdefn().element_identifier().get()-> - equivalence_hash()[1]) << 8) | - (static_cast(type_identifier.array_sdefn().element_identifier().get()-> - equivalence_hash()[2])); - } - else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_ARRAY_LARGE && - type_identifier.array_ldefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) - { - hash_value = (hash_value << 24) | - (static_cast(type_identifier.array_ldefn().element_identifier().get()-> - equivalence_hash()[0]) << 16) | - (static_cast(type_identifier.array_ldefn().element_identifier().get()-> - equivalence_hash()[1]) << 8) | - (static_cast(type_identifier.array_ldefn().element_identifier().get()-> - equivalence_hash()[2])); - } - else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_MAP_SMALL && - type_identifier.map_sdefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) - { - hash_value = (hash_value << 24) | - (static_cast(type_identifier.map_sdefn().element_identifier().get()-> - equivalence_hash()[0]) << 16) | - (static_cast(type_identifier.map_sdefn().element_identifier().get()-> - equivalence_hash()[1]) << 8) | - (static_cast(type_identifier.map_sdefn().element_identifier().get()-> - equivalence_hash()[2])); - } - else if (type_identifier._d() == eprosima::fastdds::dds::xtypes::TI_PLAIN_MAP_LARGE && - type_identifier.map_ldefn().header().equiv_kind() != eprosima::fastdds::dds::xtypes::EK_BOTH) - { - hash_value = (hash_value << 24) | - (static_cast(type_identifier.map_ldefn().element_identifier().get()-> - equivalence_hash()[0]) << 16) | - (static_cast(type_identifier.map_ldefn().element_identifier().get()-> - equivalence_hash()[1]) << 8) | - (static_cast(type_identifier.map_ldefn().element_identifier().get()-> - equivalence_hash()[2])); - } - else - { - hash_value = (hash_value << 24) | - (static_cast(type_identifier.equivalence_hash()[0]) << 16) | - (static_cast(type_identifier.equivalence_hash()[1]) << 8) | - (static_cast(type_identifier.equivalence_hash()[2])); - } - - return hash_value; + // The collection only has direct hash TypeIdentifiers so the EquivalenceHash can be used. + return (static_cast(k.equivalence_hash()[0]) << 16) | + (static_cast(k.equivalence_hash()[1]) << 8) | + (static_cast(k.equivalence_hash()[2])); } }; diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index a9e34256119..7c0fec6c368 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -109,7 +109,6 @@ class TypeLookupServicePublisher bool create_known_type_impl( const std::string& type); - bool create_discovered_type( const eprosima::fastdds::dds::SubscriptionBuiltinTopicData& info); diff --git a/test/dds/xtypes/TypesTestsCases/Cases_structures.json b/test/dds/xtypes/TypesTestsCases/Cases_structures.json index 256dc785f04..3b75a7ce521 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_structures.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_structures.json @@ -618,7 +618,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "testing_2::foo" + "testing_1::foo" ] }, { @@ -639,7 +639,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "testing_1::foo" + "testing_2::foo" ] }, { From dec5d7e074cf2d95456ba18f6894896041d06865 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Mon, 4 Mar 2024 10:49:25 +0100 Subject: [PATCH 26/45] Refs #20165: Fix for custom annotations name hash. Signed-off-by: adriancampo --- test/dds/xtypes/TypeLookupServicePublisher.h | 1694 ++++++++--------- .../xtypes/TypeLookupServiceSubscriber.cpp | 4 +- test/dds/xtypes/TypeLookupServiceSubscriber.h | 1694 ++++++++--------- .../TypesTestsCases/Cases_annotations.json | 4 +- .../TypesTestsCases/Cases_structures.json | 4 +- .../xtypes/update_header_and_create_cases.py | 83 +- 6 files changed, 1692 insertions(+), 1791 deletions(-) diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index 7c0fec6c368..0335d1f3093 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -129,881 +129,831 @@ class TypeLookupServicePublisher std::map> type_creator_functions_; std::vector create_types_threads; - + /** + * This method is updated automatically using the update_headers_and_create_cases.py script + */ void create_type_creator_functions() { - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionString); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionSequence); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnumLabel); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnum); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorAlias); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoundedWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoundedString); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(UnionArray); - PUBLISHER_TYPE_CREATOR_FUNCTION(testing_2::foo); - PUBLISHER_TYPE_CREATOR_FUNCTION(testing_1::foo); - PUBLISHER_TYPE_CREATOR_FUNCTION(root2); - PUBLISHER_TYPE_CREATOR_FUNCTION(root1); - PUBLISHER_TYPE_CREATOR_FUNCTION(bar); - PUBLISHER_TYPE_CREATOR_FUNCTION(Structures); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnion); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructString); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructShortArray); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructSequence); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructEnum); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructEmpty); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructChar8); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructChar16); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoundedWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoundedString); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructBitset); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructBitMask); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructAlias); - PUBLISHER_TYPE_CREATOR_FUNCTION(WStringStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(StringStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(SmallWStringStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(SmallStringStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(LargeWStringStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(LargeStringStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWStringBounded); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceUnion); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceStringBounded); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceString); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceShortArray); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceSequence); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceEnum); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBitset); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBitMask); - PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceAlias); - PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallSequences); - PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBigSequences); - PUBLISHER_TYPE_CREATOR_FUNCTION(WCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(Uint8Struct); - PUBLISHER_TYPE_CREATOR_FUNCTION(Uint64Struct); - PUBLISHER_TYPE_CREATOR_FUNCTION(Uint32Struct); - PUBLISHER_TYPE_CREATOR_FUNCTION(Uint16Struct); - PUBLISHER_TYPE_CREATOR_FUNCTION(UShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(ULongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(ULongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(ShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(OctetStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(LongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(LongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(LongDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(Int8Struct); - PUBLISHER_TYPE_CREATOR_FUNCTION(Int64Struct); - PUBLISHER_TYPE_CREATOR_FUNCTION(Int32Struct); - PUBLISHER_TYPE_CREATOR_FUNCTION(Int16Struct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FloatStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(DoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(CharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(BooleanStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(struct_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(short_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(octet_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(long_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(float_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(double_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(char_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_4_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_2_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_1_optional); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructOptional); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableWCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableUnionStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableUShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableULongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableULongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableOctetStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableInheritanceEmptyStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableFloatStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableExtensibilityInheritance); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableEmptyStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableEmptyInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(MutableBooleanStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixMix); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixId); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixHexId); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixHashidDefault); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixHashid); - PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedEmptyAutoidSequential); - PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidSequential); - PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidHash); - PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidDefault); - PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidSequential); - PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidHash); - PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidDefault); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapWStringBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongKeyLongValue); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongKeyDoubleValue); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongKeyLongLongValue); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongKeyLongDoubleValue); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongLongValueDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperString); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerUnionHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerEnumHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitsetHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedLargeMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedWCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedUShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedULongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedULongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedOctetStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedFloatStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedEmptyStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedEmptyInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedBooleanStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(InheritanceKeyedEmptyStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructuresInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(StructAliasInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChildChild); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChild); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChildChild); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChild); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelperChild); - PUBLISHER_TYPE_CREATOR_FUNCTION(BitsetsChildInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelper); - PUBLISHER_TYPE_CREATOR_FUNCTION(InheritanceEmptyStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalWCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalUnionStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalUShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalULongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalULongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalOctetStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalFloatStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalExtensibilityInheritance); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalEmptyStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalEmptyInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(FinalBooleanStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_external); - types_without_typeobject_.insert("wchar_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_external); - types_without_typeobject_.insert("ushort_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_external); - types_without_typeobject_.insert("ulonglong_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_external); - types_without_typeobject_.insert("ulong_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(struct_external_optional); - types_without_typeobject_.insert("struct_external_optional"); - PUBLISHER_TYPE_CREATOR_FUNCTION(struct_external); - types_without_typeobject_.insert("struct_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_external); - types_without_typeobject_.insert("string_unbounded_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_external); - types_without_typeobject_.insert("string_bounded_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(short_external); - types_without_typeobject_.insert("short_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_external); - types_without_typeobject_.insert("sequence_short_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_union_container); - types_without_typeobject_.insert("recursive_union_container"); - PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_test_2); - types_without_typeobject_.insert("recursive_test_2"); - PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_test_1); - types_without_typeobject_.insert("recursive_test_1"); - PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_structure); - types_without_typeobject_.insert("recursive_structure"); - PUBLISHER_TYPE_CREATOR_FUNCTION(octet_external); - types_without_typeobject_.insert("octet_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_external); - types_without_typeobject_.insert("map_short_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_external); - types_without_typeobject_.insert("longlong_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_external); - types_without_typeobject_.insert("longdouble_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(long_external); - types_without_typeobject_.insert("long_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(float_external); - types_without_typeobject_.insert("float_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ext_struct_external); - types_without_typeobject_.insert("ext_struct_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ext_and_inner_struct_external); - types_without_typeobject_.insert("ext_and_inner_struct_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(double_external); - types_without_typeobject_.insert("double_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(char_external); - types_without_typeobject_.insert("char_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_external); - types_without_typeobject_.insert("boolean_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_external); - types_without_typeobject_.insert("array_short_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructExternal); - types_without_typeobject_.insert("InnerStructExternal"); - PUBLISHER_TYPE_CREATOR_FUNCTION(EnumStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(BitMaskStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); - types_without_typeobject_.insert("declarations_module__ModuledForwardStruct"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); - types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); - types_without_typeobject_.insert("ModuledCommonNameStructure"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ForwardStruct); - types_without_typeobject_.insert("ForwardStruct"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ForwardDeclarationsRecursiveStruct); - types_without_typeobject_.insert("ForwardDeclarationsRecursiveStruct"); - PUBLISHER_TYPE_CREATOR_FUNCTION(const_module2::Module2ConstsLiteralsStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(const_module1::ModuleConstsLiteralsStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(ConstsLiteralsStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(BitsetStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallArrays); - PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBigArrays); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayUnion); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnion); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShortArray); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsSequence); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsEnum); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitset); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitMask); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsAlias); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayShortArray); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySequence); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUnion); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionSequence); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUnion); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsShort); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsSequence); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsEnum); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitSet); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitMask); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsAlias); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionEnum); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitset); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitMask); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionAlias); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLongLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLongDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLong); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayFloat); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayEnum); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayDouble); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayChar); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoundedWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoundedString); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoolean); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBitset); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBitMask); - PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayAlias); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableWCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableUnionStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableUShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableULongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableULongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableShortStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableOctetStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongLongStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableInheritanceEmptyStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableFloatStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableExtensibilityInheritance); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableEmptyStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableEmptyInheritanceStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableDoubleStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableCharStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableBooleanStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(EmptyAnnotatedStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AnnotatedStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUnion); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUint16); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUInt64); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUInt32); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasStruct); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasString8); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasString16); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasSequence); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasOctet); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasMultiArray); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasMap); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt64); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt32); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt16); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat64); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat32); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat128); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasEnum); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasChar8); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasChar16); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBool); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBitset); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBitmask); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasArray); - PUBLISHER_TYPE_CREATOR_FUNCTION(AliasAlias); - PUBLISHER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); - types_without_typeobject_.insert("TypeNoTypeObject"); - PUBLISHER_TYPE_CREATOR_FUNCTION(TypeDep); - PUBLISHER_TYPE_CREATOR_FUNCTION(TypeBig); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type99); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type98); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type97); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type96); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type95); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type94); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type93); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type92); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type91); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type90); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type9); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type89); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type88); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type87); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type86); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type85); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type84); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type83); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type82); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type81); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type80); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type8); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type79); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type78); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type77); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type76); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type75); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type74); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type73); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type72); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type71); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type70); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type7); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type69); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type68); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type67); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type66); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type65); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type64); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type63); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type62); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type61); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type60); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type6); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type59); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type58); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type57); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type56); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type55); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type54); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type53); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type52); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type51); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type50); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type5); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type49); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type48); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type47); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type46); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type45); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type44); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type43); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type42); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type41); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type40); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type4); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type39); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type38); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type37); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type36); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type35); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type34); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type33); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type32); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type31); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type30); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type29); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type28); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type27); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type26); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type25); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type24); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type23); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type22); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type21); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type20); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type19); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type18); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type17); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type16); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type15); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type14); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type13); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type12); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type11); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type100); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type10); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type3); - PUBLISHER_TYPE_CREATOR_FUNCTION(Type2); PUBLISHER_TYPE_CREATOR_FUNCTION(Type1); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type2); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type3); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type10); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type100); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type11); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type12); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type13); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type14); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type15); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type16); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type17); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type18); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type19); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type20); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type21); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type22); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type23); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type24); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type25); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type26); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type27); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type28); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type29); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type30); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type31); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type32); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type33); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type34); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type35); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type36); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type37); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type38); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type39); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type4); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type40); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type41); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type42); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type43); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type44); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type45); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type46); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type47); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type48); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type49); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type5); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type50); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type51); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type52); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type53); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type54); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type55); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type56); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type57); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type58); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type59); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type6); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type60); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type61); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type62); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type63); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type64); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type65); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type66); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type67); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type68); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type69); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type7); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type70); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type71); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type72); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type73); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type74); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type75); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type76); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type77); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type78); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type79); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type8); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type80); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type81); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type82); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type83); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type84); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type85); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type86); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type87); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type88); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type89); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type9); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type90); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type91); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type92); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type93); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type94); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type95); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type96); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type97); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type98); + PUBLISHER_TYPE_CREATOR_FUNCTION(Type99); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeBig); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeDep); + PUBLISHER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); + types_without_typeobject_.insert("TypeNoTypeObject"); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBitmask); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasBool); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasChar16); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasChar8); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat128); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat32); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasFloat64); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt16); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt32); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasInt64); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasMultiArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasString16); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasString8); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUInt32); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUInt64); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUint16); + PUBLISHER_TYPE_CREATOR_FUNCTION(AliasUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(BasicAnnotationsStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(EmptyAnnotatedStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableBooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableEmptyInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableExtensibilityInheritance); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableFloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableInheritanceEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableOctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableUShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableUnionStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(AppendableWCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitSet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayShortArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShortArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayString); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(ArrayWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBigArrays); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallArrays); + PUBLISHER_TYPE_CREATOR_FUNCTION(BitsetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ConstsLiteralsStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(const_module1::ModuleConstsLiteralsStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(const_module2::Module2ConstsLiteralsStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ForwardDeclarationsRecursiveStruct); + types_without_typeobject_.insert("ForwardDeclarationsRecursiveStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ForwardStruct); + types_without_typeobject_.insert("ForwardStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); + types_without_typeobject_.insert("ModuledCommonNameStructure"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); + types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); + types_without_typeobject_.insert("declarations_module__ModuledForwardStruct"); + PUBLISHER_TYPE_CREATOR_FUNCTION(BitMaskStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(EnumStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructExternal); + types_without_typeobject_.insert("InnerStructExternal"); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_external); + types_without_typeobject_.insert("array_short_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_external); + types_without_typeobject_.insert("boolean_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_external); + types_without_typeobject_.insert("char_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_external); + types_without_typeobject_.insert("double_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ext_and_inner_struct_external); + types_without_typeobject_.insert("ext_and_inner_struct_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ext_struct_external); + types_without_typeobject_.insert("ext_struct_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_external); + types_without_typeobject_.insert("float_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_external); + types_without_typeobject_.insert("long_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_external); + types_without_typeobject_.insert("longdouble_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_external); + types_without_typeobject_.insert("longlong_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_external); + types_without_typeobject_.insert("map_short_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_external); + types_without_typeobject_.insert("octet_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_structure); + types_without_typeobject_.insert("recursive_structure"); + PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_test_1); + types_without_typeobject_.insert("recursive_test_1"); + PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_test_2); + types_without_typeobject_.insert("recursive_test_2"); + PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_union_container); + types_without_typeobject_.insert("recursive_union_container"); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_external); + types_without_typeobject_.insert("sequence_short_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_external); + types_without_typeobject_.insert("short_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_external); + types_without_typeobject_.insert("string_bounded_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_external); + types_without_typeobject_.insert("string_unbounded_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_external); + types_without_typeobject_.insert("struct_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_external_optional); + types_without_typeobject_.insert("struct_external_optional"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_external); + types_without_typeobject_.insert("ulong_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_external); + types_without_typeobject_.insert("ulonglong_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_external); + types_without_typeobject_.insert("ushort_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_external); + types_without_typeobject_.insert("wchar_external"); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalBooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalEmptyInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalExtensibilityInheritance); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalFloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalOctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalUShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalUnionStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FinalWCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(InheritanceEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(BitsetsChildInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelperChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChildChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChildChild); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructAliasInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructuresInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(InheritanceKeyedEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedBooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedEmptyInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedFloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedOctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedUShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedWCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedLargeMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongLongValueDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongKeyLongDoubleValue); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongKeyLongLongValue); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongKeyDoubleValue); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongKeyLongValue); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongLongWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapLongWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapShortWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapStringWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongLongWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapULongWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasArrayHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedWStringHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasMapHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasSequenceHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortString); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidDefault); + PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidHash); + PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidSequential); + PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidDefault); + PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidHash); + PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidSequential); + PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedEmptyAutoidSequential); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixHashid); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixHashidDefault); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixHexId); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixId); + PUBLISHER_TYPE_CREATOR_FUNCTION(FixMix); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableBooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableEmptyInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableExtensibilityInheritance); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableFloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableInheritanceEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableInheritanceStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableOctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableUShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableUnionStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(MutableWCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructOptional); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(char_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(double_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(float_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(long_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(octet_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(opt_struct_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(short_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(struct_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_1_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_2_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_align_4_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_optional); + PUBLISHER_TYPE_CREATOR_FUNCTION(BooleanStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(CharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(DoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(FloatStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Int16Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Int32Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Int64Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Int8Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LongDoubleStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(OctetStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ULongLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(ULongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(UShortStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Uint16Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Uint32Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Uint64Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(Uint8Struct); + PUBLISHER_TYPE_CREATOR_FUNCTION(WCharStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBigSequences); + PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedSmallSequences); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceShortArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceString); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceStringBounded); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(SequenceWStringBounded); + PUBLISHER_TYPE_CREATOR_FUNCTION(LargeStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(LargeWStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(SmallStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(SmallWStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(StringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(WStringStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBitMask); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBitset); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructChar16); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructChar8); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructEmpty); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructShortArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructString); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructStructure); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnion); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructUnsignedShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(StructWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(Structures); + PUBLISHER_TYPE_CREATOR_FUNCTION(bar); + PUBLISHER_TYPE_CREATOR_FUNCTION(root1); + PUBLISHER_TYPE_CREATOR_FUNCTION(root2); + PUBLISHER_TYPE_CREATOR_FUNCTION(testing_1::foo); + PUBLISHER_TYPE_CREATOR_FUNCTION(testing_2::foo); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionArray); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoundedString); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionBoundedWString); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorAlias); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorBoolean); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnum); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnumLabel); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionFloat); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerAliasHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerBitMaskHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerBitsetHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerEnumHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerStructureHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionInnerUnionHelper); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLongDouble); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionLongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionMap); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionOctet); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionString); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionULong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionULongLong); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionUShort); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionWChar); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionWString); } }; diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index ce93a0744a5..e4c96f7fae5 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -180,7 +180,7 @@ bool TypeLookupServiceSubscriber::process_type_impl( if (info.valid_data && reader->is_sample_valid(&data, &info)) { std::lock_guard guard(known_types_mutex_); - std::cout << "Subscriber type_" << reader->type().get_type_name() << ": " << std::endl; + // std::cout << "Subscriber type_" << reader->type().get_type_name() << ": " << std::endl; received_samples_[info.sample_identity.writer_guid()]++; cv_.notify_all(); } @@ -217,7 +217,7 @@ bool TypeLookupServiceSubscriber::process_dyn_type_impl( if (info.valid_data && reader->is_sample_valid(&data, &info)) { std::lock_guard guard(known_types_mutex_); - std::cout << "Subscriber dyn_type_" << reader->type().get_type_name() << ": " << std::endl; + // std::cout << "Subscriber dyn_type_" << reader->type().get_type_name() << ": " << std::endl; received_samples_[info.sample_identity.writer_guid()]++; cv_.notify_all(); } diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index 408f481f311..2be0a51b0e5 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -141,881 +141,831 @@ class TypeLookupServiceSubscriber std::map> type_processor_functions_; std::vector create_types_threads; - + /** + * This method is updated automatically using the update_headers_and_create_cases.py script + */ void create_type_creator_functions() { - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionSequence); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnumLabel); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnum); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorAlias); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoundedWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoundedString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionArray); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(testing_2::foo); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(testing_1::foo); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(root2); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(root1); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(bar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Structures); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnion); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructShortArray); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructSequence); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructEnum); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructEmpty); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructChar8); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructChar16); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoundedWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoundedString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBitset); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBitMask); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructAlias); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(WStringStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StringStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SmallWStringStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SmallStringStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(LargeWStringStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(LargeStringStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWStringBounded); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceUnion); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceStringBounded); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceShortArray); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceSequence); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceEnum); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBitset); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBitMask); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceAlias); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallSequences); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBigSequences); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(WCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint8Struct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint64Struct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint32Struct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint16Struct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(UShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ULongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ULongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(OctetStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int8Struct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int64Struct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int32Struct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int16Struct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FloatStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(CharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BooleanStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_4_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_2_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_1_optional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructOptional); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableWCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableUnionStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableUShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableULongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableULongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableOctetStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableInheritanceEmptyStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableFloatStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableExtensibilityInheritance); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableEmptyStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableEmptyInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableBooleanStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixMix); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixId); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHexId); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHashidDefault); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHashid); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedEmptyAutoidSequential); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidSequential); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidHash); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidDefault); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidSequential); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidHash); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidDefault); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapWStringBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongKeyLongValue); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongKeyDoubleValue); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongKeyLongLongValue); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongKeyLongDoubleValue); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongLongValueDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedWStringHelperBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerUnionHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerEnumHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitsetHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedLargeMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedWCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedUShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedULongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedULongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedOctetStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedFloatStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedEmptyStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedEmptyInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedBooleanStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InheritanceKeyedEmptyStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructuresInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructAliasInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChildChild); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChild); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChildChild); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChild); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelperChild); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitsetsChildInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelper); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InheritanceEmptyStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalWCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalUnionStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalUShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalULongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalULongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalOctetStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalFloatStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalExtensibilityInheritance); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalEmptyStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalEmptyInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalBooleanStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_external); - types_without_typeobject_.insert("wchar_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_external); - types_without_typeobject_.insert("ushort_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_external); - types_without_typeobject_.insert("ulonglong_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_external); - types_without_typeobject_.insert("ulong_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_external_optional); - types_without_typeobject_.insert("struct_external_optional"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_external); - types_without_typeobject_.insert("struct_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_external); - types_without_typeobject_.insert("string_unbounded_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_external); - types_without_typeobject_.insert("string_bounded_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_external); - types_without_typeobject_.insert("short_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_external); - types_without_typeobject_.insert("sequence_short_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_union_container); - types_without_typeobject_.insert("recursive_union_container"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_test_2); - types_without_typeobject_.insert("recursive_test_2"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_test_1); - types_without_typeobject_.insert("recursive_test_1"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_structure); - types_without_typeobject_.insert("recursive_structure"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_external); - types_without_typeobject_.insert("octet_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_external); - types_without_typeobject_.insert("map_short_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_external); - types_without_typeobject_.insert("longlong_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_external); - types_without_typeobject_.insert("longdouble_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_external); - types_without_typeobject_.insert("long_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_external); - types_without_typeobject_.insert("float_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ext_struct_external); - types_without_typeobject_.insert("ext_struct_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ext_and_inner_struct_external); - types_without_typeobject_.insert("ext_and_inner_struct_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_external); - types_without_typeobject_.insert("double_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_external); - types_without_typeobject_.insert("char_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_external); - types_without_typeobject_.insert("boolean_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_external); - types_without_typeobject_.insert("array_short_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructExternal); - types_without_typeobject_.insert("InnerStructExternal"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(EnumStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitMaskStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); - types_without_typeobject_.insert("declarations_module__ModuledForwardStruct"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); - types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); - types_without_typeobject_.insert("ModuledCommonNameStructure"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ForwardStruct); - types_without_typeobject_.insert("ForwardStruct"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ForwardDeclarationsRecursiveStruct); - types_without_typeobject_.insert("ForwardDeclarationsRecursiveStruct"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(const_module2::Module2ConstsLiteralsStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(const_module1::ModuleConstsLiteralsStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ConstsLiteralsStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitsetStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallArrays); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBigArrays); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayUnion); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnion); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShortArray); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsSequence); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsEnum); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitset); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitMask); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsAlias); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayShortArray); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySequence); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUnion); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionSequence); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUnion); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsShort); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsSequence); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsEnum); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitSet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitMask); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsAlias); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionEnum); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitset); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitMask); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionAlias); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLongLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLongDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLong); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayFloat); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayEnum); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayDouble); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayChar); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoundedWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoundedString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoolean); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBitset); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBitMask); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayAlias); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableWCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableUnionStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableUShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableULongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableULongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableShortStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableOctetStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongLongStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableInheritanceEmptyStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableFloatStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableExtensibilityInheritance); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableEmptyStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableEmptyInheritanceStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableDoubleStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableCharStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableBooleanStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(EmptyAnnotatedStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AnnotatedStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUnion); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUint16); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUInt64); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUInt32); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasStruct); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasString8); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasString16); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasSequence); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasOctet); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasMultiArray); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasMap); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt64); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt32); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt16); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat64); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat32); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat128); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasEnum); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasChar8); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasChar16); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBool); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBitset); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBitmask); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasArray); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasAlias); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); - types_without_typeobject_.insert("TypeNoTypeObject"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeDep); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeBig); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type99); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type98); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type97); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type96); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type95); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type94); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type93); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type92); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type91); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type90); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type9); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type89); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type88); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type87); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type86); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type85); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type84); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type83); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type82); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type81); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type80); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type8); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type79); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type78); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type77); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type76); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type75); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type74); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type73); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type72); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type71); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type70); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type7); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type69); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type68); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type67); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type66); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type65); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type64); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type63); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type62); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type61); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type60); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type6); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type59); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type58); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type57); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type56); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type55); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type54); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type53); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type52); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type51); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type50); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type5); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type49); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type48); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type47); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type46); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type45); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type44); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type43); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type42); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type41); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type40); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type4); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type39); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type38); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type37); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type36); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type35); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type34); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type33); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type32); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type31); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type30); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type29); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type28); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type27); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type26); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type25); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type24); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type23); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type22); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type21); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type20); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type19); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type18); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type17); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type16); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type15); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type14); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type13); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type12); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type11); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type100); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type10); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type3); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type2); SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type1); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type2); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type3); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type10); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type100); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type11); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type12); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type13); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type14); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type15); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type17); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type18); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type19); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type20); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type21); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type22); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type23); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type24); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type25); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type26); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type27); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type28); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type29); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type30); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type31); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type33); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type34); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type35); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type36); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type37); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type38); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type39); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type4); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type40); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type41); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type42); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type43); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type44); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type45); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type46); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type47); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type48); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type49); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type5); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type50); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type51); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type52); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type53); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type54); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type55); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type56); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type57); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type58); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type59); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type6); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type60); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type61); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type62); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type63); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type65); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type66); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type67); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type68); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type69); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type7); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type70); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type71); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type72); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type73); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type74); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type75); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type76); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type77); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type78); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type79); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type80); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type81); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type82); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type83); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type84); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type85); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type86); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type87); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type88); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type89); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type9); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type90); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type91); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type92); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type93); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type94); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type95); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type96); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type97); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type98); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Type99); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeBig); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeDep); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(TypeNoTypeObject); + types_without_typeobject_.insert("TypeNoTypeObject"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBitmask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasBool); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasChar16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasChar8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat128); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasFloat64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasInt64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasMultiArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasString16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasString8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUInt32); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUInt64); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUint16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AliasUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BasicAnnotationsStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(EmptyAnnotatedStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableBooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableEmptyInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableExtensibilityInheritance); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableFloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableInheritanceEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableOctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableUShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableUnionStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AppendableWCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBitSet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLiteralsWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayMultiDimensionWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayShortArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsShortArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsUnsignedShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArraySingleDimensionLiteralsWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ArrayWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBigArrays); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallArrays); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitsetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ConstsLiteralsStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(const_module1::ModuleConstsLiteralsStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(const_module2::Module2ConstsLiteralsStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ForwardDeclarationsRecursiveStruct); + types_without_typeobject_.insert("ForwardDeclarationsRecursiveStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ForwardStruct); + types_without_typeobject_.insert("ForwardStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledCommonNameStructure); + types_without_typeobject_.insert("ModuledCommonNameStructure"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ModuledForwardDeclarationsRecursiveStruct); + types_without_typeobject_.insert("ModuledForwardDeclarationsRecursiveStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(declarations_module::ModuledForwardStruct); + types_without_typeobject_.insert("declarations_module__ModuledForwardStruct"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitMaskStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(EnumStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructExternal); + types_without_typeobject_.insert("InnerStructExternal"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_external); + types_without_typeobject_.insert("array_short_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_external); + types_without_typeobject_.insert("boolean_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_external); + types_without_typeobject_.insert("char_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_external); + types_without_typeobject_.insert("double_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ext_and_inner_struct_external); + types_without_typeobject_.insert("ext_and_inner_struct_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ext_struct_external); + types_without_typeobject_.insert("ext_struct_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_external); + types_without_typeobject_.insert("float_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_external); + types_without_typeobject_.insert("long_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_external); + types_without_typeobject_.insert("longdouble_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_external); + types_without_typeobject_.insert("longlong_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_external); + types_without_typeobject_.insert("map_short_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_external); + types_without_typeobject_.insert("octet_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_structure); + types_without_typeobject_.insert("recursive_structure"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_test_1); + types_without_typeobject_.insert("recursive_test_1"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_test_2); + types_without_typeobject_.insert("recursive_test_2"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_union_container); + types_without_typeobject_.insert("recursive_union_container"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_external); + types_without_typeobject_.insert("sequence_short_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_external); + types_without_typeobject_.insert("short_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_external); + types_without_typeobject_.insert("string_bounded_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_external); + types_without_typeobject_.insert("string_unbounded_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_external); + types_without_typeobject_.insert("struct_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_external_optional); + types_without_typeobject_.insert("struct_external_optional"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_external); + types_without_typeobject_.insert("ulong_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_external); + types_without_typeobject_.insert("ulonglong_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_external); + types_without_typeobject_.insert("ushort_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_external); + types_without_typeobject_.insert("wchar_external"); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalBooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalEmptyInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalExtensibilityInheritance); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalFloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalOctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalUShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalUnionStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalWCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InheritanceEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitsetsChildInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerEmptyStructureHelperChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperChildChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructureHelperEmptyChildChild); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructAliasInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructuresInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InheritanceKeyedEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedBooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedEmptyInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedFloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedOctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedUShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedWCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedLargeMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapInnerAliasBoundedStringHelperWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongLongValueDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapKeyULongValueLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongKeyLongDoubleValue); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongKeyLongLongValue); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongKeyDoubleValue); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongKeyLongValue); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongLongWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapLongWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapShortWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapStringWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongLongWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapULongWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasArrayHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasBoundedWStringHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasMapHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerAliasSequenceHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidDefault); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidHash); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidSequential); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidDefault); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidHash); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidSequential); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedEmptyAutoidSequential); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHashid); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHashidDefault); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHexId); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixId); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixMix); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableBooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableEmptyInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableExtensibilityInheritance); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableFloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableInheritanceEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableInheritanceStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableOctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableUShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableUnionStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableWCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructOptional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(opt_struct_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_1_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_2_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_align_4_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_optional); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BooleanStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(CharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(DoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(FloatStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int16Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int32Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int64Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Int8Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongDoubleStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(OctetStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ULongLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(ULongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UShortStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint16Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint32Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint64Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Uint8Struct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(WCharStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBigSequences); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedSmallSequences); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceShortArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceStringBounded); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SequenceWStringBounded); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LargeStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(LargeWStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SmallStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(SmallWStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(WStringStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBitMask); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBitset); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructChar16); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructChar8); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructEmpty); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructShortArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructStructure); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnion); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructUnsignedShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(Structures); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(bar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(root1); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(root2); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(testing_1::foo); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(testing_2::foo); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionArray); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoundedString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionBoundedWString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorAlias); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorBoolean); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnum); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorEnumLabel); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDiscriminatorWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionFloat); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerAliasHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerBitMaskHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerBitsetHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerEnumHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerStructureHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionInnerUnionHelper); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLongDouble); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionLongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionMap); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionOctet); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionString); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionULong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionULongLong); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionUShort); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionWChar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionWString); } }; diff --git a/test/dds/xtypes/TypesTestsCases/Cases_annotations.json b/test/dds/xtypes/TypesTestsCases/Cases_annotations.json index e7ee8142f71..5b4a374ea20 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_annotations.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_annotations.json @@ -1,7 +1,7 @@ { "test_cases": [ { - "TestCase": "Case_annotations_AnnotatedStruct", + "TestCase": "Case_annotations_BasicAnnotationsStruct", "participants": [ { "kind": "publisher", @@ -9,7 +9,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "AnnotatedStruct" + "BasicAnnotationsStruct" ] }, { diff --git a/test/dds/xtypes/TypesTestsCases/Cases_structures.json b/test/dds/xtypes/TypesTestsCases/Cases_structures.json index 3b75a7ce521..256dc785f04 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_structures.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_structures.json @@ -618,7 +618,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "testing_1::foo" + "testing_2::foo" ] }, { @@ -639,7 +639,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "testing_2::foo" + "testing_1::foo" ] }, { diff --git a/test/dds/xtypes/update_header_and_create_cases.py b/test/dds/xtypes/update_header_and_create_cases.py index df33860521b..1e14410e6bc 100644 --- a/test/dds/xtypes/update_header_and_create_cases.py +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -6,12 +6,14 @@ class IDLProcessor: def __init__(self): + self.structs_info = set() + # List of files to ignore self.files_to_ignore = {"relative_path_include.idl"} + # List of struct names to ignore + self.struct_names_to_ignore = ["MapWString*", "MapInnerAliasBoundedWStringHelper*", "AnnotatedStruct"] # List of IDL files that don't have a TypeObject self.idl_without_typeobjects = {"XtypesTestsTypeNoTypeObject", "declarations", "external"} - self.struct_info = set() - def extract_structures(self, idl_text): # Regular expressions for module and struct extraction @@ -55,14 +57,14 @@ def process_idl_files(self, idls_path): # Store struct information along with the IDL file name and module name for module_name, structures in module_structures.items(): for structure in structures: - self.struct_info.add((structure[0], idl_file_name, module_name, idls_path)) + self.structs_info.add((structure[0], idl_file_name, module_name, idls_path)) # Store struct information for structures outside modules for structure in outside_structures: - self.struct_info.add((structure[0], idl_file_name, "", idls_path)) + self.structs_info.add((structure[0], idl_file_name, "", idls_path)) -def create_case_files(struct_info): +def create_case_files(structs_info, struct_names_to_ignore): # Create 'Cases' folder if it doesn't exist cases_folder = os.path.join(os.path.dirname(__file__), 'TypesTestsCases') if not os.path.exists(cases_folder): @@ -71,15 +73,12 @@ def create_case_files(struct_info): # Aggregate test cases for each IDL file idl_test_cases = {} - for struct_name, idl_file_name, module_name, idls_path in struct_info: + for struct_name, idl_file_name, module_name, idls_path in structs_info: if idls_path != "BaseCasesIDLs/": if idl_file_name not in idl_test_cases: idl_test_cases[idl_file_name] = [] - # Ignore cases for maps that use WString as keys - if (not fnmatch.fnmatch(struct_name, "MapWString*") and not - fnmatch.fnmatch(struct_name, "MapInnerAliasBoundedWStringHelper*")): - + if not any(fnmatch.fnmatch(struct_name, pattern) for pattern in struct_names_to_ignore): known_types = [struct_name] if module_name: known_types = [f"{module_name}::{struct_name}"] @@ -117,7 +116,7 @@ def create_case_files(struct_info): print(f"Created case file: {file_path}") -def update_types_header_file(struct_info, typecode_path): +def update_types_header_file(structs_info, typecode_path): # Update types header file with necessary includes header_file_path = os.path.join(os.path.dirname(__file__), 'TypeLookupServiceTestsTypes.h') @@ -131,7 +130,7 @@ def update_types_header_file(struct_info, typecode_path): # Add new include lines before the #endif directive new_include_lines = set() - for _, idl_file_name, _, idls_path in struct_info: + for _, idl_file_name, _, idls_path in structs_info: if idls_path != "BaseCasesIDLs/": include_line = f'#include "{typecode_path}{idl_file_name}PubSubTypes.h"\n' new_include_lines.add(include_line) @@ -147,7 +146,7 @@ def update_types_header_file(struct_info, typecode_path): print(f"Header file '{header_file_path}' updated successfully.") -def update_participant_headers_file(file_name, macro_name, struct_info, idl_without_typeobjects): +def update_participant_headers_file(file_name, macro_name, structs_info, struct_names_to_ignore, idl_without_typeobjects): # Update participant header file with necessary macros and type information script_dir = os.path.dirname(os.path.abspath(__file__)) file_path = os.path.join(script_dir, file_name) @@ -162,7 +161,7 @@ def update_participant_headers_file(file_name, macro_name, struct_info, idl_with # Find the function declaration where macros need to be inserted func_declaration = re.search(r'(void\s+create_type_creator_functions\(\)\s*{[\s\S]*?})', content) if func_declaration: - updated_func = insert_macros(func_declaration.group(1), macro_name, struct_info, idl_without_typeobjects) + updated_func = insert_macros(func_declaration.group(1), macro_name, structs_info, struct_names_to_ignore, idl_without_typeobjects) content = content.replace(func_declaration.group(1), updated_func) with open(temp_file_path, 'w') as file: @@ -173,7 +172,7 @@ def update_participant_headers_file(file_name, macro_name, struct_info, idl_with print(f"Type lookup file '{file_name}' updated successfully.") -def insert_macros(func_declaration, macro_name, struct_info, idl_without_typeobjects): +def insert_macros(func_declaration, macro_name, structs_info, struct_names_to_ignore, idl_without_typeobjects): # Insert macros into the function declaration lines = func_declaration.split('\n') lines = [line for line in lines if not re.match(rf'\s*{macro_name}\((\w+|\w+::\w+)\);', line)] # Remove existing macro lines @@ -181,28 +180,29 @@ def insert_macros(func_declaration, macro_name, struct_info, idl_without_typeobj idx = updated_func.rfind(' }') if idx != -1: - struct_info = sorted(list(struct_info), key=lambda x: (x[1], x[2], x[0])) # Sort struct_info alphabetically - for struct_name, idl_file_name, module_name, _ in struct_info: - if idl_file_name in idl_without_typeobjects: - if module_name: - updated_func = (updated_func[:idx] + - f" {macro_name}({module_name}::{struct_name});\n" - f" types_without_typeobject_.insert(\"{module_name}__{struct_name}\");\n" + - updated_func[idx:]) - else: - updated_func = (updated_func[:idx] + - f" {macro_name}({struct_name});\n" - f" types_without_typeobject_.insert(\"{struct_name}\");\n" + - updated_func[idx:]) - else: - if module_name: - updated_func = (updated_func[:idx] + - f" {macro_name}({module_name}::{struct_name});\n" + - updated_func[idx:]) + structs_info = sorted(list(structs_info), key=lambda x: (x[1], x[2], x[0]), reverse=True) # Sort structs_info alphabetically + for struct_name, idl_file_name, module_name, _ in structs_info: + if not any(fnmatch.fnmatch(struct_name, pattern) for pattern in struct_names_to_ignore): + if idl_file_name in idl_without_typeobjects: + if module_name: + updated_func = (updated_func[:idx] + + f" {macro_name}({module_name}::{struct_name});\n" + f" types_without_typeobject_.insert(\"{module_name}__{struct_name}\");\n" + + updated_func[idx:]) + else: + updated_func = (updated_func[:idx] + + f" {macro_name}({struct_name});\n" + f" types_without_typeobject_.insert(\"{struct_name}\");\n" + + updated_func[idx:]) else: - updated_func = (updated_func[:idx] + - f" {macro_name}({struct_name});\n" + - updated_func[idx:]) + if module_name: + updated_func = (updated_func[:idx] + + f" {macro_name}({module_name}::{struct_name});\n" + + updated_func[idx:]) + else: + updated_func = (updated_func[:idx] + + f" {macro_name}({struct_name});\n" + + updated_func[idx:]) return updated_func @@ -222,6 +222,7 @@ def delete_files_in_cases_folder(): def main(): if len(sys.argv) != 3: + print("This script updates the header files and creates cases files to test the BasesCasesIDL and all the structures found in the IDL files in a given path.") print("Usage: update_header_and_create_cases.py ") print("Example: python3 update_header_and_create_cases.py ../../../thirdparty/dds-types-test/IDL/ ../../dds-types-test/") return @@ -239,18 +240,18 @@ def main(): processor.process_idl_files("BaseCasesIDLs/") processor.process_idl_files(idls_path) - if not processor.struct_info: + if not processor.structs_info: print("No structures found in the IDL files.") return delete_files_in_cases_folder() - create_case_files(processor.struct_info) - update_types_header_file(processor.struct_info, typecode_path) + create_case_files(processor.structs_info, processor.struct_names_to_ignore) + update_types_header_file(processor.structs_info, typecode_path) update_participant_headers_file("TypeLookupServicePublisher.h", "PUBLISHER_TYPE_CREATOR_FUNCTION", - processor.struct_info, processor.idl_without_typeobjects) + processor.structs_info, processor.struct_names_to_ignore, processor.idl_without_typeobjects) update_participant_headers_file("TypeLookupServiceSubscriber.h", "SUBSCRIBER_TYPE_CREATOR_FUNCTION", - processor.struct_info, processor.idl_without_typeobjects) + processor.structs_info, processor.struct_names_to_ignore, processor.idl_without_typeobjects) if __name__ == "__main__": From b28b9fb814dcb538d4e8411333f5c5fe63fc9ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Thu, 30 May 2024 09:21:33 +0200 Subject: [PATCH 27/45] Refs #20165. Return typelookupservice unit tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../TypeLookupReplyListener.cpp | 108 +++++--- .../TypeLookupRequestListener.cpp | 10 + src/cpp/rtps/builtin/data/WriterProxyData.cpp | 4 +- .../TypeObjectRegistry.hpp | 69 ----- .../rtps/participant/RTPSParticipantImpl.h | 2 +- .../rtps/builtin/data/ReaderProxyData.hpp | 1 + .../type_lookup_service/TypeLookupManager.hpp | 8 +- .../TypeObjectRegistry.hpp | 113 ++++++++ .../type_representation/TypeObjectUtils.hpp | 4 +- test/unittest/CMakeLists.txt | 1 + .../xtypes/type_lookup_service/CMakeLists.txt | 150 +--------- .../TypeLookupServiceTests.cpp | 260 +++++++++++------- test/unittest/rtps/builtin/CMakeLists.txt | 4 +- test/unittest/rtps/network/CMakeLists.txt | 6 +- test/unittest/xmlparser/CMakeLists.txt | 28 +- thirdparty/fastcdr | 2 +- 16 files changed, 388 insertions(+), 382 deletions(-) delete mode 100644 test/mock/dds/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp create mode 100644 test/mock/xtypes/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp rename test/mock/{dds => xtypes}/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp (93%) diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp index 9aab02e8f5c..940cbe0b516 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp @@ -106,15 +106,21 @@ void TypeLookupReplyListener::process_reply() { case TypeLookup_getTypes_HashId: { - check_get_types_reply(reply.header().relatedRequestId(), - reply.return_value().getType().result(), reply.header().relatedRequestId()); + if (RETCODE_OK == reply.return_value().getType()._d()) + { + check_get_types_reply(reply.header().relatedRequestId(), + reply.return_value().getType().result(), reply.header().relatedRequestId()); + } break; } case TypeLookup_getDependencies_HashId: { - check_get_type_dependencies_reply( - reply.header().relatedRequestId(), replies_queue_.front().type_server, - reply.return_value().getTypeDependencies().result()); + if (RETCODE_OK == reply.return_value().getTypeDependencies()._d()) + { + check_get_type_dependencies_reply( + reply.header().relatedRequestId(), replies_queue_.front().type_server, + reply.return_value().getTypeDependencies().result()); + } break; } default: @@ -140,57 +146,69 @@ void TypeLookupReplyListener::check_get_types_reply( if (requests_it != typelookup_manager_->async_get_type_requests_.end()) { ReturnCode_t register_result = RETCODE_OK; - for (xtypes::TypeIdentifierTypeObjectPair pair : reply.types()) - { - xtypes::TypeIdentifierPair type_ids; - type_ids.type_identifier1(pair.type_identifier()); - if (RETCODE_OK != fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). - register_type_object(pair.type_object(), type_ids, false)) - { - // If any of the types is not registered, log error - EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, - "Error registering remote type"); - register_result = RETCODE_ERROR; - } - } - if (RETCODE_OK == register_result) + if (0 != reply.types().size()) { - // Check if the get_type_dependencies related to this reply required a continuation_point - std::unique_lock guard(replies_with_continuation_mutex_); - auto it = std::find(replies_with_continuation_.begin(), replies_with_continuation_.end(), related_request); - if (it != replies_with_continuation_.end()) + for (xtypes::TypeIdentifierTypeObjectPair pair : reply.types()) { - // If it did, remove it from the list and continue - replies_with_continuation_.erase(it); + xtypes::TypeIdentifierPair type_ids; + type_ids.type_identifier1(pair.type_identifier()); + if (RETCODE_OK != fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). + register_type_object(pair.type_object(), type_ids, false)) + { + // If any of the types is not registered, log error + EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, + "Error registering remote type."); + register_result = RETCODE_ERROR; + } } - else + + if (RETCODE_OK == register_result) { - // If it did not, check that the type that originated the request is consistent - // before notifying the callbacks associated with the request - try + // Check if the get_type_dependencies related to this reply required a continuation_point + std::unique_lock guard(replies_with_continuation_mutex_); + auto it = std::find(replies_with_continuation_.begin(), + replies_with_continuation_.end(), related_request); + if (it != replies_with_continuation_.end()) { - xtypes::TypeObject type_object; - fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().get_type_object( - requests_it->second.type_id(), type_object); - xtypes::TypeObjectUtils::type_object_consistency(type_object); - xtypes::TypeIdentifierPair type_ids; - if (RETCODE_OK != fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). - register_type_object(type_object, type_ids, true)) - { - EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, - "Cannot register minimal of remote type"); - } - - typelookup_manager_->notify_callbacks(requests_it->second); + // If it did, remove it from the list and continue + replies_with_continuation_.erase(it); } - catch (const std::exception& exception) + else { - EPROSIMA_LOG_ERROR(TYPELOOKUP_SERVICE_REPLY_LISTENER, - "Error registering remote type: " << exception.what()); + // If it did not, check that the type that originated the request is consistent + // before notifying the callbacks associated with the request + try + { + xtypes::TypeObject type_object; + fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().get_type_object( + requests_it->second.type_id(), type_object); + xtypes::TypeObjectUtils::type_object_consistency(type_object); + xtypes::TypeIdentifierPair type_ids; + if (RETCODE_OK != + fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). + register_type_object(type_object, type_ids, true)) + { + EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, + "Cannot register minimal of remote type"); + } + + typelookup_manager_->notify_callbacks(requests_it->second); + } + catch (const std::exception& exception) + { + EPROSIMA_LOG_ERROR(TYPELOOKUP_SERVICE_REPLY_LISTENER, + "Error registering remote type: " << exception.what()); + } } } } + else + { + EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, + "Reply no contains any type."); + register_result = RETCODE_ERROR; + } // Remove the processed SampleIdentity from the outstanding requests typelookup_manager_->remove_async_get_type_request(request_id); diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp index 6a5c800f3aa..f022851655a 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp @@ -207,6 +207,12 @@ void TypeLookupRequestListener::check_get_types_request( xtypes::TypeIdentifier complete_id; xtypes::TypeIdentifier minimal_id; + if (0 == request.type_ids().size()) + { + EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, + "Request no contains any type identifier."); + } + // Iterate through requested type_ids for (const xtypes::TypeIdentifier& type_id : request.type_ids()) { @@ -317,6 +323,10 @@ void TypeLookupRequestListener::check_get_type_dependencies_request( } } } + else + { + EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, "Type dependencies request is empty."); + } // Handle the result based on the type_dependencies_result if (RETCODE_OK == type_dependencies_result) diff --git a/src/cpp/rtps/builtin/data/WriterProxyData.cpp b/src/cpp/rtps/builtin/data/WriterProxyData.cpp index 857668b00a9..225f5c10bf0 100644 --- a/src/cpp/rtps/builtin/data/WriterProxyData.cpp +++ b/src/cpp/rtps/builtin/data/WriterProxyData.cpp @@ -947,13 +947,13 @@ bool WriterProxyData::readFromCDRMessage( case fastdds::dds::PID_TYPE_IDV1: { EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, - "Reception of TypeIdentifiers is not supported. They will be ignored"); + "Reception of TypeIdentifiers is not supported. They will be ignored."); break; } case fastdds::dds::PID_TYPE_OBJECTV1: { EPROSIMA_LOG_WARNING(RTPS_PROXY_DATA, - "Reception of TypeObjects is not supported. They will be ignored"); + "Reception of TypeObjects is not supported. They will be ignored."); break; } case fastdds::dds::PID_TYPE_INFORMATION: diff --git a/test/mock/dds/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/test/mock/dds/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp deleted file mode 100644 index cddf755fedb..00000000000 --- a/test/mock/dds/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp +++ /dev/null @@ -1,69 +0,0 @@ -// 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. -// 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 - * This file contains the required classes to keep a TypeObject/TypeIdentifier registry. - */ - -#ifndef FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION__TYPEOBJECTREGISTRY_HPP -#define FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION__TYPEOBJECTREGISTRY_HPP - -#include -#include -#include - -namespace eprosima { -namespace fastdds { -namespace dds { -namespace xtypes { - -class ITypeObjectRegistry -{ -}; - -class TypeObjectRegistry : public ITypeObjectRegistry -{ -public: - - ReturnCode_t get_type_object( - const TypeIdentifier&, - TypeObject&) - { - return fastdds::dds::RETCODE_OK; - } - - ReturnCode_t register_typeobject_w_dynamic_type( - const DynamicType::_ref_type&, - TypeIdentifierPair&) - { - return fastdds::dds::RETCODE_OK; - } - - ReturnCode_t get_type_information( - const TypeIdentifierPair&, - TypeInformation&, - bool = false) - { - return fastdds::dds::RETCODE_OK; - } - -}; - -} // namespace xtypes -} // namespace dds -} // namespace fastdds -} // namespace eprosima - -#endif // FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION__TYPEOBJECTREGISTRY_HPP diff --git a/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h b/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h index c7d9108af7b..2b367219b3c 100644 --- a/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h +++ b/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h @@ -428,7 +428,7 @@ class RTPSParticipantImpl NetworkFactory network_factory_ {attr_}; - ResourceEvent events_; + ::testing::NiceMock events_; std::map endpoints_; diff --git a/test/mock/rtps/ReaderProxyData/rtps/builtin/data/ReaderProxyData.hpp b/test/mock/rtps/ReaderProxyData/rtps/builtin/data/ReaderProxyData.hpp index 554adccbddf..a7ce8cd7086 100644 --- a/test/mock/rtps/ReaderProxyData/rtps/builtin/data/ReaderProxyData.hpp +++ b/test/mock/rtps/ReaderProxyData/rtps/builtin/data/ReaderProxyData.hpp @@ -142,6 +142,7 @@ class ReaderProxyData bool readFromCDRMessage( CDRMessage_t* /*msg*/, NetworkFactory& /*network*/, + bool /*should_filter_locators*/, fastdds::rtps::VendorId_t /*source_vendor_id*/) { return true; diff --git a/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp b/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp index a1a93fa72b6..74c32cb751d 100644 --- a/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp +++ b/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp @@ -35,6 +35,7 @@ #include #include +#include #include namespace std { @@ -105,7 +106,7 @@ class WriterHistory; namespace dds { namespace builtin { -extern const fastdds::rtps::SampleIdentity INVALID_SAMPLE_IDENTITY; +const SampleIdentity INVALID_SAMPLE_IDENTITY; using AsyncGetTypeWriterCallback = std::function< void (eprosima::ProxyPool::smart_ptr&)>; @@ -185,6 +186,11 @@ class TypeLookupManager fastdds::rtps::CacheChange_t*)); // *INDENT-ON* + xtypes::TypeKind get_type_kind_to_propagate() const + { + return xtypes::EK_COMPLETE; + } + fastdds::rtps::RTPSParticipantImpl* participant_ = nullptr; std::unordered_map async_get_type_requests_; diff --git a/test/mock/xtypes/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/test/mock/xtypes/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp new file mode 100644 index 00000000000..9e50000d6ec --- /dev/null +++ b/test/mock/xtypes/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp @@ -0,0 +1,113 @@ +// 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. +// 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 + * This file contains the required classes to keep a TypeObject/TypeIdentifier registry. + */ + +#ifndef _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ +#define _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ + +#include + +#include + +#include +#include +#include + +namespace std { +template<> +struct hash +{ + std::size_t operator ()( + const eprosima::fastdds::dds::xtypes::TypeIdentifier& k) const + { + // The collection only has direct hash TypeIdentifiers so the EquivalenceHash can be used. + return (static_cast(k.equivalence_hash()[0]) << 16) | + (static_cast(k.equivalence_hash()[1]) << 8) | + (static_cast(k.equivalence_hash()[2])); + } + +}; + +} // std + +namespace eprosima { +namespace fastdds { +namespace dds { +namespace xtypes { + +class TypeObjectRegistry : public ITypeObjectRegistry +{ +public: + + MOCK_METHOD(const TypeIdentifier, get_complementary_type_identifier, ( + const TypeIdentifier& /*type_id*/)); + + MOCK_METHOD(ReturnCode_t, get_type_dependencies, ( + const TypeIdentifierSeq& /*type_identifiers*/, + std::unordered_set& /*type_dependencies*/)); + + MOCK_METHOD(ReturnCode_t, get_type_identifiers, ( + const std::string& /*type_name*/, + TypeIdentifierPair & /*type_identifiers*/), (override)); + + MOCK_METHOD(ReturnCode_t, get_type_object, ( + const TypeIdentifier& /*type_identifier*/, + TypeObject & /*type_object*/), (override)); + + MOCK_METHOD(ReturnCode_t, get_type_objects, ( + const std::string& /*type_name*/, + TypeObjectPair & /*type_objects*/), (override)); + + MOCK_METHOD(ReturnCode_t, register_type_identifier, ( + const std::string& /*type_name*/, + TypeIdentifierPair & /*type_identifier*/), (override)); + + MOCK_METHOD(ReturnCode_t, register_type_object, ( + const std::string& /*type_name*/, + const CompleteTypeObject& /*complete_type_object*/, + TypeIdentifierPair & /*type_ids*/), (override)); + + MOCK_METHOD(ReturnCode_t, register_type_object, ( + const TypeObject& type_object, + TypeIdentifierPair & type_identifier), (override)); + + MOCK_METHOD(ReturnCode_t, register_type_object, ( + const TypeObject& type_object, + TypeIdentifierPair& /*type_identifier*/, + bool build_minimal)); + + MOCK_METHOD(ReturnCode_t, register_typeobject_w_dynamic_type, ( + const DynamicType::_ref_type& /*dynamic_type*/, + TypeIdentifierPair & /*type_ids*/), (override)); + + MOCK_METHOD(bool, is_type_identifier_known, ( + const TypeIdentfierWithSize& /*type_identifier_with_size*/)); + + MOCK_METHOD(ReturnCode_t, get_type_information, ( + const TypeIdentifierPair& /*type_ids*/, + TypeInformation& /*type_information*/, + bool /*with_dependencies*/), (override)); + +}; + +} // xtypes +} // dds +} // fastdds +} // eprosima + +#endif // _FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION_TYPEOBJECTREGISTRY_HPP_ diff --git a/test/mock/dds/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp b/test/mock/xtypes/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp similarity index 93% rename from test/mock/dds/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp rename to test/mock/xtypes/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp index 84b7881c759..0cbfb8ebbfe 100644 --- a/test/mock/dds/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp +++ b/test/mock/xtypes/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp @@ -20,8 +20,6 @@ #ifndef FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION__TYPEOBJECTUTILS_HPP #define FASTDDS_DDS_XTYPES_TYPE_REPRESENTATION__TYPEOBJECTUTILS_HPP -#include - namespace eprosima { namespace fastdds { namespace dds { @@ -32,7 +30,7 @@ class TypeObjectUtils public: static void type_object_consistency( - const TypeObject&) + const TypeObject& /*type_object*/) { } diff --git a/test/unittest/CMakeLists.txt b/test/unittest/CMakeLists.txt index 0a8556273aa..743d7d4adce 100644 --- a/test/unittest/CMakeLists.txt +++ b/test/unittest/CMakeLists.txt @@ -24,6 +24,7 @@ add_subdirectory(dds/subscriber) add_subdirectory(dds/topic) add_subdirectory(dds/topic/DDSSQLFilter) add_subdirectory(dds/xtypes/serializers) +add_subdirectory(dds/xtypes/type_lookup_service) add_subdirectory(dds/xtypes/type_representation) add_subdirectory(fastdds/utils) add_subdirectory(logging) diff --git a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt index a173e960256..5b06aa2a8b5 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt +++ b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt @@ -15,137 +15,35 @@ file(GLOB DDSSQLFILTER_SOURCES ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/DDSSQLFilter/*.cpp) set(TYPELOOKUPSERVICETESTS_SOURCE TypeLookupServiceTests.cpp -${DDSSQLFILTER_SOURCES} ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/Condition.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/ConditionNotifier.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/StatusCondition.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/StatusConditionImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/WaitSetImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/Entity.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/policy/ParameterList.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/policy/QosPolicyUtils.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/DomainParticipant.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/DomainParticipantFactory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/DomainParticipantImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/qos/DomainParticipantFactoryQos.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/domain/qos/DomainParticipantQos.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/FileConsumer.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/Log.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/OStreamConsumer.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutConsumer.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutErrConsumer.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/DataWriter.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/DataWriterHistory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/DataWriterImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/Publisher.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/PublisherImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/qos/DataWriterQos.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/qos/PublisherQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/Time_t.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/qos/WriterQos.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/DataReader.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/DataReaderImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/history/DataReaderHistory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/qos/DataReaderQos.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/qos/ReaderQos.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/qos/SubscriberQos.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/ReadCondition.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/Subscriber.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/SubscriberImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/ContentFilteredTopic.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/ContentFilteredTopicImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/qos/TopicQos.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/Topic.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TopicDataType.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TopicImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TopicProxyFactory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/topic/TypeSupport.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/utils/QosConverters.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataFactory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataFactoryImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicDataImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicPubSubType.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactory.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactoryImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeMemberImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/TypeDescriptorImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/dynamic_types/VerbatimTextDescriptorImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/exception/Exception.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/PropertyPolicy.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/ThreadSettings.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ReaderProxyData.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/WriterProxyData.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/GuidPrefix_t.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/LocatorWithMask.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/SerializedPayload.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Time_t.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/flowcontrol/FlowControllerConsts.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/flowcontrol/ThroughputControllerDescriptor.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/CacheChangePool.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/TopicPayloadPool.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/history/TopicPayloadPoolRegistry.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/transport/PortBasedTransportDescriptor.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLDynamicParser.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLElementParser.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLParser.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLParserCommon.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/xmlparser/XMLProfileManager.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/fastdds/domain/DomainParticipant.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/fastdds/publisher/qos/DataWriterQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/messages/CDRMessage.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/network/utils/network.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/IPFinder.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/IPLocator.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/md5.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/utils/string_convert.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/SystemInfo.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/utils/TimedConditionVariable.cpp ) -if (FASTDDS_STATISTICS) - - set(statistics_sources - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/fastdds/domain/DomainParticipantStatisticsListener.cpp - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.cxx - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesTypeObjectSupport.cxx - ) - - list(APPEND TYPELOOKUPSERVICETESTS_SOURCE ${statistics_sources}) - -endif() - -# External sources -if(TINYXML2_SOURCE_DIR) - list(APPEND TYPELOOKUPSERVICETESTS_SOURCE - ${TINYXML2_SOURCE_DIR}/tinyxml2.cpp - ) -endif() - -# Only include tinyxml2 headers manually if the associated config predates the use of CMake targets -if(TINYXML2_INCLUDE_DIR) - include_directories(${TINYXML2_INCLUDE_DIR}) -endif(TINYXML2_INCLUDE_DIR) - if(WIN32) add_definitions(-D_WIN32_WINNT=0x0601) endif() -if(ANDROID) - if (ANDROID_NATIVE_API_LEVEL LESS 24) - list(APPEND TYPELOOKUPSERVICETESTS_SOURCE - ${ANDROID_IFADDRS_SOURCE_DIR}/ifaddrs.c - ) - endif() -endif() - add_executable(TypeLookupServiceTests ${TYPELOOKUPSERVICETESTS_SOURCE}) target_compile_definitions(TypeLookupServiceTests PRIVATE BOOST_ASIO_STANDALONE @@ -158,51 +56,31 @@ target_compile_definitions(TypeLookupServiceTests PRIVATE $<$:_ENABLE_ATOMIC_ALIGNMENT_FIX> ) target_include_directories(TypeLookupServiceTests PUBLIC - ${Asio_INCLUDE_DIR} - ${PROJECT_SOURCE_DIR}/test/mock/rtps/BuiltinProtocols - ${PROJECT_SOURCE_DIR}/test/mock/rtps/DataSharingPayloadPool + ${PROJECT_SOURCE_DIR}/test/mock/rtps/Endpoint ${PROJECT_SOURCE_DIR}/test/mock/rtps/NetworkFactory ${PROJECT_SOURCE_DIR}/test/mock/rtps/ReaderHistory ${PROJECT_SOURCE_DIR}/test/mock/rtps/ResourceEvent ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomain ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomainImpl - ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSParticipant - ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSParticipantAttributes ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSParticipantImpl ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSReader ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSWriter - ${PROJECT_SOURCE_DIR}/test/mock/rtps/SharedMemTransportDescriptor ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatefulReader ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatefulWriter - ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPv4TransportDescriptor - ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPv6TransportDescriptor - ${PROJECT_SOURCE_DIR}/test/mock/rtps/TimedEvent - ${PROJECT_SOURCE_DIR}/test/mock/rtps/TypeLookupManager - ${PROJECT_SOURCE_DIR}/test/mock/rtps/UDPTransportDescriptor - ${PROJECT_SOURCE_DIR}/test/mock/rtps/UDPv4TransportDescriptor - ${PROJECT_SOURCE_DIR}/test/mock/rtps/UDPv6TransportDescriptor - ${PROJECT_SOURCE_DIR}/test/mock/rtps/WLP ${PROJECT_SOURCE_DIR}/test/mock/rtps/WriterHistory - ${PROJECT_SOURCE_DIR}/test/mock/rtps/XMLEndPointParser - ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPTransportDescriptor + ${PROJECT_SOURCE_DIR}/test/mock/rtps/TypeLookupManager + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectRegistry + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectUtils ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp - ${THIRDPARTY_BOOST_INCLUDE_DIR} - ${PROJECT_SOURCE_DIR}/thirdparty/taocpp-pegtl ) -target_link_libraries(TypeLookupServiceTests fastcdr foonathan_memory - ${TINYXML2_LIBRARY} +target_link_libraries(TypeLookupServiceTests + fastcdr + fastdds::log + foonathan_memory GTest::gmock ${CMAKE_DL_LIBS} - ${THIRDPARTY_BOOST_LINK_LIBS} ) -if(QNX) - target_link_libraries(TypeLookupServiceTests socket) -endif() -if(MSVC OR MSVC_IDE) - target_link_libraries(TypeLookupServiceTests iphlpapi Shlwapi ws2_32) -endif() - gtest_discover_tests(TypeLookupServiceTests) diff --git a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp index d72fe535fc2..9214e25befd 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp +++ b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp @@ -16,41 +16,29 @@ #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include #include -#include + #include +#include +#include #include using ::testing::Mock; +using ::testing::NiceMock; using ::testing::_; -using eprosima::fastrtps::rtps::RTPSDomain; using namespace eprosima::fastdds::dds::builtin; using namespace eprosima::fastdds::dds::xtypes; -using namespace eprosima::fastrtps::rtps; +using namespace eprosima::fastdds::rtps; namespace eprosima { - -namespace fastrtps { -namespace rtps { -class RTPSDomain; - -RTPSReader* RTPSDomain::reader_ = nullptr; -RTPSWriter* RTPSDomain::writer_ = nullptr; -RTPSParticipant* RTPSDomain::participant_ = nullptr; -} //namespace rtps -} //namespace fastrtps - namespace fastdds { namespace dds { @@ -268,11 +256,11 @@ class MockTypeLookupReplyListener : public TypeLookupReplyListener { } - void onNewCacheChangeAdded( - fastrtps::rtps::RTPSReader* reader_, - const fastrtps::rtps::CacheChange_t* const change) + void on_new_cache_change_added( + fastdds::rtps::RTPSReader* reader_, + const fastdds::rtps::CacheChange_t* const change) { - TypeLookupReplyListener::onNewCacheChangeAdded(reader_, change); + TypeLookupReplyListener::on_new_cache_change_added(reader_, change); } void process_reply() @@ -308,12 +296,12 @@ class MockTypeLookupRequestListener : public TypeLookupRequestListener { } - void onNewCacheChangeAdded( - fastrtps::rtps::RTPSReader* reader_, - const fastrtps::rtps::CacheChange_t* const change) + void on_new_cache_change_added( + fastdds::rtps::RTPSReader* reader_, + const fastdds::rtps::CacheChange_t* const change) { // Call the private method indirectly through the public interface - TypeLookupRequestListener::onNewCacheChangeAdded(reader_, change); + TypeLookupRequestListener::on_new_cache_change_added(reader_, change); } void process_requests() @@ -321,7 +309,7 @@ class MockTypeLookupRequestListener : public TypeLookupRequestListener TypeLookupRequestListener::process_requests(); } - std::queue* get_requests_queue() + std::queue>* get_requests_queue() { return &requests_queue_; } @@ -341,14 +329,12 @@ class MockTypeLookupRequestListener : public TypeLookupRequestListener class TypeLookupServiceTests : public ::testing::Test { - protected: void SetUp() override { - RTPSParticipantImpl participant; tlm_ = new TypeLookupManager(); - tlm_->participant_ = &participant; + tlm_->participant_ = &participant_; reply_listener_ = new MockTypeLookupReplyListener(tlm_); request_listener_ = new MockTypeLookupRequestListener(tlm_); @@ -359,6 +345,7 @@ class TypeLookupServiceTests : public ::testing::Test void TearDown() override { + delete stateful_reader_.history_; delete reply_listener_; delete request_listener_; delete tlm_; @@ -370,7 +357,9 @@ class TypeLookupServiceTests : public ::testing::Test NetworkFactory network_factory_; ReaderProxyData reader_proxy_{0, 0}; WriterProxyData writer_proxy_{0, 0}; - StatefulReader stateful_reader_; + NiceMock participant_; + NiceMock stateful_reader_; + TypeObjectRegistry& registry {RTPSDomainImpl::get_instance()->type_object_registry_observer()}; }; MockLogConsumer* setup_expect_log_msg( @@ -390,13 +379,14 @@ MockLogConsumer* setup_expect_log_msg( TEST_F(TypeLookupServiceTests, ReaderProxyData_PID_TYPE_IDV1) { MockLogConsumer* log_consumer = - setup_expect_log_msg("RTPS_PROXY_DATA", "PID_TYPE_IDV1 not supported"); + setup_expect_log_msg("RTPS_PROXY_DATA", + "Reception of TypeIdentifiers is not supported. They will be ignored."); CDRMessage_t msg(0); msg.init(typeid_msg_buffer, static_cast(sizeof(typeid_msg_buffer))); msg.length = msg.max_size; - ASSERT_TRUE(reader_proxy_.readFromCDRMessage(&msg, network_factory_, false, true)); + ASSERT_TRUE(reader_proxy_.readFromCDRMessage(&msg, network_factory_, true, c_VendorId_eProsima)); Log::Flush(); EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); @@ -405,13 +395,14 @@ TEST_F(TypeLookupServiceTests, ReaderProxyData_PID_TYPE_IDV1) TEST_F(TypeLookupServiceTests, WriterProxyData_PID_TYPE_IDV1) { MockLogConsumer* log_consumer = - setup_expect_log_msg("RTPS_PROXY_DATA", "PID_TYPE_IDV1 not supported"); + setup_expect_log_msg("RTPS_PROXY_DATA", + "Reception of TypeIdentifiers is not supported. They will be ignored."); CDRMessage_t msg(0); msg.init(typeid_msg_buffer, static_cast(sizeof(typeid_msg_buffer))); msg.length = msg.max_size; - ASSERT_TRUE(writer_proxy_.readFromCDRMessage(&msg, network_factory_, false, true)); + ASSERT_TRUE(writer_proxy_.readFromCDRMessage(&msg, network_factory_, true, c_VendorId_eProsima)); Log::Flush(); EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); @@ -420,13 +411,13 @@ TEST_F(TypeLookupServiceTests, WriterProxyData_PID_TYPE_IDV1) TEST_F(TypeLookupServiceTests, ReaderProxyData_PID_TYPE_OBJECTV1) { MockLogConsumer* log_consumer = - setup_expect_log_msg("RTPS_PROXY_DATA", "PID_TYPE_OBJECTV1 not supported"); + setup_expect_log_msg("RTPS_PROXY_DATA", "Reception of TypeObjects is not supported. They will be ignored."); CDRMessage_t msg(0); msg.init(typeobject_msg_buffer, static_cast(sizeof(typeobject_msg_buffer))); msg.length = msg.max_size; - ASSERT_TRUE(reader_proxy_.readFromCDRMessage(&msg, network_factory_, false, true)); + ASSERT_TRUE(reader_proxy_.readFromCDRMessage(&msg, network_factory_, true, c_VendorId_eProsima)); Log::Flush(); EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); @@ -435,13 +426,13 @@ TEST_F(TypeLookupServiceTests, ReaderProxyData_PID_TYPE_OBJECTV1) TEST_F(TypeLookupServiceTests, WriterProxyData_PID_TYPE_OBJECTV1) { MockLogConsumer* log_consumer = - setup_expect_log_msg("RTPS_PROXY_DATA", "PID_TYPE_OBJECTV1 not supported"); + setup_expect_log_msg("RTPS_PROXY_DATA", "Reception of TypeObjects is not supported. They will be ignored."); CDRMessage_t msg(0); msg.init(typeobject_msg_buffer, static_cast(sizeof(typeobject_msg_buffer))); msg.length = msg.max_size; - ASSERT_TRUE(writer_proxy_.readFromCDRMessage(&msg, network_factory_, false, true)); + ASSERT_TRUE(writer_proxy_.readFromCDRMessage(&msg, network_factory_, true, c_VendorId_eProsima)); Log::Flush(); EXPECT_EQ(log_consumer->wait_for_entries(1, 1), 1); @@ -452,11 +443,13 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_EntityId) MockLogConsumer* log_consumer = setup_expect_log_msg("TL_REPLY_READER", "Received data from a bad endpoint."); - CacheChange_t* change = new CacheChange_t(); + CacheChange_t* change {new CacheChange_t()}; change->writerGUID.entityId = 0x111111C3; - stateful_reader_.getHistory()->add_change(change); - reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + EXPECT_CALL(*stateful_reader_.history_, remove_change_mock(change)).Times(1). + WillOnce(::testing::Return(true)); + + reply_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); @@ -468,14 +461,15 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_malformed_Reply) { CacheChange_t* change = new CacheChange_t(); change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.getHistory()->add_change(change); EXPECT_CALL(*tlm_, receive( - testing::Matcher(_), + testing::Matcher(_), testing::Matcher(_))) .WillOnce(testing::Return(false)); + EXPECT_CALL(*stateful_reader_.history_, remove_change_mock(change)).Times(1). + WillOnce(::testing::Return(true)); - reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); } @@ -490,16 +484,16 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNSUPPORTED) CacheChange_t* change = new CacheChange_t(); change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.getHistory()->add_change(change); + stateful_reader_.get_history()->add_change(change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNSUPPORTED); EXPECT_CALL(*tlm_, receive( - testing::Matcher(_), + testing::Matcher(_), testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); @@ -517,16 +511,16 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_INVALID_ARGUMEN CacheChange_t* change = new CacheChange_t(); change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.getHistory()->add_change(change); + stateful_reader_.get_history()->add_change(change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_INVALID_ARGUMENT); EXPECT_CALL(*tlm_, receive( - testing::Matcher(_), + testing::Matcher(_), testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); @@ -544,16 +538,16 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_OUT_OF_RESOURCE CacheChange_t* change = new CacheChange_t(); change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.getHistory()->add_change(change); + stateful_reader_.get_history()->add_change(change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_OUT_OF_RESOURCES); EXPECT_CALL(*tlm_, receive( - testing::Matcher(_), + testing::Matcher(_), testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); Log::Flush(); @@ -570,16 +564,16 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_OPERATI CacheChange_t* change = new CacheChange_t(); change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.getHistory()->add_change(change); + stateful_reader_.get_history()->add_change(change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_OPERATION); EXPECT_CALL(*tlm_, receive( - testing::Matcher(_), + testing::Matcher(_), testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); Log::Flush(); @@ -596,16 +590,16 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_EXCEPTI CacheChange_t* change = new CacheChange_t(); change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.getHistory()->add_change(change); + stateful_reader_.get_history()->add_change(change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_EXCEPTION); EXPECT_CALL(*tlm_, receive( - testing::Matcher(_), + testing::Matcher(_), testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); Log::Flush(); @@ -615,13 +609,14 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_EXCEPTI TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_replyid) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received uknown reply type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", + "Received unknown reply operation type in type lookup service."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Reply reply; - reply.return_value()._d() = 44444444U; + reply.return_value()._default(); ReplyWithServerGUID reply_with_guid; reply_with_guid.reply = reply; @@ -635,17 +630,20 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_replyid) TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_empty) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Error registering type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Reply no contains any type."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Reply reply; reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getTypes_HashId; + reply.return_value().getType({}); + reply.return_value().getType().result({}); ReplyWithServerGUID reply_with_guid; reply_with_guid.reply = reply; + EXPECT_CALL(*tlm_, remove_async_get_type_request(_)).WillOnce(testing::Return(true)); + reply_listener_->get_replies_queue()->push(reply_with_guid); reply_listener_->notify(); @@ -656,20 +654,29 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_empty) TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_empty_type_error) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Error registering type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Error registering remote type."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Reply reply; reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getTypes_HashId; + reply.return_value().getType({}); TypeIdentifierTypeObjectPair pair; + pair.type_identifier({}); + pair.type_object({}); TypeLookup_getTypes_Out out; out.types().push_back(pair); reply.return_value().getType().result(out); ReplyWithServerGUID reply_with_guid; reply_with_guid.reply = reply; + TypeIdentifierPair type_ids; + type_ids.type_identifier1(pair.type_identifier()); + + EXPECT_CALL(registry, + register_type_object(_, ::testing::Eq(type_ids))).Times(1).WillOnce( + ::testing::Return(RETCODE_PRECONDITION_NOT_MET)); + EXPECT_CALL(*tlm_, remove_async_get_type_request(_)).WillOnce(testing::Return(true)); reply_listener_->get_replies_queue()->push(reply_with_guid); reply_listener_->notify(); @@ -682,20 +689,21 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_empty_t TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_inconsistent_type_error) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Error registering type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Error registering remote type."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Reply reply; reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getTypes_HashId; + reply.return_value().getType({}); TypeIdentifierTypeObjectPair pair; TypeIdentifier id; - id._d() = TK_STRUCTURE; + id._d(TK_STRUCTURE); TypeObject obj; - obj.complete()._d() = TK_SEQUENCE; + obj.complete({}); + obj.complete().sequence_type({}); pair.type_identifier(id); pair.type_object(obj); @@ -705,6 +713,14 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_inconsi ReplyWithServerGUID reply_with_guid; reply_with_guid.reply = reply; + TypeIdentifierPair type_ids; + type_ids.type_identifier1(pair.type_identifier()); + + EXPECT_CALL(registry, + register_type_object(::testing::Eq(obj), ::testing::Eq(type_ids))).Times(1).WillOnce( + ::testing::Return(RETCODE_PRECONDITION_NOT_MET)); + EXPECT_CALL(*tlm_, remove_async_get_type_request(_)).WillOnce(testing::Return(true)); + reply_listener_->get_replies_queue()->push(reply_with_guid); reply_listener_->notify(); @@ -718,15 +734,12 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getDependencies_continuat setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Failed to send get_type_dependencies request"); - // EXPECT_CALL(*tlm_, get_type_dependencies(testing::_, testing::_, testing::_)) - // .WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); - TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Reply reply; reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getDependencies_HashId; + reply.return_value().getTypeDependencies({}); TypeIdentifierTypeObjectPair pair; TypeLookup_getTypeDependencies_Out out; out.continuation_point(create_continuation_point(10)); @@ -734,6 +747,12 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getDependencies_continuat ReplyWithServerGUID reply_with_guid; reply_with_guid.reply = reply; + EXPECT_CALL(*tlm_, + get_type_dependencies(testing::_, testing::_, testing::_)).WillOnce(testing::Return( + INVALID_SAMPLE_IDENTITY)); + EXPECT_CALL(*tlm_, get_types(_, _)).WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); + EXPECT_CALL(*tlm_, remove_async_get_type_request(_)).WillOnce(testing::Return(true)); + reply_listener_->get_replies_queue()->push(reply_with_guid); reply_listener_->notify(); @@ -754,13 +773,16 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getDependencies_get_types TypeLookup_Reply reply; reply.header().relatedRequestId(valid_sampleidentity()); - reply.return_value()._d() = TypeLookup_getDependencies_HashId; + reply.return_value().getTypeDependencies({}); TypeIdentifierTypeObjectPair pair; TypeLookup_getTypeDependencies_Out out; reply.return_value().getTypeDependencies().result(out); ReplyWithServerGUID reply_with_guid; reply_with_guid.reply = reply; + EXPECT_CALL(*tlm_, get_types(_, _)).WillOnce(testing::Return(INVALID_SAMPLE_IDENTITY)); + EXPECT_CALL(*tlm_, remove_async_get_type_request(_)).WillOnce(testing::Return(true)); + reply_listener_->get_replies_queue()->push(reply_with_guid); reply_listener_->notify(); @@ -773,11 +795,13 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_wrong_EntityId) MockLogConsumer* log_consumer = setup_expect_log_msg("TL_REQUEST_READER", "Received data from a bad endpoint."); - CacheChange_t* change = new CacheChange_t(); + CacheChange_t* change {new CacheChange_t()}; change->writerGUID.entityId = 0x111111C3; - stateful_reader_.getHistory()->add_change(change); - request_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + EXPECT_CALL(*stateful_reader_.history_, remove_change_mock(change)).Times(1). + WillOnce(::testing::Return(true)); + + request_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); @@ -787,16 +811,16 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_wrong_EntityId) TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_malformed_Request) { - CacheChange_t* change = new CacheChange_t(); + CacheChange_t* change {new CacheChange_t()}; change->writerGUID.entityId = c_EntityId_TypeLookup_request_writer; - stateful_reader_.getHistory()->add_change(change); - EXPECT_CALL(*tlm_, receive( - testing::Matcher(_), - testing::Matcher(_))) + EXPECT_CALL(*stateful_reader_.history_, remove_change_mock(change)).Times(1). + WillOnce(::testing::Return(true)); + + EXPECT_CALL(*tlm_, receive(::testing::Ref(*change), testing::Matcher(_))) .WillOnce(testing::Return(false)); - request_listener_->onNewCacheChangeAdded(&stateful_reader_, change); + request_listener_->on_new_cache_change_added(&stateful_reader_, change); EXPECT_EQ(request_listener_->get_requests_queue()->size(), 0); } @@ -804,15 +828,18 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_malformed_Request) TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_wrong_requestid) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Received unknown request type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", + "Received unknown request in type lookup service."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Request request; - request.data()._d() = 44444444U; + request.data()._default(); - request_listener_->get_requests_queue()->push(request); + EXPECT_CALL(*tlm_, send(testing::Matcher(_))).WillOnce(testing::Return(true)); + + request_listener_->get_requests_queue()->push({request, c_VendorId_eProsima}); request_listener_->notify(); Log::Flush(); @@ -822,15 +849,16 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_wrong_requestid) TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_empty) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", + "Request no contains any type identifier."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Request request; - request.data()._d() = TypeLookup_getTypes_HashId; + request.data().getTypes({}); - request_listener_->get_requests_queue()->push(request); + request_listener_->get_requests_queue()->push({request, c_VendorId_eProsima}); request_listener_->notify(); Log::Flush(); @@ -840,13 +868,13 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_empty) TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_registry_empty_type_error) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", + "Requested TypeIdentifier is not a direct hash."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Request request; - request.data()._d() = TypeLookup_getTypes_HashId; TypeLookup_getTypes_In in; TypeIdentifierSeq id_seq; TypeIdentifier id; @@ -855,7 +883,13 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_registry_empty in.type_ids().push_back(id); request.data().getTypes(in); - request_listener_->get_requests_queue()->push(request); + EXPECT_CALL(registry, + get_type_object(::testing::Eq(id), _)).Times(1).WillOnce( + ::testing::Return(RETCODE_PRECONDITION_NOT_MET)); + + EXPECT_CALL(*tlm_, send(testing::Matcher(_))).WillOnce(testing::Return(true)); + + request_listener_->get_requests_queue()->push({request, c_VendorId_eProsima}); request_listener_->notify(); Log::Flush(); @@ -865,24 +899,30 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_registry_empty TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_registry_unknown_type_error) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", + "Requested TypeIdentifier is not found in the registry."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Request request; - request.data()._d() = TypeLookup_getTypes_HashId; TypeLookup_getTypes_In in; TypeIdentifierSeq id_seq; TypeIdentifier id; - id._d() = TK_STRUCTURE; + id._d(TK_STRUCTURE); id_seq.push_back(id); in.type_ids(id_seq); in.type_ids().push_back(id); request.data().getTypes(in); - request_listener_->get_requests_queue()->push(request); + EXPECT_CALL(registry, + get_type_object(::testing::Eq(id), _)).Times(1).WillOnce( + ::testing::Return(RETCODE_NO_DATA)); + + EXPECT_CALL(*tlm_, send(testing::Matcher(_))).WillOnce(testing::Return(true)); + + request_listener_->get_requests_queue()->push({request, c_VendorId_eProsima}); request_listener_->notify(); Log::Flush(); @@ -892,15 +932,15 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_registry_unkno TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getDependencies_empty) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type dependencies."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Type dependencies request is empty."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Request request; - request.data()._d() = TypeLookup_getDependencies_HashId; + request.data().getTypeDependencies({}); - request_listener_->get_requests_queue()->push(request); + request_listener_->get_requests_queue()->push({request, c_VendorId_eProsima}); request_listener_->notify(); Log::Flush(); @@ -910,24 +950,30 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getDependencies_empty) TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getDependencies_registry_uknown_type_error) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", "Error getting type dependencies."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", + "Requested TypeIdentifier is not found in the registry."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Request request; - request.data()._d() = TypeLookup_getDependencies_HashId; TypeLookup_getTypeDependencies_In in; TypeIdentifierSeq id_seq; TypeIdentifier id; - id._d() = TK_STRUCTURE; + id._d(TK_STRUCTURE); id_seq.push_back(id); in.type_ids(id_seq); in.type_ids().push_back(id); request.data().getTypeDependencies(in); - request_listener_->get_requests_queue()->push(request); + EXPECT_CALL(registry, + get_type_dependencies(::testing::Eq(in.type_ids()), _)).Times(1).WillOnce( + ::testing::Return(RETCODE_NO_DATA)); + + EXPECT_CALL(*tlm_, send(testing::Matcher(_))).WillOnce(testing::Return(true)); + + request_listener_->get_requests_queue()->push({request, c_VendorId_eProsima}); request_listener_->notify(); Log::Flush(); diff --git a/test/unittest/rtps/builtin/CMakeLists.txt b/test/unittest/rtps/builtin/CMakeLists.txt index e54014f78a6..3aa968edf7e 100644 --- a/test/unittest/rtps/builtin/CMakeLists.txt +++ b/test/unittest/rtps/builtin/CMakeLists.txt @@ -66,8 +66,8 @@ target_compile_definitions(BuiltinDataSerializationTests PRIVATE $<$:__INTERNALDEBUG> # Internal debug activated. ) target_include_directories(BuiltinDataSerializationTests PRIVATE - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectRegistry - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectUtils + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectRegistry + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectUtils ${PROJECT_SOURCE_DIR}/test/mock/rtps/NetworkFactory ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomainImpl ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include diff --git a/test/unittest/rtps/network/CMakeLists.txt b/test/unittest/rtps/network/CMakeLists.txt index aab1b0a6854..345b5eec5e9 100644 --- a/test/unittest/rtps/network/CMakeLists.txt +++ b/test/unittest/rtps/network/CMakeLists.txt @@ -135,8 +135,8 @@ target_compile_definitions(ExternalLocatorsTests PRIVATE ) target_include_directories(ExternalLocatorsTests PRIVATE ${Asio_INCLUDE_DIR} - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectRegistry - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectUtils + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectRegistry + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectUtils ${PROJECT_SOURCE_DIR}/test/mock/rtps/ParticipantProxyData ${PROJECT_SOURCE_DIR}/test/mock/rtps/ReaderProxyData ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomainImpl # Dependency of fastdds::xtypes::type_representation @@ -148,7 +148,7 @@ target_link_libraries(ExternalLocatorsTests fastcdr fastdds::log fastdds::xtypes::dynamic-types::impl - GTest::gtest ${MOCKS} + GTest::gmock ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS}) if(QNX) diff --git a/test/unittest/xmlparser/CMakeLists.txt b/test/unittest/xmlparser/CMakeLists.txt index b373b127e31..478239642db 100644 --- a/test/unittest/xmlparser/CMakeLists.txt +++ b/test/unittest/xmlparser/CMakeLists.txt @@ -134,8 +134,8 @@ target_compile_definitions(XMLProfileParserTests PRIVATE $<$:NOMINMAX> # avoid conflic with std::min & std::max in visual studio ) target_include_directories(XMLProfileParserTests PRIVATE - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectRegistry - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectUtils + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectRegistry + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectUtils ${PROJECT_SOURCE_DIR}/test/mock/rtps/Log ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomainImpl # Dependency of fastdds::xtypes::type_representation ${PROJECT_SOURCE_DIR}/test/mock/rtps/SharedMemTransportDescriptor @@ -153,12 +153,13 @@ target_include_directories(XMLProfileParserTests PRIVATE $<$:${ANDROID_IFADDRS_INCLUDE_DIR}> ) -target_link_libraries(XMLProfileParserTests GTest::gmock +target_link_libraries(XMLProfileParserTests $<$:iphlpapi$Shlwapi> $<$:ws2_32> ${TINYXML2_LIBRARY} fastcdr fastdds::xtypes::dynamic-types::impl + GTest::gmock ) if(QNX) target_link_libraries(XMLProfileParserTests socket) @@ -223,8 +224,8 @@ target_compile_definitions(XMLParserTests PRIVATE $<$:NOMINMAX> # avoid conflic with std::min & std::max in visual studio ) target_include_directories(XMLParserTests PRIVATE - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectRegistry - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectUtils + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectRegistry + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectUtils ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomainImpl # Dependency of fastdds::xtypes::type_representation ${PROJECT_SOURCE_DIR}/test/mock/rtps/SharedMemTransportDescriptor ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPTransportDescriptor @@ -241,13 +242,14 @@ target_include_directories(XMLParserTests PRIVATE $<$:${ANDROID_IFADDRS_INCLUDE_DIR}> ) -target_link_libraries(XMLParserTests GTest::gtest +target_link_libraries(XMLParserTests $<$:iphlpapi$Shlwapi> $<$:ws2_32> ${TINYXML2_LIBRARY} fastcdr fastdds::log fastdds::xtypes::dynamic-types::impl + GTest::gmock ) if(QNX) target_link_libraries(XMLParserTests socket) @@ -340,8 +342,8 @@ target_compile_definitions(XMLEndpointParserTests PRIVATE ASIO_STANDALONE ) target_include_directories(XMLEndpointParserTests PRIVATE - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectRegistry - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectUtils + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectRegistry + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectUtils ${PROJECT_SOURCE_DIR}/test/mock/rtps/ReaderProxyData ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomainImpl ${PROJECT_SOURCE_DIR}/test/mock/rtps/SharedMemTransportDescriptor @@ -360,13 +362,14 @@ target_include_directories(XMLEndpointParserTests PRIVATE $<$:${ANDROID_IFADDRS_INCLUDE_DIR}> ) -target_link_libraries(XMLEndpointParserTests GTest::gtest +target_link_libraries(XMLEndpointParserTests $<$:iphlpapi$Shlwapi> $<$:ws2_32> ${TINYXML2_LIBRARY} fastcdr fastdds::log fastdds::xtypes::dynamic-types::impl + GTest::gmock ) if(QNX) target_link_libraries(XMLEndpointParserTests socket) @@ -431,8 +434,8 @@ target_compile_definitions(XMLLoadFileTests PRIVATE HAVE_LOG_NO_INFO=0 FASTDDS_ENFORCE_LOG_INFO # Need LOG_INFO in this test ) target_include_directories(XMLLoadFileTests PRIVATE - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectRegistry - ${PROJECT_SOURCE_DIR}/test/mock/dds/TypeObjectUtils + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectRegistry + ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectUtils ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSDomainImpl # Dependency of fastdds::xtypes::type_representation ${PROJECT_SOURCE_DIR}/test/mock/rtps/SharedMemTransportDescriptor ${PROJECT_SOURCE_DIR}/test/mock/rtps/TCPTransportDescriptor @@ -449,13 +452,14 @@ target_include_directories(XMLLoadFileTests PRIVATE $<$:${ANDROID_IFADDRS_INCLUDE_DIR}> ) -target_link_libraries(XMLLoadFileTests GTest::gtest +target_link_libraries(XMLLoadFileTests $<$:iphlpapi$Shlwapi> $<$:ws2_32> ${TINYXML2_LIBRARY} fastcdr fastdds::log fastdds::xtypes::dynamic-types::impl + GTest::gmock ) if(QNX) target_link_libraries(XMLLoadFileTests socket) diff --git a/thirdparty/fastcdr b/thirdparty/fastcdr index c00d31c3637..455a4e7e626 160000 --- a/thirdparty/fastcdr +++ b/thirdparty/fastcdr @@ -1 +1 @@ -Subproject commit c00d31c36375c3f4b5e0926d3046bfde5f63ff14 +Subproject commit 455a4e7e6267631bc1313203ebed489b72c48009 From 46c747ed6fd4b5f0ae3a5bf6d861246b08893fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Wed, 12 Jun 2024 17:35:54 +0200 Subject: [PATCH 28/45] Refs #20165. Fix for future rebase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- ...XtypesTestsTypeNoTypeObjectPubSubTypes.cxx | 5 +- ...TestsTypeNoTypeObjectTypeObjectSupport.cxx | 108 ------------------ ...TestsTypeNoTypeObjectTypeObjectSupport.hpp | 56 --------- test/dds/xtypes/TypeLookupServicePublisher.h | 8 +- test/dds/xtypes/TypeLookupServiceSubscriber.h | 8 +- .../dds/xtypes/TypesTestsCases/Cases_key.json | 63 ++++++++++ .../TypesTestsCases/Cases_structures.json | 25 +++- .../xtypes/TypesTestsCases/Cases_unions.json | 42 +++++++ .../xtypes/update_header_and_create_cases.py | 4 +- .../TypeObjectRegistry.hpp | 8 +- .../scripts/update_generated_code_from_idl.sh | 2 +- 11 files changed, 151 insertions(+), 178 deletions(-) delete mode 100644 test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.cxx delete mode 100644 test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx index 778beb995b5..304252537d7 100644 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx @@ -25,8 +25,6 @@ #include #include "XtypesTestsTypeNoTypeObjectCdrAux.hpp" -#include "XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp" - using SerializedPayload_t = eprosima::fastdds::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastdds::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; @@ -209,7 +207,8 @@ bool TypeNoTypeObjectPubSubType::compute_key( void TypeNoTypeObjectPubSubType::register_type_object_representation() { - register_TypeNoTypeObject_type_identifier(type_identifiers_); + EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, + "TypeObject type representation support disabled in generated code"); } diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.cxx deleted file mode 100644 index 937955269e1..00000000000 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.cxx +++ /dev/null @@ -1,108 +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 XtypesTestsTypeNoTypeObjectTypeObjectSupport.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 "XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp" - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "XtypesTestsTypeNoTypeObject.hpp" - - -using namespace eprosima::fastdds::dds::xtypes; - -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_TypeNoTypeObject_type_identifier( - TypeIdentifierPair& type_ids_TypeNoTypeObject) -{ - - ReturnCode_t return_code_TypeNoTypeObject {eprosima::fastdds::dds::RETCODE_OK}; - return_code_TypeNoTypeObject = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "TypeNoTypeObject", type_ids_TypeNoTypeObject); - if (eprosima::fastdds::dds::RETCODE_OK != return_code_TypeNoTypeObject) - { - StructTypeFlag struct_flags_TypeNoTypeObject = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, - false, false); - QualifiedTypeName type_name_TypeNoTypeObject = "TypeNoTypeObject"; - eprosima::fastcdr::optional type_ann_builtin_TypeNoTypeObject; - eprosima::fastcdr::optional ann_custom_TypeNoTypeObject; - CompleteTypeDetail detail_TypeNoTypeObject = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_TypeNoTypeObject, ann_custom_TypeNoTypeObject, type_name_TypeNoTypeObject.to_string()); - CompleteStructHeader header_TypeNoTypeObject; - header_TypeNoTypeObject = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeNoTypeObject); - CompleteStructMemberSeq member_seq_TypeNoTypeObject; - { - TypeIdentifierPair type_ids_content; - ReturnCode_t return_code_content {eprosima::fastdds::dds::RETCODE_OK}; - return_code_content = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_content); - - if (eprosima::fastdds::dds::RETCODE_OK != return_code_content) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded", type_ids_content)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - } - StructMemberFlag member_flags_content = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, - false, false, false, false); - MemberId member_id_content = 0x00000000; - bool common_content_ec {false}; - CommonStructMember common_content {TypeObjectUtils::build_common_struct_member(member_id_content, member_flags_content, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_content, common_content_ec))}; - if (!common_content_ec) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure content member TypeIdentifier inconsistent."); - return; - } - MemberName name_content = "content"; - eprosima::fastcdr::optional member_ann_builtin_content; - ann_custom_TypeNoTypeObject.reset(); - CompleteMemberDetail detail_content = TypeObjectUtils::build_complete_member_detail(name_content, member_ann_builtin_content, ann_custom_TypeNoTypeObject); - CompleteStructMember member_content = TypeObjectUtils::build_complete_struct_member(common_content, detail_content); - TypeObjectUtils::add_complete_struct_member(member_seq_TypeNoTypeObject, member_content); - } - CompleteStructType struct_type_TypeNoTypeObject = TypeObjectUtils::build_complete_struct_type(struct_flags_TypeNoTypeObject, header_TypeNoTypeObject, member_seq_TypeNoTypeObject); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_TypeNoTypeObject, type_name_TypeNoTypeObject.to_string(), type_ids_TypeNoTypeObject)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "TypeNoTypeObject already registered in TypeObjectRegistry for a different type."); - } - } -} - diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp deleted file mode 100644 index a02a5a1cac5..00000000000 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectTypeObjectSupport.hpp +++ /dev/null @@ -1,56 +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 XtypesTestsTypeNoTypeObjectTypeObjectSupport.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__XTYPESTESTSTYPENOTYPEOBJECT_TYPE_OBJECT_SUPPORT_HPP -#define FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_TYPE_OBJECT_SUPPORT_HPP - -#include - - -#if defined(_WIN32) -#if defined(EPROSIMA_USER_DLL_EXPORT) -#define eProsima_user_DllExport __declspec( dllexport ) -#else -#define eProsima_user_DllExport -#endif // EPROSIMA_USER_DLL_EXPORT -#else -#define eProsima_user_DllExport -#endif // _WIN32 - -#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC - -/** - * @brief Register TypeNoTypeObject related TypeIdentifier. - * Fully-descriptive TypeIdentifiers are directly registered. - * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is - * indirectly registered as well. - * - * @param[out] TypeIdentifier of the registered type. - * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. - * Invalid TypeIdentifier is returned in case of error. - */ -eProsima_user_DllExport void register_TypeNoTypeObject_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); - - -#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC - -#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECT_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index 0335d1f3093..ad375033b10 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -50,7 +50,7 @@ namespace dds { struct PubKnownType { - void* type_; + void* type_ {nullptr}; DynamicType::_ref_type dyn_type_; TypeSupport type_sup_; @@ -489,16 +489,19 @@ class TypeLookupServicePublisher PUBLISHER_TYPE_CREATOR_FUNCTION(StructAliasInheritanceStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(StructuresInheritanceStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(InheritanceKeyedEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedAppendable); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedBooleanStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedCharStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedDoubleStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedEmptyInheritanceStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedEmptyStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedFinal); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedFloatStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedInheritanceStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongDoubleStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongLongStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedLongStruct); + PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedMutable); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedOctetStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedShortStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(KeyedULongLongStruct); @@ -911,6 +914,7 @@ class TypeLookupServicePublisher PUBLISHER_TYPE_CREATOR_FUNCTION(StructWString); PUBLISHER_TYPE_CREATOR_FUNCTION(Structures); PUBLISHER_TYPE_CREATOR_FUNCTION(bar); + PUBLISHER_TYPE_CREATOR_FUNCTION(root); PUBLISHER_TYPE_CREATOR_FUNCTION(root1); PUBLISHER_TYPE_CREATOR_FUNCTION(root2); PUBLISHER_TYPE_CREATOR_FUNCTION(testing_1::foo); @@ -947,6 +951,8 @@ class TypeLookupServicePublisher PUBLISHER_TYPE_CREATOR_FUNCTION(UnionMap); PUBLISHER_TYPE_CREATOR_FUNCTION(UnionOctet); PUBLISHER_TYPE_CREATOR_FUNCTION(UnionSequence); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionSeveralFields); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionSeveralFieldsWithDefault); PUBLISHER_TYPE_CREATOR_FUNCTION(UnionShort); PUBLISHER_TYPE_CREATOR_FUNCTION(UnionString); PUBLISHER_TYPE_CREATOR_FUNCTION(UnionULong); diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index 2be0a51b0e5..ea9b7b72545 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -51,7 +51,7 @@ namespace dds { struct SubKnownType { - void* type_; + void* type_ {nullptr}; DynamicType::_ref_type dyn_type_; TypeSupport type_sup_; }; @@ -501,16 +501,19 @@ class TypeLookupServiceSubscriber SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructAliasInheritanceStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructuresInheritanceStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(InheritanceKeyedEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedAppendable); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedBooleanStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedCharStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedDoubleStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedEmptyInheritanceStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedEmptyStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedFinal); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedFloatStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedInheritanceStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongDoubleStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongLongStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedLongStruct); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedMutable); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedOctetStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedShortStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(KeyedULongLongStruct); @@ -923,6 +926,7 @@ class TypeLookupServiceSubscriber SUBSCRIBER_TYPE_CREATOR_FUNCTION(StructWString); SUBSCRIBER_TYPE_CREATOR_FUNCTION(Structures); SUBSCRIBER_TYPE_CREATOR_FUNCTION(bar); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(root); SUBSCRIBER_TYPE_CREATOR_FUNCTION(root1); SUBSCRIBER_TYPE_CREATOR_FUNCTION(root2); SUBSCRIBER_TYPE_CREATOR_FUNCTION(testing_1::foo); @@ -959,6 +963,8 @@ class TypeLookupServiceSubscriber SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionMap); SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionOctet); SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionSequence); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionSeveralFields); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionSeveralFieldsWithDefault); SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionShort); SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionString); SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionULong); diff --git a/test/dds/xtypes/TypesTestsCases/Cases_key.json b/test/dds/xtypes/TypesTestsCases/Cases_key.json index 351c924ea2a..22b36960060 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_key.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_key.json @@ -21,6 +21,27 @@ } ] }, + { + "TestCase": "Case_key_KeyedAppendable", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedAppendable" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, { "TestCase": "Case_key_KeyedBooleanStruct", "participants": [ @@ -126,6 +147,27 @@ } ] }, + { + "TestCase": "Case_key_KeyedFinal", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedFinal" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, { "TestCase": "Case_key_KeyedFloatStruct", "participants": [ @@ -231,6 +273,27 @@ } ] }, + { + "TestCase": "Case_key_KeyedMutable", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "KeyedMutable" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, { "TestCase": "Case_key_KeyedOctetStruct", "participants": [ diff --git a/test/dds/xtypes/TypesTestsCases/Cases_structures.json b/test/dds/xtypes/TypesTestsCases/Cases_structures.json index 256dc785f04..f476672000a 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_structures.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_structures.json @@ -618,7 +618,7 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "testing_2::foo" + "testing_1::foo" ] }, { @@ -639,7 +639,28 @@ "timeout": "2", "expected_matches": "1", "known_types": [ - "testing_1::foo" + "testing_2::foo" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_root", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "root" ] }, { diff --git a/test/dds/xtypes/TypesTestsCases/Cases_unions.json b/test/dds/xtypes/TypesTestsCases/Cases_unions.json index 41b67a9ccf9..cb89f0909af 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_unions.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_unions.json @@ -672,6 +672,48 @@ } ] }, + { + "TestCase": "Case_unions_UnionSeveralFields", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionSeveralFields" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionSeveralFieldsWithDefault", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [ + "UnionSeveralFieldsWithDefault" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "2", + "expected_matches": "1", + "known_types": [] + } + ] + }, { "TestCase": "Case_unions_UnionShort", "participants": [ diff --git a/test/dds/xtypes/update_header_and_create_cases.py b/test/dds/xtypes/update_header_and_create_cases.py index 1e14410e6bc..33f21b0a146 100644 --- a/test/dds/xtypes/update_header_and_create_cases.py +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -132,10 +132,10 @@ def update_types_header_file(structs_info, typecode_path): new_include_lines = set() for _, idl_file_name, _, idls_path in structs_info: if idls_path != "BaseCasesIDLs/": - include_line = f'#include "{typecode_path}{idl_file_name}PubSubTypes.h"\n' + include_line = f'#include "{typecode_path}{idl_file_name}PubSubTypes.hpp"\n' new_include_lines.add(include_line) else: - include_line = f'#include "BaseCasesIDLs/{idl_file_name}PubSubTypes.h"\n' + include_line = f'#include "BaseCasesIDLs/{idl_file_name}PubSubTypes.hpp"\n' new_include_lines.add(include_line) content = content[:endif_index].rstrip() + '\n' + '\n' + ''.join(sorted(list(new_include_lines))) + '\n' + content[endif_index:] diff --git a/test/mock/xtypes/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/test/mock/xtypes/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp index 9e50000d6ec..c8282ad2549 100644 --- a/test/mock/xtypes/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp +++ b/test/mock/xtypes/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp @@ -83,13 +83,13 @@ class TypeObjectRegistry : public ITypeObjectRegistry TypeIdentifierPair & /*type_ids*/), (override)); MOCK_METHOD(ReturnCode_t, register_type_object, ( - const TypeObject& type_object, - TypeIdentifierPair & type_identifier), (override)); + const TypeObject& /*type_object*/, + TypeIdentifierPair & /*type_identifier*/), (override)); MOCK_METHOD(ReturnCode_t, register_type_object, ( - const TypeObject& type_object, + const TypeObject& /*type_object*/, TypeIdentifierPair& /*type_identifier*/, - bool build_minimal)); + bool /*build_minimal*/)); MOCK_METHOD(ReturnCode_t, register_typeobject_w_dynamic_type, ( const DynamicType::_ref_type& /*dynamic_type*/, diff --git a/utils/scripts/update_generated_code_from_idl.sh b/utils/scripts/update_generated_code_from_idl.sh index 7abbddd4cb4..575fd3918b8 100755 --- a/utils/scripts/update_generated_code_from_idl.sh +++ b/utils/scripts/update_generated_code_from_idl.sh @@ -10,7 +10,7 @@ files_not_needing_typeobject=( './include/fastdds/dds/xtypes/type_representation/detail/dds-xtypes_typeobject.idl' './src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_types.idl' './src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypes.idl' - './test/dds/xtypes/idl/XtypesTestsTypeNoTypeObject.idl' + './test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl' './thirdparty/dds-types-test/IDL/declarations.idl' './thirdparty/dds-types-test/IDL/external.idl' ) From 38257499bc98e5ba6ffb3948349b8c1a8dd97202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Fri, 6 Sep 2024 12:27:47 +0200 Subject: [PATCH 29/45] Refs #20165. Improve tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- test/dds-types-test/unions.hpp | 5138 ++++++++--------- test/dds/xtypes/BaseCases/Case0.json | 6 +- test/dds/xtypes/BaseCases/Case1.json | 6 +- test/dds/xtypes/BaseCases/Case10.json | 8 +- test/dds/xtypes/BaseCases/Case2.json | 6 +- test/dds/xtypes/BaseCases/Case3.json | 6 +- test/dds/xtypes/BaseCases/Case4.json | 6 +- test/dds/xtypes/BaseCases/Case5.json | 6 +- test/dds/xtypes/BaseCases/Case6.json | 6 +- test/dds/xtypes/BaseCases/Case7.json | 2 +- test/dds/xtypes/BaseCases/Case9.json | 8 +- test/dds/xtypes/CMakeLists.txt | 2 +- .../dds/xtypes/TypeLookupServicePublisher.cpp | 27 +- test/dds/xtypes/TypeLookupServicePublisher.h | 58 +- .../xtypes/TypeLookupServiceSubscriber.cpp | 15 +- test/dds/xtypes/TypeLookupServiceSubscriber.h | 58 +- test/dds/xtypes/TypeLookupServiceTestsTypes.h | 1 - test/dds/xtypes/TypeLookupService_main.cpp | 3 +- .../xtypes/TypesTestsCases/Cases_aliases.json | 100 +- .../TypesTestsCases/Cases_annotations.json | 8 +- .../TypesTestsCases/Cases_appendable.json | 76 +- .../xtypes/TypesTestsCases/Cases_arrays.json | 416 +- .../xtypes/TypesTestsCases/Cases_bitsets.json | 4 +- .../TypesTestsCases/Cases_constants.json | 12 +- .../TypesTestsCases/Cases_declarations.json | 20 +- .../TypesTestsCases/Cases_enumerations.json | 12 +- .../TypesTestsCases/Cases_external.json | 571 -- .../xtypes/TypesTestsCases/Cases_final.json | 76 +- .../Cases_helpers_basic_inner_types.json | 8 +- .../TypesTestsCases/Cases_inheritance.json | 32 +- .../dds/xtypes/TypesTestsCases/Cases_key.json | 80 +- .../xtypes/TypesTestsCases/Cases_maps.json | 840 +-- .../TypesTestsCases/Cases_member_id.json | 48 +- .../xtypes/TypesTestsCases/Cases_mutable.json | 76 +- .../TypesTestsCases/Cases_optional.json | 324 +- .../TypesTestsCases/Cases_primitives.json | 84 +- .../TypesTestsCases/Cases_sequences.json | 112 +- .../xtypes/TypesTestsCases/Cases_strings.json | 24 +- .../TypesTestsCases/Cases_structures.json | 136 +- .../xtypes/TypesTestsCases/Cases_unions.json | 164 +- test/dds/xtypes/test_build.py | 176 +- .../xtypes/update_header_and_create_cases.py | 9 +- 42 files changed, 4052 insertions(+), 4718 deletions(-) delete mode 100644 test/dds/xtypes/TypesTestsCases/Cases_external.json diff --git a/test/dds-types-test/unions.hpp b/test/dds-types-test/unions.hpp index c67d1e834d6..22aec1c2469 100644 --- a/test/dds-types-test/unions.hpp +++ b/test/dds-types-test/unions.hpp @@ -95,9 +95,9 @@ class Union_Short switch (x.selected_member_) { - case 0x00000001: - a_() = x.m_a; - break; + case 0x00000001: + a_() = x.m_a; + break; } } @@ -113,9 +113,9 @@ class Union_Short switch (x.selected_member_) { - case 0x00000001: - a_() = std::move(x.m_a); - break; + case 0x00000001: + a_() = std::move(x.m_a); + break; } } @@ -131,9 +131,9 @@ class Union_Short switch (x.selected_member_) { - case 0x00000001: - a_() = x.m_a; - break; + case 0x00000001: + a_() = x.m_a; + break; } @@ -151,9 +151,9 @@ class Union_Short switch (x.selected_member_) { - case 0x00000001: - a_() = std::move(x.m_a); - break; + case 0x00000001: + a_() = std::move(x.m_a); + break; } @@ -174,9 +174,9 @@ class Union_Short { switch (selected_member_) { - case 0x00000001: - ret_value = (m_a == x.m_a); - break; + case 0x00000001: + ret_value = (m_a == x.m_a); + break; } } @@ -206,18 +206,19 @@ class Union_Short switch (__d) { - case 0: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 0: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -273,7 +274,6 @@ class Union_Short return m_a; } - void _default() { if (member_destructor_) @@ -284,27 +284,25 @@ class Union_Short selected_member_ = 0x0FFFFFFFu; } - private: - int16_t& a_() + int16_t& a_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_a = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_a = {0}; - return m_a; - } + } + return m_a; + } int32_t m__d {2147483647}; @@ -354,9 +352,9 @@ class Union_UShort switch (x.selected_member_) { - case 0x00000001: - b_() = x.m_b; - break; + case 0x00000001: + b_() = x.m_b; + break; } } @@ -372,9 +370,9 @@ class Union_UShort switch (x.selected_member_) { - case 0x00000001: - b_() = std::move(x.m_b); - break; + case 0x00000001: + b_() = std::move(x.m_b); + break; } } @@ -390,9 +388,9 @@ class Union_UShort switch (x.selected_member_) { - case 0x00000001: - b_() = x.m_b; - break; + case 0x00000001: + b_() = x.m_b; + break; } @@ -410,9 +408,9 @@ class Union_UShort switch (x.selected_member_) { - case 0x00000001: - b_() = std::move(x.m_b); - break; + case 0x00000001: + b_() = std::move(x.m_b); + break; } @@ -433,9 +431,9 @@ class Union_UShort { switch (selected_member_) { - case 0x00000001: - ret_value = (m_b == x.m_b); - break; + case 0x00000001: + ret_value = (m_b == x.m_b); + break; } } @@ -465,18 +463,19 @@ class Union_UShort switch (__d) { - case 1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -532,7 +531,6 @@ class Union_UShort return m_b; } - void _default() { if (member_destructor_) @@ -543,27 +541,25 @@ class Union_UShort selected_member_ = 0x0FFFFFFFu; } - private: - uint16_t& b_() + uint16_t& b_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_b = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_b = {0}; - return m_b; - } + } + return m_b; + } int32_t m__d {2147483647}; @@ -613,9 +609,9 @@ class Union_Long switch (x.selected_member_) { - case 0x00000001: - c_() = x.m_c; - break; + case 0x00000001: + c_() = x.m_c; + break; } } @@ -631,9 +627,9 @@ class Union_Long switch (x.selected_member_) { - case 0x00000001: - c_() = std::move(x.m_c); - break; + case 0x00000001: + c_() = std::move(x.m_c); + break; } } @@ -649,9 +645,9 @@ class Union_Long switch (x.selected_member_) { - case 0x00000001: - c_() = x.m_c; - break; + case 0x00000001: + c_() = x.m_c; + break; } @@ -669,9 +665,9 @@ class Union_Long switch (x.selected_member_) { - case 0x00000001: - c_() = std::move(x.m_c); - break; + case 0x00000001: + c_() = std::move(x.m_c); + break; } @@ -692,9 +688,9 @@ class Union_Long { switch (selected_member_) { - case 0x00000001: - ret_value = (m_c == x.m_c); - break; + case 0x00000001: + ret_value = (m_c == x.m_c); + break; } } @@ -724,18 +720,19 @@ class Union_Long switch (__d) { - case 2: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 2: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -791,7 +788,6 @@ class Union_Long return m_c; } - void _default() { if (member_destructor_) @@ -802,27 +798,25 @@ class Union_Long selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& c_() + int32_t& c_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_c = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_c = {0}; - return m_c; - } + } + return m_c; + } int32_t m__d {2147483647}; @@ -872,9 +866,9 @@ class Union_ULong switch (x.selected_member_) { - case 0x00000001: - d_() = x.m_d; - break; + case 0x00000001: + d_() = x.m_d; + break; } } @@ -890,9 +884,9 @@ class Union_ULong switch (x.selected_member_) { - case 0x00000001: - d_() = std::move(x.m_d); - break; + case 0x00000001: + d_() = std::move(x.m_d); + break; } } @@ -908,9 +902,9 @@ class Union_ULong switch (x.selected_member_) { - case 0x00000001: - d_() = x.m_d; - break; + case 0x00000001: + d_() = x.m_d; + break; } @@ -928,9 +922,9 @@ class Union_ULong switch (x.selected_member_) { - case 0x00000001: - d_() = std::move(x.m_d); - break; + case 0x00000001: + d_() = std::move(x.m_d); + break; } @@ -951,9 +945,9 @@ class Union_ULong { switch (selected_member_) { - case 0x00000001: - ret_value = (m_d == x.m_d); - break; + case 0x00000001: + ret_value = (m_d == x.m_d); + break; } } @@ -983,18 +977,19 @@ class Union_ULong switch (__d) { - case 3: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 3: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -1050,7 +1045,6 @@ class Union_ULong return m_d; } - void _default() { if (member_destructor_) @@ -1061,27 +1055,25 @@ class Union_ULong selected_member_ = 0x0FFFFFFFu; } - private: - uint32_t& d_() + uint32_t& d_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_d = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_d = {0}; - return m_d; - } + } + return m_d; + } int32_t m__d {2147483647}; @@ -1131,9 +1123,9 @@ class Union_LongLong switch (x.selected_member_) { - case 0x00000001: - e_() = x.m_e; - break; + case 0x00000001: + e_() = x.m_e; + break; } } @@ -1149,9 +1141,9 @@ class Union_LongLong switch (x.selected_member_) { - case 0x00000001: - e_() = std::move(x.m_e); - break; + case 0x00000001: + e_() = std::move(x.m_e); + break; } } @@ -1167,9 +1159,9 @@ class Union_LongLong switch (x.selected_member_) { - case 0x00000001: - e_() = x.m_e; - break; + case 0x00000001: + e_() = x.m_e; + break; } @@ -1187,9 +1179,9 @@ class Union_LongLong switch (x.selected_member_) { - case 0x00000001: - e_() = std::move(x.m_e); - break; + case 0x00000001: + e_() = std::move(x.m_e); + break; } @@ -1210,9 +1202,9 @@ class Union_LongLong { switch (selected_member_) { - case 0x00000001: - ret_value = (m_e == x.m_e); - break; + case 0x00000001: + ret_value = (m_e == x.m_e); + break; } } @@ -1242,18 +1234,19 @@ class Union_LongLong switch (__d) { - case 4: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 4: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -1309,7 +1302,6 @@ class Union_LongLong return m_e; } - void _default() { if (member_destructor_) @@ -1320,27 +1312,25 @@ class Union_LongLong selected_member_ = 0x0FFFFFFFu; } - private: - int64_t& e_() + int64_t& e_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_e = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_e = {0}; - return m_e; - } + } + return m_e; + } int32_t m__d {2147483647}; @@ -1390,9 +1380,9 @@ class Union_ULongLOng switch (x.selected_member_) { - case 0x00000001: - f_() = x.m_f; - break; + case 0x00000001: + f_() = x.m_f; + break; } } @@ -1408,9 +1398,9 @@ class Union_ULongLOng switch (x.selected_member_) { - case 0x00000001: - f_() = std::move(x.m_f); - break; + case 0x00000001: + f_() = std::move(x.m_f); + break; } } @@ -1426,9 +1416,9 @@ class Union_ULongLOng switch (x.selected_member_) { - case 0x00000001: - f_() = x.m_f; - break; + case 0x00000001: + f_() = x.m_f; + break; } @@ -1446,9 +1436,9 @@ class Union_ULongLOng switch (x.selected_member_) { - case 0x00000001: - f_() = std::move(x.m_f); - break; + case 0x00000001: + f_() = std::move(x.m_f); + break; } @@ -1469,9 +1459,9 @@ class Union_ULongLOng { switch (selected_member_) { - case 0x00000001: - ret_value = (m_f == x.m_f); - break; + case 0x00000001: + ret_value = (m_f == x.m_f); + break; } } @@ -1501,18 +1491,19 @@ class Union_ULongLOng switch (__d) { - case 5: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 5: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -1568,7 +1559,6 @@ class Union_ULongLOng return m_f; } - void _default() { if (member_destructor_) @@ -1579,27 +1569,25 @@ class Union_ULongLOng selected_member_ = 0x0FFFFFFFu; } - private: - uint64_t& f_() + uint64_t& f_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_f = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_f = {0}; - return m_f; - } + } + return m_f; + } int32_t m__d {2147483647}; @@ -1649,9 +1637,9 @@ class Union_Float switch (x.selected_member_) { - case 0x00000001: - g_() = x.m_g; - break; + case 0x00000001: + g_() = x.m_g; + break; } } @@ -1667,9 +1655,9 @@ class Union_Float switch (x.selected_member_) { - case 0x00000001: - g_() = std::move(x.m_g); - break; + case 0x00000001: + g_() = std::move(x.m_g); + break; } } @@ -1685,9 +1673,9 @@ class Union_Float switch (x.selected_member_) { - case 0x00000001: - g_() = x.m_g; - break; + case 0x00000001: + g_() = x.m_g; + break; } @@ -1705,9 +1693,9 @@ class Union_Float switch (x.selected_member_) { - case 0x00000001: - g_() = std::move(x.m_g); - break; + case 0x00000001: + g_() = std::move(x.m_g); + break; } @@ -1728,9 +1716,9 @@ class Union_Float { switch (selected_member_) { - case 0x00000001: - ret_value = (m_g == x.m_g); - break; + case 0x00000001: + ret_value = (m_g == x.m_g); + break; } } @@ -1760,18 +1748,19 @@ class Union_Float switch (__d) { - case 6: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 6: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -1827,7 +1816,6 @@ class Union_Float return m_g; } - void _default() { if (member_destructor_) @@ -1838,27 +1826,25 @@ class Union_Float selected_member_ = 0x0FFFFFFFu; } - private: - float& g_() + float& g_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_g = {0.0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_g = {0.0}; - return m_g; - } + } + return m_g; + } int32_t m__d {2147483647}; @@ -1908,9 +1894,9 @@ class Union_Double switch (x.selected_member_) { - case 0x00000001: - h_() = x.m_h; - break; + case 0x00000001: + h_() = x.m_h; + break; } } @@ -1926,9 +1912,9 @@ class Union_Double switch (x.selected_member_) { - case 0x00000001: - h_() = std::move(x.m_h); - break; + case 0x00000001: + h_() = std::move(x.m_h); + break; } } @@ -1944,9 +1930,9 @@ class Union_Double switch (x.selected_member_) { - case 0x00000001: - h_() = x.m_h; - break; + case 0x00000001: + h_() = x.m_h; + break; } @@ -1964,9 +1950,9 @@ class Union_Double switch (x.selected_member_) { - case 0x00000001: - h_() = std::move(x.m_h); - break; + case 0x00000001: + h_() = std::move(x.m_h); + break; } @@ -1987,9 +1973,9 @@ class Union_Double { switch (selected_member_) { - case 0x00000001: - ret_value = (m_h == x.m_h); - break; + case 0x00000001: + ret_value = (m_h == x.m_h); + break; } } @@ -2019,18 +2005,19 @@ class Union_Double switch (__d) { - case 7: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 7: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -2086,7 +2073,6 @@ class Union_Double return m_h; } - void _default() { if (member_destructor_) @@ -2097,27 +2083,25 @@ class Union_Double selected_member_ = 0x0FFFFFFFu; } - private: - double& h_() + double& h_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_h = {0.0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_h = {0.0}; - return m_h; - } + } + return m_h; + } int32_t m__d {2147483647}; @@ -2167,9 +2151,9 @@ class Union_LongDouble switch (x.selected_member_) { - case 0x00000001: - i_() = x.m_i; - break; + case 0x00000001: + i_() = x.m_i; + break; } } @@ -2185,9 +2169,9 @@ class Union_LongDouble switch (x.selected_member_) { - case 0x00000001: - i_() = std::move(x.m_i); - break; + case 0x00000001: + i_() = std::move(x.m_i); + break; } } @@ -2203,9 +2187,9 @@ class Union_LongDouble switch (x.selected_member_) { - case 0x00000001: - i_() = x.m_i; - break; + case 0x00000001: + i_() = x.m_i; + break; } @@ -2223,9 +2207,9 @@ class Union_LongDouble switch (x.selected_member_) { - case 0x00000001: - i_() = std::move(x.m_i); - break; + case 0x00000001: + i_() = std::move(x.m_i); + break; } @@ -2246,9 +2230,9 @@ class Union_LongDouble { switch (selected_member_) { - case 0x00000001: - ret_value = (m_i == x.m_i); - break; + case 0x00000001: + ret_value = (m_i == x.m_i); + break; } } @@ -2278,18 +2262,19 @@ class Union_LongDouble switch (__d) { - case 8: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 8: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -2345,7 +2330,6 @@ class Union_LongDouble return m_i; } - void _default() { if (member_destructor_) @@ -2356,27 +2340,25 @@ class Union_LongDouble selected_member_ = 0x0FFFFFFFu; } - private: - long double& i_() + long double& i_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_i = {0.0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_i = {0.0}; - return m_i; - } + } + return m_i; + } int32_t m__d {2147483647}; @@ -2426,9 +2408,9 @@ class Union_Boolean switch (x.selected_member_) { - case 0x00000001: - j_() = x.m_j; - break; + case 0x00000001: + j_() = x.m_j; + break; } } @@ -2444,9 +2426,9 @@ class Union_Boolean switch (x.selected_member_) { - case 0x00000001: - j_() = std::move(x.m_j); - break; + case 0x00000001: + j_() = std::move(x.m_j); + break; } } @@ -2462,9 +2444,9 @@ class Union_Boolean switch (x.selected_member_) { - case 0x00000001: - j_() = x.m_j; - break; + case 0x00000001: + j_() = x.m_j; + break; } @@ -2482,9 +2464,9 @@ class Union_Boolean switch (x.selected_member_) { - case 0x00000001: - j_() = std::move(x.m_j); - break; + case 0x00000001: + j_() = std::move(x.m_j); + break; } @@ -2505,9 +2487,9 @@ class Union_Boolean { switch (selected_member_) { - case 0x00000001: - ret_value = (m_j == x.m_j); - break; + case 0x00000001: + ret_value = (m_j == x.m_j); + break; } } @@ -2537,18 +2519,19 @@ class Union_Boolean switch (__d) { - case 9: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 9: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -2604,7 +2587,6 @@ class Union_Boolean return m_j; } - void _default() { if (member_destructor_) @@ -2615,27 +2597,25 @@ class Union_Boolean selected_member_ = 0x0FFFFFFFu; } - private: - bool& j_() + bool& j_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_j = {false}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_j = {false}; - return m_j; - } + } + return m_j; + } int32_t m__d {2147483647}; @@ -2685,9 +2665,9 @@ class Union_Octet switch (x.selected_member_) { - case 0x00000001: - k_() = x.m_k; - break; + case 0x00000001: + k_() = x.m_k; + break; } } @@ -2703,9 +2683,9 @@ class Union_Octet switch (x.selected_member_) { - case 0x00000001: - k_() = std::move(x.m_k); - break; + case 0x00000001: + k_() = std::move(x.m_k); + break; } } @@ -2721,9 +2701,9 @@ class Union_Octet switch (x.selected_member_) { - case 0x00000001: - k_() = x.m_k; - break; + case 0x00000001: + k_() = x.m_k; + break; } @@ -2741,9 +2721,9 @@ class Union_Octet switch (x.selected_member_) { - case 0x00000001: - k_() = std::move(x.m_k); - break; + case 0x00000001: + k_() = std::move(x.m_k); + break; } @@ -2764,9 +2744,9 @@ class Union_Octet { switch (selected_member_) { - case 0x00000001: - ret_value = (m_k == x.m_k); - break; + case 0x00000001: + ret_value = (m_k == x.m_k); + break; } } @@ -2796,18 +2776,19 @@ class Union_Octet switch (__d) { - case 10: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 10: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -2863,7 +2844,6 @@ class Union_Octet return m_k; } - void _default() { if (member_destructor_) @@ -2874,27 +2854,25 @@ class Union_Octet selected_member_ = 0x0FFFFFFFu; } - private: - uint8_t& k_() + uint8_t& k_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_k = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_k = {0}; - return m_k; - } + } + return m_k; + } int32_t m__d {2147483647}; @@ -2944,9 +2922,9 @@ class Union_Char switch (x.selected_member_) { - case 0x00000001: - l_() = x.m_l; - break; + case 0x00000001: + l_() = x.m_l; + break; } } @@ -2962,9 +2940,9 @@ class Union_Char switch (x.selected_member_) { - case 0x00000001: - l_() = std::move(x.m_l); - break; + case 0x00000001: + l_() = std::move(x.m_l); + break; } } @@ -2980,9 +2958,9 @@ class Union_Char switch (x.selected_member_) { - case 0x00000001: - l_() = x.m_l; - break; + case 0x00000001: + l_() = x.m_l; + break; } @@ -3000,9 +2978,9 @@ class Union_Char switch (x.selected_member_) { - case 0x00000001: - l_() = std::move(x.m_l); - break; + case 0x00000001: + l_() = std::move(x.m_l); + break; } @@ -3023,9 +3001,9 @@ class Union_Char { switch (selected_member_) { - case 0x00000001: - ret_value = (m_l == x.m_l); - break; + case 0x00000001: + ret_value = (m_l == x.m_l); + break; } } @@ -3055,18 +3033,19 @@ class Union_Char switch (__d) { - case 11: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 11: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -3122,7 +3101,6 @@ class Union_Char return m_l; } - void _default() { if (member_destructor_) @@ -3133,27 +3111,25 @@ class Union_Char selected_member_ = 0x0FFFFFFFu; } - private: - char& l_() + char& l_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_l = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_l = {0}; - return m_l; - } + } + return m_l; + } int32_t m__d {2147483647}; @@ -3203,9 +3179,9 @@ class Union_WChar switch (x.selected_member_) { - case 0x00000001: - m_() = x.m_m; - break; + case 0x00000001: + m_() = x.m_m; + break; } } @@ -3221,9 +3197,9 @@ class Union_WChar switch (x.selected_member_) { - case 0x00000001: - m_() = std::move(x.m_m); - break; + case 0x00000001: + m_() = std::move(x.m_m); + break; } } @@ -3239,9 +3215,9 @@ class Union_WChar switch (x.selected_member_) { - case 0x00000001: - m_() = x.m_m; - break; + case 0x00000001: + m_() = x.m_m; + break; } @@ -3259,9 +3235,9 @@ class Union_WChar switch (x.selected_member_) { - case 0x00000001: - m_() = std::move(x.m_m); - break; + case 0x00000001: + m_() = std::move(x.m_m); + break; } @@ -3282,9 +3258,9 @@ class Union_WChar { switch (selected_member_) { - case 0x00000001: - ret_value = (m_m == x.m_m); - break; + case 0x00000001: + ret_value = (m_m == x.m_m); + break; } } @@ -3314,18 +3290,19 @@ class Union_WChar switch (__d) { - case 12: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 12: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -3381,7 +3358,6 @@ class Union_WChar return m_m; } - void _default() { if (member_destructor_) @@ -3392,27 +3368,25 @@ class Union_WChar selected_member_ = 0x0FFFFFFFu; } - private: - wchar_t& m_() + wchar_t& m_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_m = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_m = {0}; - return m_m; - } + } + return m_m; + } int32_t m__d {2147483647}; @@ -3462,9 +3436,9 @@ class Union_String switch (x.selected_member_) { - case 0x00000001: - n_() = x.m_n; - break; + case 0x00000001: + n_() = x.m_n; + break; } } @@ -3480,9 +3454,9 @@ class Union_String switch (x.selected_member_) { - case 0x00000001: - n_() = std::move(x.m_n); - break; + case 0x00000001: + n_() = std::move(x.m_n); + break; } } @@ -3498,9 +3472,9 @@ class Union_String switch (x.selected_member_) { - case 0x00000001: - n_() = x.m_n; - break; + case 0x00000001: + n_() = x.m_n; + break; } @@ -3518,9 +3492,9 @@ class Union_String switch (x.selected_member_) { - case 0x00000001: - n_() = std::move(x.m_n); - break; + case 0x00000001: + n_() = std::move(x.m_n); + break; } @@ -3541,9 +3515,9 @@ class Union_String { switch (selected_member_) { - case 0x00000001: - ret_value = (m_n == x.m_n); - break; + case 0x00000001: + ret_value = (m_n == x.m_n); + break; } } @@ -3573,18 +3547,19 @@ class Union_String switch (__d) { - case 13: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 13: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -3651,7 +3626,6 @@ class Union_String return m_n; } - void _default() { if (member_destructor_) @@ -3662,27 +3636,28 @@ class Union_String selected_member_ = 0x0FFFFFFFu; } - private: - std::string& n_() + std::string& n_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_n.~basic_string();}; - new(&m_n) std::string(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_n.~basic_string(); + }; + new(&m_n) std::string(); - return m_n; - } + } + return m_n; + } int32_t m__d {2147483647}; @@ -3732,9 +3707,9 @@ class Union_WString switch (x.selected_member_) { - case 0x00000001: - o_() = x.m_o; - break; + case 0x00000001: + o_() = x.m_o; + break; } } @@ -3750,9 +3725,9 @@ class Union_WString switch (x.selected_member_) { - case 0x00000001: - o_() = std::move(x.m_o); - break; + case 0x00000001: + o_() = std::move(x.m_o); + break; } } @@ -3768,9 +3743,9 @@ class Union_WString switch (x.selected_member_) { - case 0x00000001: - o_() = x.m_o; - break; + case 0x00000001: + o_() = x.m_o; + break; } @@ -3788,9 +3763,9 @@ class Union_WString switch (x.selected_member_) { - case 0x00000001: - o_() = std::move(x.m_o); - break; + case 0x00000001: + o_() = std::move(x.m_o); + break; } @@ -3811,9 +3786,9 @@ class Union_WString { switch (selected_member_) { - case 0x00000001: - ret_value = (m_o == x.m_o); - break; + case 0x00000001: + ret_value = (m_o == x.m_o); + break; } } @@ -3843,18 +3818,19 @@ class Union_WString switch (__d) { - case 14: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 14: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -3921,7 +3897,6 @@ class Union_WString return m_o; } - void _default() { if (member_destructor_) @@ -3932,27 +3907,28 @@ class Union_WString selected_member_ = 0x0FFFFFFFu; } - private: - std::wstring& o_() + std::wstring& o_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_o.~basic_string();}; - new(&m_o) std::wstring(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_o.~basic_string(); + }; + new(&m_o) std::wstring(); - return m_o; - } + } + return m_o; + } int32_t m__d {2147483647}; @@ -4002,9 +3978,9 @@ class Union_BoundedString switch (x.selected_member_) { - case 0x00000001: - bn_() = x.m_bn; - break; + case 0x00000001: + bn_() = x.m_bn; + break; } } @@ -4020,9 +3996,9 @@ class Union_BoundedString switch (x.selected_member_) { - case 0x00000001: - bn_() = std::move(x.m_bn); - break; + case 0x00000001: + bn_() = std::move(x.m_bn); + break; } } @@ -4038,9 +4014,9 @@ class Union_BoundedString switch (x.selected_member_) { - case 0x00000001: - bn_() = x.m_bn; - break; + case 0x00000001: + bn_() = x.m_bn; + break; } @@ -4058,9 +4034,9 @@ class Union_BoundedString switch (x.selected_member_) { - case 0x00000001: - bn_() = std::move(x.m_bn); - break; + case 0x00000001: + bn_() = std::move(x.m_bn); + break; } @@ -4081,9 +4057,9 @@ class Union_BoundedString { switch (selected_member_) { - case 0x00000001: - ret_value = (m_bn == x.m_bn); - break; + case 0x00000001: + ret_value = (m_bn == x.m_bn); + break; } } @@ -4113,18 +4089,19 @@ class Union_BoundedString switch (__d) { - case 13: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 13: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -4191,7 +4168,6 @@ class Union_BoundedString return m_bn; } - void _default() { if (member_destructor_) @@ -4202,27 +4178,28 @@ class Union_BoundedString selected_member_ = 0x0FFFFFFFu; } - private: - Inner_alias_bounded_string_helper& bn_() + Inner_alias_bounded_string_helper& bn_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_bn.~Inner_alias_bounded_string_helper();}; - new(&m_bn) Inner_alias_bounded_string_helper(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_bn.~Inner_alias_bounded_string_helper(); + }; + new(&m_bn) Inner_alias_bounded_string_helper(); - return m_bn; - } + } + return m_bn; + } int32_t m__d {2147483647}; @@ -4272,9 +4249,9 @@ class Union_BoundedWString switch (x.selected_member_) { - case 0x00000001: - bo_() = x.m_bo; - break; + case 0x00000001: + bo_() = x.m_bo; + break; } } @@ -4290,9 +4267,9 @@ class Union_BoundedWString switch (x.selected_member_) { - case 0x00000001: - bo_() = std::move(x.m_bo); - break; + case 0x00000001: + bo_() = std::move(x.m_bo); + break; } } @@ -4308,9 +4285,9 @@ class Union_BoundedWString switch (x.selected_member_) { - case 0x00000001: - bo_() = x.m_bo; - break; + case 0x00000001: + bo_() = x.m_bo; + break; } @@ -4328,9 +4305,9 @@ class Union_BoundedWString switch (x.selected_member_) { - case 0x00000001: - bo_() = std::move(x.m_bo); - break; + case 0x00000001: + bo_() = std::move(x.m_bo); + break; } @@ -4351,9 +4328,9 @@ class Union_BoundedWString { switch (selected_member_) { - case 0x00000001: - ret_value = (m_bo == x.m_bo); - break; + case 0x00000001: + ret_value = (m_bo == x.m_bo); + break; } } @@ -4383,18 +4360,19 @@ class Union_BoundedWString switch (__d) { - case 14: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 14: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -4461,7 +4439,6 @@ class Union_BoundedWString return m_bo; } - void _default() { if (member_destructor_) @@ -4472,27 +4449,28 @@ class Union_BoundedWString selected_member_ = 0x0FFFFFFFu; } - private: - Inner_alias_bounded_wstring_helper& bo_() + Inner_alias_bounded_wstring_helper& bo_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_bo.~Inner_alias_bounded_wstring_helper();}; - new(&m_bo) Inner_alias_bounded_wstring_helper(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_bo.~Inner_alias_bounded_wstring_helper(); + }; + new(&m_bo) Inner_alias_bounded_wstring_helper(); - return m_bo; - } + } + return m_bo; + } int32_t m__d {2147483647}; @@ -4542,9 +4520,9 @@ class Union_InnerEnumHelper switch (x.selected_member_) { - case 0x00000001: - p_() = x.m_p; - break; + case 0x00000001: + p_() = x.m_p; + break; } } @@ -4560,9 +4538,9 @@ class Union_InnerEnumHelper switch (x.selected_member_) { - case 0x00000001: - p_() = std::move(x.m_p); - break; + case 0x00000001: + p_() = std::move(x.m_p); + break; } } @@ -4578,9 +4556,9 @@ class Union_InnerEnumHelper switch (x.selected_member_) { - case 0x00000001: - p_() = x.m_p; - break; + case 0x00000001: + p_() = x.m_p; + break; } @@ -4598,9 +4576,9 @@ class Union_InnerEnumHelper switch (x.selected_member_) { - case 0x00000001: - p_() = std::move(x.m_p); - break; + case 0x00000001: + p_() = std::move(x.m_p); + break; } @@ -4621,9 +4599,9 @@ class Union_InnerEnumHelper { switch (selected_member_) { - case 0x00000001: - ret_value = (m_p == x.m_p); - break; + case 0x00000001: + ret_value = (m_p == x.m_p); + break; } } @@ -4653,18 +4631,19 @@ class Union_InnerEnumHelper switch (__d) { - case 15: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 15: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -4720,7 +4699,6 @@ class Union_InnerEnumHelper return m_p; } - void _default() { if (member_destructor_) @@ -4731,27 +4709,25 @@ class Union_InnerEnumHelper selected_member_ = 0x0FFFFFFFu; } - private: - InnerEnumHelper& p_() + InnerEnumHelper& p_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_p = {InnerEnumHelper::ENUM_VALUE_1}; + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_p = {InnerEnumHelper::ENUM_VALUE_1}; - return m_p; - } + } + return m_p; + } int32_t m__d {2147483647}; @@ -4801,9 +4777,9 @@ class Union_InnerBitMaskHelper switch (x.selected_member_) { - case 0x00000001: - q_() = x.m_q; - break; + case 0x00000001: + q_() = x.m_q; + break; } } @@ -4819,9 +4795,9 @@ class Union_InnerBitMaskHelper switch (x.selected_member_) { - case 0x00000001: - q_() = std::move(x.m_q); - break; + case 0x00000001: + q_() = std::move(x.m_q); + break; } } @@ -4837,9 +4813,9 @@ class Union_InnerBitMaskHelper switch (x.selected_member_) { - case 0x00000001: - q_() = x.m_q; - break; + case 0x00000001: + q_() = x.m_q; + break; } @@ -4857,9 +4833,9 @@ class Union_InnerBitMaskHelper switch (x.selected_member_) { - case 0x00000001: - q_() = std::move(x.m_q); - break; + case 0x00000001: + q_() = std::move(x.m_q); + break; } @@ -4880,9 +4856,9 @@ class Union_InnerBitMaskHelper { switch (selected_member_) { - case 0x00000001: - ret_value = (m_q == x.m_q); - break; + case 0x00000001: + ret_value = (m_q == x.m_q); + break; } } @@ -4912,18 +4888,19 @@ class Union_InnerBitMaskHelper switch (__d) { - case 16: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 16: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -4990,7 +4967,6 @@ class Union_InnerBitMaskHelper return m_q; } - void _default() { if (member_destructor_) @@ -5001,27 +4977,28 @@ class Union_InnerBitMaskHelper selected_member_ = 0x0FFFFFFFu; } - private: - InnerBitMaskHelper& q_() + InnerBitMaskHelper& q_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_q.~InnerBitMaskHelper();}; - new(&m_q) InnerBitMaskHelper(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_q.~InnerBitMaskHelper(); + }; + new(&m_q) InnerBitMaskHelper(); - return m_q; - } + } + return m_q; + } int32_t m__d {2147483647}; @@ -5071,9 +5048,9 @@ class Union_InnerAliasHelper switch (x.selected_member_) { - case 0x00000001: - r_() = x.m_r; - break; + case 0x00000001: + r_() = x.m_r; + break; } } @@ -5089,9 +5066,9 @@ class Union_InnerAliasHelper switch (x.selected_member_) { - case 0x00000001: - r_() = std::move(x.m_r); - break; + case 0x00000001: + r_() = std::move(x.m_r); + break; } } @@ -5107,9 +5084,9 @@ class Union_InnerAliasHelper switch (x.selected_member_) { - case 0x00000001: - r_() = x.m_r; - break; + case 0x00000001: + r_() = x.m_r; + break; } @@ -5127,9 +5104,9 @@ class Union_InnerAliasHelper switch (x.selected_member_) { - case 0x00000001: - r_() = std::move(x.m_r); - break; + case 0x00000001: + r_() = std::move(x.m_r); + break; } @@ -5150,9 +5127,9 @@ class Union_InnerAliasHelper { switch (selected_member_) { - case 0x00000001: - ret_value = (m_r == x.m_r); - break; + case 0x00000001: + ret_value = (m_r == x.m_r); + break; } } @@ -5182,18 +5159,19 @@ class Union_InnerAliasHelper switch (__d) { - case 17: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 17: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -5249,7 +5227,6 @@ class Union_InnerAliasHelper return m_r; } - void _default() { if (member_destructor_) @@ -5260,27 +5237,25 @@ class Union_InnerAliasHelper selected_member_ = 0x0FFFFFFFu; } - private: - InnerAliasHelper& r_() + InnerAliasHelper& r_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_r = {0}; - - } + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_r = {0}; - return m_r; - } + } + return m_r; + } int32_t m__d {2147483647}; @@ -5330,9 +5305,9 @@ class Union_Array switch (x.selected_member_) { - case 0x00000001: - s_() = x.m_s; - break; + case 0x00000001: + s_() = x.m_s; + break; } } @@ -5348,9 +5323,9 @@ class Union_Array switch (x.selected_member_) { - case 0x00000001: - s_() = std::move(x.m_s); - break; + case 0x00000001: + s_() = std::move(x.m_s); + break; } } @@ -5366,9 +5341,9 @@ class Union_Array switch (x.selected_member_) { - case 0x00000001: - s_() = x.m_s; - break; + case 0x00000001: + s_() = x.m_s; + break; } @@ -5386,9 +5361,9 @@ class Union_Array switch (x.selected_member_) { - case 0x00000001: - s_() = std::move(x.m_s); - break; + case 0x00000001: + s_() = std::move(x.m_s); + break; } @@ -5409,9 +5384,9 @@ class Union_Array { switch (selected_member_) { - case 0x00000001: - ret_value = (m_s == x.m_s); - break; + case 0x00000001: + ret_value = (m_s == x.m_s); + break; } } @@ -5441,18 +5416,19 @@ class Union_Array switch (__d) { - case 18: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 18: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -5519,7 +5495,6 @@ class Union_Array return m_s; } - void _default() { if (member_destructor_) @@ -5530,27 +5505,28 @@ class Union_Array selected_member_ = 0x0FFFFFFFu; } - private: - Inner_alias_array_helper& s_() + Inner_alias_array_helper& s_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_s.~Inner_alias_array_helper();}; - new(&m_s) Inner_alias_array_helper(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_s.~Inner_alias_array_helper(); + }; + new(&m_s) Inner_alias_array_helper(); - return m_s; - } + } + return m_s; + } int32_t m__d {2147483647}; @@ -5600,9 +5576,9 @@ class Union_Sequence switch (x.selected_member_) { - case 0x00000001: - t_() = x.m_t; - break; + case 0x00000001: + t_() = x.m_t; + break; } } @@ -5618,9 +5594,9 @@ class Union_Sequence switch (x.selected_member_) { - case 0x00000001: - t_() = std::move(x.m_t); - break; + case 0x00000001: + t_() = std::move(x.m_t); + break; } } @@ -5636,9 +5612,9 @@ class Union_Sequence switch (x.selected_member_) { - case 0x00000001: - t_() = x.m_t; - break; + case 0x00000001: + t_() = x.m_t; + break; } @@ -5656,9 +5632,9 @@ class Union_Sequence switch (x.selected_member_) { - case 0x00000001: - t_() = std::move(x.m_t); - break; + case 0x00000001: + t_() = std::move(x.m_t); + break; } @@ -5679,9 +5655,9 @@ class Union_Sequence { switch (selected_member_) { - case 0x00000001: - ret_value = (m_t == x.m_t); - break; + case 0x00000001: + ret_value = (m_t == x.m_t); + break; } } @@ -5711,18 +5687,19 @@ class Union_Sequence switch (__d) { - case 19: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 19: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -5789,7 +5766,6 @@ class Union_Sequence return m_t; } - void _default() { if (member_destructor_) @@ -5800,27 +5776,28 @@ class Union_Sequence selected_member_ = 0x0FFFFFFFu; } - private: - std::vector& t_() + std::vector& t_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_t.~vector();}; - new(&m_t) std::vector(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_t.~vector(); + }; + new(&m_t) std::vector(); - return m_t; - } + } + return m_t; + } int32_t m__d {2147483647}; @@ -5870,9 +5847,9 @@ class Union_Map switch (x.selected_member_) { - case 0x00000001: - u_() = x.m_u; - break; + case 0x00000001: + u_() = x.m_u; + break; } } @@ -5888,9 +5865,9 @@ class Union_Map switch (x.selected_member_) { - case 0x00000001: - u_() = std::move(x.m_u); - break; + case 0x00000001: + u_() = std::move(x.m_u); + break; } } @@ -5906,9 +5883,9 @@ class Union_Map switch (x.selected_member_) { - case 0x00000001: - u_() = x.m_u; - break; + case 0x00000001: + u_() = x.m_u; + break; } @@ -5926,9 +5903,9 @@ class Union_Map switch (x.selected_member_) { - case 0x00000001: - u_() = std::move(x.m_u); - break; + case 0x00000001: + u_() = std::move(x.m_u); + break; } @@ -5949,9 +5926,9 @@ class Union_Map { switch (selected_member_) { - case 0x00000001: - ret_value = (m_u == x.m_u); - break; + case 0x00000001: + ret_value = (m_u == x.m_u); + break; } } @@ -5981,18 +5958,19 @@ class Union_Map switch (__d) { - case 20: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 20: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -6059,7 +6037,6 @@ class Union_Map return m_u; } - void _default() { if (member_destructor_) @@ -6070,27 +6047,28 @@ class Union_Map selected_member_ = 0x0FFFFFFFu; } - private: - std::map& u_() + std::map& u_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_u.~map();}; - new(&m_u) std::map(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_u.~map(); + }; + new(&m_u) std::map(); - return m_u; - } + } + return m_u; + } int32_t m__d {2147483647}; @@ -6140,9 +6118,9 @@ class Union_InnerUnionHelper switch (x.selected_member_) { - case 0x00000001: - v_() = x.m_v; - break; + case 0x00000001: + v_() = x.m_v; + break; } } @@ -6158,9 +6136,9 @@ class Union_InnerUnionHelper switch (x.selected_member_) { - case 0x00000001: - v_() = std::move(x.m_v); - break; + case 0x00000001: + v_() = std::move(x.m_v); + break; } } @@ -6176,9 +6154,9 @@ class Union_InnerUnionHelper switch (x.selected_member_) { - case 0x00000001: - v_() = x.m_v; - break; + case 0x00000001: + v_() = x.m_v; + break; } @@ -6196,9 +6174,9 @@ class Union_InnerUnionHelper switch (x.selected_member_) { - case 0x00000001: - v_() = std::move(x.m_v); - break; + case 0x00000001: + v_() = std::move(x.m_v); + break; } @@ -6219,9 +6197,9 @@ class Union_InnerUnionHelper { switch (selected_member_) { - case 0x00000001: - ret_value = (m_v == x.m_v); - break; + case 0x00000001: + ret_value = (m_v == x.m_v); + break; } } @@ -6251,18 +6229,19 @@ class Union_InnerUnionHelper switch (__d) { - case 21: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 21: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -6329,7 +6308,6 @@ class Union_InnerUnionHelper return m_v; } - void _default() { if (member_destructor_) @@ -6340,27 +6318,28 @@ class Union_InnerUnionHelper selected_member_ = 0x0FFFFFFFu; } - private: - InnerUnionHelper& v_() + InnerUnionHelper& v_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_v.~InnerUnionHelper();}; - new(&m_v) InnerUnionHelper(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_v.~InnerUnionHelper(); + }; + new(&m_v) InnerUnionHelper(); - return m_v; - } + } + return m_v; + } int32_t m__d {2147483647}; @@ -6410,9 +6389,9 @@ class Union_InnerStructureHelper switch (x.selected_member_) { - case 0x00000001: - w_() = x.m_w; - break; + case 0x00000001: + w_() = x.m_w; + break; } } @@ -6428,9 +6407,9 @@ class Union_InnerStructureHelper switch (x.selected_member_) { - case 0x00000001: - w_() = std::move(x.m_w); - break; + case 0x00000001: + w_() = std::move(x.m_w); + break; } } @@ -6446,9 +6425,9 @@ class Union_InnerStructureHelper switch (x.selected_member_) { - case 0x00000001: - w_() = x.m_w; - break; + case 0x00000001: + w_() = x.m_w; + break; } @@ -6466,9 +6445,9 @@ class Union_InnerStructureHelper switch (x.selected_member_) { - case 0x00000001: - w_() = std::move(x.m_w); - break; + case 0x00000001: + w_() = std::move(x.m_w); + break; } @@ -6489,9 +6468,9 @@ class Union_InnerStructureHelper { switch (selected_member_) { - case 0x00000001: - ret_value = (m_w == x.m_w); - break; + case 0x00000001: + ret_value = (m_w == x.m_w); + break; } } @@ -6521,18 +6500,19 @@ class Union_InnerStructureHelper switch (__d) { - case 22: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 22: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -6599,7 +6579,6 @@ class Union_InnerStructureHelper return m_w; } - void _default() { if (member_destructor_) @@ -6610,27 +6589,28 @@ class Union_InnerStructureHelper selected_member_ = 0x0FFFFFFFu; } - private: - InnerStructureHelper& w_() + InnerStructureHelper& w_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_w.~InnerStructureHelper();}; - new(&m_w) InnerStructureHelper(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_w.~InnerStructureHelper(); + }; + new(&m_w) InnerStructureHelper(); - return m_w; - } + } + return m_w; + } int32_t m__d {2147483647}; @@ -6680,9 +6660,9 @@ class Union_InnerBitsetHelper switch (x.selected_member_) { - case 0x00000001: - x_() = x.m_x; - break; + case 0x00000001: + x_() = x.m_x; + break; } } @@ -6698,9 +6678,9 @@ class Union_InnerBitsetHelper switch (x.selected_member_) { - case 0x00000001: - x_() = std::move(x.m_x); - break; + case 0x00000001: + x_() = std::move(x.m_x); + break; } } @@ -6716,9 +6696,9 @@ class Union_InnerBitsetHelper switch (x.selected_member_) { - case 0x00000001: - x_() = x.m_x; - break; + case 0x00000001: + x_() = x.m_x; + break; } @@ -6736,9 +6716,9 @@ class Union_InnerBitsetHelper switch (x.selected_member_) { - case 0x00000001: - x_() = std::move(x.m_x); - break; + case 0x00000001: + x_() = std::move(x.m_x); + break; } @@ -6759,9 +6739,9 @@ class Union_InnerBitsetHelper { switch (selected_member_) { - case 0x00000001: - ret_value = (m_x == x.m_x); - break; + case 0x00000001: + ret_value = (m_x == x.m_x); + break; } } @@ -6791,18 +6771,19 @@ class Union_InnerBitsetHelper switch (__d) { - case 23: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 23: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -6869,7 +6850,6 @@ class Union_InnerBitsetHelper return m_x; } - void _default() { if (member_destructor_) @@ -6880,27 +6860,28 @@ class Union_InnerBitsetHelper selected_member_ = 0x0FFFFFFFu; } - private: - InnerBitsetHelper& x_() + InnerBitsetHelper& x_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_x.~InnerBitsetHelper();}; - new(&m_x) InnerBitsetHelper(); + member_destructor_(); + } - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() + { + m_x.~InnerBitsetHelper(); + }; + new(&m_x) InnerBitsetHelper(); - return m_x; - } + } + return m_x; + } int32_t m__d {2147483647}; @@ -6950,13 +6931,13 @@ class Union_Discriminator_short switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -6972,13 +6953,13 @@ class Union_Discriminator_short switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -6994,13 +6975,13 @@ class Union_Discriminator_short switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -7018,13 +6999,13 @@ class Union_Discriminator_short switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -7045,13 +7026,13 @@ class Union_Discriminator_short { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -7081,25 +7062,26 @@ class Union_Discriminator_short switch (__d) { - case 1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case -2: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case -2: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -7155,7 +7137,6 @@ class Union_Discriminator_short return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -7197,7 +7178,6 @@ class Union_Discriminator_short return m_second; } - void _default() { if (member_destructor_) @@ -7208,45 +7188,43 @@ class Union_Discriminator_short selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } int16_t m__d {32767}; @@ -7297,13 +7275,13 @@ class Union_Discriminator_unsigned_short switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -7319,13 +7297,13 @@ class Union_Discriminator_unsigned_short switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -7341,13 +7319,13 @@ class Union_Discriminator_unsigned_short switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -7365,13 +7343,13 @@ class Union_Discriminator_unsigned_short switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -7392,13 +7370,13 @@ class Union_Discriminator_unsigned_short { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -7428,25 +7406,26 @@ class Union_Discriminator_unsigned_short switch (__d) { - case 1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 2: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 2: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -7502,7 +7481,6 @@ class Union_Discriminator_unsigned_short return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -7544,7 +7522,6 @@ class Union_Discriminator_unsigned_short return m_second; } - void _default() { if (member_destructor_) @@ -7555,45 +7532,43 @@ class Union_Discriminator_unsigned_short selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } uint16_t m__d {32767}; @@ -7644,13 +7619,13 @@ class Union_Discriminator_long switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -7666,13 +7641,13 @@ class Union_Discriminator_long switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -7688,13 +7663,13 @@ class Union_Discriminator_long switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -7712,13 +7687,13 @@ class Union_Discriminator_long switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -7739,13 +7714,13 @@ class Union_Discriminator_long { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -7775,25 +7750,26 @@ class Union_Discriminator_long switch (__d) { - case 1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case -2: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case -2: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -7849,7 +7825,6 @@ class Union_Discriminator_long return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -7891,7 +7866,6 @@ class Union_Discriminator_long return m_second; } - void _default() { if (member_destructor_) @@ -7902,45 +7876,43 @@ class Union_Discriminator_long selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } int32_t m__d {2147483647}; @@ -7991,13 +7963,13 @@ class Union_Discriminator_unsigned_long switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -8013,13 +7985,13 @@ class Union_Discriminator_unsigned_long switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -8035,13 +8007,13 @@ class Union_Discriminator_unsigned_long switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -8059,13 +8031,13 @@ class Union_Discriminator_unsigned_long switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -8086,13 +8058,13 @@ class Union_Discriminator_unsigned_long { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -8122,25 +8094,26 @@ class Union_Discriminator_unsigned_long switch (__d) { - case 1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 2: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 2: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -8196,7 +8169,6 @@ class Union_Discriminator_unsigned_long return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -8238,7 +8210,6 @@ class Union_Discriminator_unsigned_long return m_second; } - void _default() { if (member_destructor_) @@ -8249,45 +8220,43 @@ class Union_Discriminator_unsigned_long selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } uint32_t m__d {2147483647}; @@ -8338,13 +8307,13 @@ class Union_Discriminator_long_long switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -8360,13 +8329,13 @@ class Union_Discriminator_long_long switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -8382,13 +8351,13 @@ class Union_Discriminator_long_long switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -8406,13 +8375,13 @@ class Union_Discriminator_long_long switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -8433,13 +8402,13 @@ class Union_Discriminator_long_long { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -8469,25 +8438,26 @@ class Union_Discriminator_long_long switch (__d) { - case 1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case -2: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case -2: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -8543,7 +8513,6 @@ class Union_Discriminator_long_long return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -8585,7 +8554,6 @@ class Union_Discriminator_long_long return m_second; } - void _default() { if (member_destructor_) @@ -8596,45 +8564,43 @@ class Union_Discriminator_long_long selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } int64_t m__d {9223372036854775807}; @@ -8685,13 +8651,13 @@ class Union_Discriminator_unsigned_long_long switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -8707,13 +8673,13 @@ class Union_Discriminator_unsigned_long_long switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -8729,13 +8695,13 @@ class Union_Discriminator_unsigned_long_long switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -8753,13 +8719,13 @@ class Union_Discriminator_unsigned_long_long switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -8780,13 +8746,13 @@ class Union_Discriminator_unsigned_long_long { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -8816,25 +8782,26 @@ class Union_Discriminator_unsigned_long_long switch (__d) { - case 2: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 2: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 1: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -8890,7 +8857,6 @@ class Union_Discriminator_unsigned_long_long return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -8932,7 +8898,6 @@ class Union_Discriminator_unsigned_long_long return m_second; } - void _default() { if (member_destructor_) @@ -8943,45 +8908,43 @@ class Union_Discriminator_unsigned_long_long selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } uint64_t m__d {9223372036854775807}; @@ -9036,13 +8999,13 @@ class Union_Discriminator_boolean switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -9058,13 +9021,13 @@ class Union_Discriminator_boolean switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -9080,13 +9043,13 @@ class Union_Discriminator_boolean switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -9104,13 +9067,13 @@ class Union_Discriminator_boolean switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -9131,13 +9094,13 @@ class Union_Discriminator_boolean { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -9167,25 +9130,26 @@ class Union_Discriminator_boolean switch (__d) { - case true: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case true: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case false: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case false: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -9241,7 +9205,6 @@ class Union_Discriminator_boolean return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -9283,46 +9246,43 @@ class Union_Discriminator_boolean return m_second; } - - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } bool m__d {true}; @@ -9373,13 +9333,13 @@ class Union_Discriminator_octet switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -9395,13 +9355,13 @@ class Union_Discriminator_octet switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -9417,13 +9377,13 @@ class Union_Discriminator_octet switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -9441,13 +9401,13 @@ class Union_Discriminator_octet switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -9468,13 +9428,13 @@ class Union_Discriminator_octet { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -9504,25 +9464,26 @@ class Union_Discriminator_octet switch (__d) { - case 0: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 0: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 1: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -9578,7 +9539,6 @@ class Union_Discriminator_octet return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -9620,7 +9580,6 @@ class Union_Discriminator_octet return m_second; } - void _default() { if (member_destructor_) @@ -9631,45 +9590,43 @@ class Union_Discriminator_octet selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } uint8_t m__d {127}; @@ -9720,13 +9677,13 @@ class Union_Discriminator_char switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -9742,13 +9699,13 @@ class Union_Discriminator_char switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -9764,13 +9721,13 @@ class Union_Discriminator_char switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -9788,13 +9745,13 @@ class Union_Discriminator_char switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -9815,13 +9772,13 @@ class Union_Discriminator_char { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -9851,25 +9808,26 @@ class Union_Discriminator_char switch (__d) { - case 'a': - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 'a': + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 'b': - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 'b': + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -9925,7 +9883,6 @@ class Union_Discriminator_char return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -9967,7 +9924,6 @@ class Union_Discriminator_char return m_second; } - void _default() { if (member_destructor_) @@ -9978,45 +9934,43 @@ class Union_Discriminator_char selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } char m__d {127}; @@ -10067,13 +10021,13 @@ class Union_Discriminator_wchar switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -10089,13 +10043,13 @@ class Union_Discriminator_wchar switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -10111,13 +10065,13 @@ class Union_Discriminator_wchar switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -10135,13 +10089,13 @@ class Union_Discriminator_wchar switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -10162,13 +10116,13 @@ class Union_Discriminator_wchar { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -10198,25 +10152,26 @@ class Union_Discriminator_wchar switch (__d) { - case L'a': - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case L'a': + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case L'b': - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case L'b': + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -10272,7 +10227,6 @@ class Union_Discriminator_wchar return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -10314,7 +10268,6 @@ class Union_Discriminator_wchar return m_second; } - void _default() { if (member_destructor_) @@ -10325,45 +10278,43 @@ class Union_Discriminator_wchar selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } wchar_t m__d {32767}; @@ -10418,17 +10369,17 @@ class Union_Discriminator_enum switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; - case 0x00000003: - third_() = x.m_third; - break; + case 0x00000003: + third_() = x.m_third; + break; } } @@ -10444,17 +10395,17 @@ class Union_Discriminator_enum switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; - case 0x00000003: - third_() = std::move(x.m_third); - break; + case 0x00000003: + third_() = std::move(x.m_third); + break; } } @@ -10470,17 +10421,17 @@ class Union_Discriminator_enum switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; - case 0x00000003: - third_() = x.m_third; - break; + case 0x00000003: + third_() = x.m_third; + break; } @@ -10498,17 +10449,17 @@ class Union_Discriminator_enum switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; - case 0x00000003: - third_() = std::move(x.m_third); - break; + case 0x00000003: + third_() = std::move(x.m_third); + break; } @@ -10529,17 +10480,17 @@ class Union_Discriminator_enum { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; - case 0x00000003: - ret_value = (m_third == x.m_third); - break; + case 0x00000003: + ret_value = (m_third == x.m_third); + break; } } @@ -10569,32 +10520,33 @@ class Union_Discriminator_enum switch (__d) { - case InnerEnumHelper::ENUM_VALUE_1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case InnerEnumHelper::ENUM_VALUE_1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case InnerEnumHelper::ENUM_VALUE_2: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case InnerEnumHelper::ENUM_VALUE_2: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; - default: - if (0x00000003 == selected_member_) - { - valid_discriminator = true; - } - break; + default: + if (0x00000003 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -10650,7 +10602,6 @@ class Union_Discriminator_enum return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -10692,7 +10643,6 @@ class Union_Discriminator_enum return m_second; } - /*! * @brief This function sets a value in member third * @param _third New value for member third @@ -10734,64 +10684,61 @@ class Union_Discriminator_enum return m_third; } - - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - } + } - return m_second; - } + return m_second; + } - uint8_t& third_() + uint8_t& third_() + { + if (0x00000003 != selected_member_) + { + if (member_destructor_) { - if (0x00000003 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000003; - member_destructor_ = nullptr; - m_third = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000003; + member_destructor_ = nullptr; + m_third = {0}; - return m_third; - } + } + return m_third; + } InnerEnumHelper m__d {InnerEnumHelper::ENUM_VALUE_3}; @@ -10847,13 +10794,13 @@ class Union_Discriminator_enum_labels switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -10869,13 +10816,13 @@ class Union_Discriminator_enum_labels switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -10891,13 +10838,13 @@ class Union_Discriminator_enum_labels switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -10915,13 +10862,13 @@ class Union_Discriminator_enum_labels switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -10942,13 +10889,13 @@ class Union_Discriminator_enum_labels { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -10978,26 +10925,27 @@ class Union_Discriminator_enum_labels switch (__d) { - case InnerEnumHelper::ENUM_VALUE_3: - case InnerEnumHelper::ENUM_VALUE_1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case InnerEnumHelper::ENUM_VALUE_3: + case InnerEnumHelper::ENUM_VALUE_1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case InnerEnumHelper::ENUM_VALUE_2: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case InnerEnumHelper::ENUM_VALUE_2: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -11053,7 +11001,6 @@ class Union_Discriminator_enum_labels return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -11095,7 +11042,6 @@ class Union_Discriminator_enum_labels return m_second; } - void _default() { if (member_destructor_) @@ -11106,45 +11052,43 @@ class Union_Discriminator_enum_labels selected_member_ = 0x0FFFFFFFu; } - private: - int16_t& first_() + int16_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int16_t& second_() + int16_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } InnerEnumHelper m__d {InnerEnumHelper::ENUM_VALUE_3}; @@ -11195,13 +11139,13 @@ class Union_Discriminator_alias switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } } @@ -11217,13 +11161,13 @@ class Union_Discriminator_alias switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } } @@ -11239,13 +11183,13 @@ class Union_Discriminator_alias switch (x.selected_member_) { - case 0x00000001: - first_() = x.m_first; - break; + case 0x00000001: + first_() = x.m_first; + break; - case 0x00000002: - second_() = x.m_second; - break; + case 0x00000002: + second_() = x.m_second; + break; } @@ -11263,13 +11207,13 @@ class Union_Discriminator_alias switch (x.selected_member_) { - case 0x00000001: - first_() = std::move(x.m_first); - break; + case 0x00000001: + first_() = std::move(x.m_first); + break; - case 0x00000002: - second_() = std::move(x.m_second); - break; + case 0x00000002: + second_() = std::move(x.m_second); + break; } @@ -11290,13 +11234,13 @@ class Union_Discriminator_alias { switch (selected_member_) { - case 0x00000001: - ret_value = (m_first == x.m_first); - break; + case 0x00000001: + ret_value = (m_first == x.m_first); + break; - case 0x00000002: - ret_value = (m_second == x.m_second); - break; + case 0x00000002: + ret_value = (m_second == x.m_second); + break; } } @@ -11326,25 +11270,26 @@ class Union_Discriminator_alias switch (__d) { - case 1: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 2: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 2: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -11400,7 +11345,6 @@ class Union_Discriminator_alias return m_first; } - /*! * @brief This function sets a value in member second * @param _second New value for member second @@ -11442,7 +11386,6 @@ class Union_Discriminator_alias return m_second; } - void _default() { if (member_destructor_) @@ -11453,45 +11396,43 @@ class Union_Discriminator_alias selected_member_ = 0x0FFFFFFFu; } - private: - int32_t& first_() + int32_t& first_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_first = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_first = {0}; - } + } - return m_first; - } + return m_first; + } - int64_t& second_() + int64_t& second_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_second = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_second = {0}; - return m_second; - } + } + return m_second; + } InnerAliasHelper m__d {2147483647}; @@ -11542,25 +11483,25 @@ class Union_Several_Fields switch (x.selected_member_) { - case 0x00000001: - a_() = x.m_a; - break; + case 0x00000001: + a_() = x.m_a; + break; - case 0x00000002: - b_() = x.m_b; - break; + case 0x00000002: + b_() = x.m_b; + break; - case 0x00000003: - c_() = x.m_c; - break; + case 0x00000003: + c_() = x.m_c; + break; - case 0x00000004: - d_() = x.m_d; - break; + case 0x00000004: + d_() = x.m_d; + break; - case 0x00000005: - e_() = x.m_e; - break; + case 0x00000005: + e_() = x.m_e; + break; } } @@ -11576,25 +11517,25 @@ class Union_Several_Fields switch (x.selected_member_) { - case 0x00000001: - a_() = std::move(x.m_a); - break; + case 0x00000001: + a_() = std::move(x.m_a); + break; - case 0x00000002: - b_() = std::move(x.m_b); - break; + case 0x00000002: + b_() = std::move(x.m_b); + break; - case 0x00000003: - c_() = std::move(x.m_c); - break; + case 0x00000003: + c_() = std::move(x.m_c); + break; - case 0x00000004: - d_() = std::move(x.m_d); - break; + case 0x00000004: + d_() = std::move(x.m_d); + break; - case 0x00000005: - e_() = std::move(x.m_e); - break; + case 0x00000005: + e_() = std::move(x.m_e); + break; } } @@ -11610,25 +11551,25 @@ class Union_Several_Fields switch (x.selected_member_) { - case 0x00000001: - a_() = x.m_a; - break; + case 0x00000001: + a_() = x.m_a; + break; - case 0x00000002: - b_() = x.m_b; - break; + case 0x00000002: + b_() = x.m_b; + break; - case 0x00000003: - c_() = x.m_c; - break; + case 0x00000003: + c_() = x.m_c; + break; - case 0x00000004: - d_() = x.m_d; - break; + case 0x00000004: + d_() = x.m_d; + break; - case 0x00000005: - e_() = x.m_e; - break; + case 0x00000005: + e_() = x.m_e; + break; } @@ -11646,25 +11587,25 @@ class Union_Several_Fields switch (x.selected_member_) { - case 0x00000001: - a_() = std::move(x.m_a); - break; + case 0x00000001: + a_() = std::move(x.m_a); + break; - case 0x00000002: - b_() = std::move(x.m_b); - break; + case 0x00000002: + b_() = std::move(x.m_b); + break; - case 0x00000003: - c_() = std::move(x.m_c); - break; + case 0x00000003: + c_() = std::move(x.m_c); + break; - case 0x00000004: - d_() = std::move(x.m_d); - break; + case 0x00000004: + d_() = std::move(x.m_d); + break; - case 0x00000005: - e_() = std::move(x.m_e); - break; + case 0x00000005: + e_() = std::move(x.m_e); + break; } @@ -11685,25 +11626,25 @@ class Union_Several_Fields { switch (selected_member_) { - case 0x00000001: - ret_value = (m_a == x.m_a); - break; + case 0x00000001: + ret_value = (m_a == x.m_a); + break; - case 0x00000002: - ret_value = (m_b == x.m_b); - break; + case 0x00000002: + ret_value = (m_b == x.m_b); + break; - case 0x00000003: - ret_value = (m_c == x.m_c); - break; + case 0x00000003: + ret_value = (m_c == x.m_c); + break; - case 0x00000004: - ret_value = (m_d == x.m_d); - break; + case 0x00000004: + ret_value = (m_d == x.m_d); + break; - case 0x00000005: - ret_value = (m_e == x.m_e); - break; + case 0x00000005: + ret_value = (m_e == x.m_e); + break; } } @@ -11733,46 +11674,47 @@ class Union_Several_Fields switch (__d) { - case 0: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 0: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 1: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; - case 2: - if (0x00000003 == selected_member_) - { - valid_discriminator = true; - } - break; + case 2: + if (0x00000003 == selected_member_) + { + valid_discriminator = true; + } + break; - case 3: - if (0x00000004 == selected_member_) - { - valid_discriminator = true; - } - break; + case 3: + if (0x00000004 == selected_member_) + { + valid_discriminator = true; + } + break; - case 4: - if (0x00000005 == selected_member_) - { - valid_discriminator = true; - } - break; + case 4: + if (0x00000005 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -11839,7 +11781,6 @@ class Union_Several_Fields return m_a; } - /*! * @brief This function copies the value in member b * @param _b New value to be copied in member b @@ -11892,7 +11833,6 @@ class Union_Several_Fields return m_b; } - /*! * @brief This function copies the value in member c * @param _c New value to be copied in member c @@ -11945,7 +11885,6 @@ class Union_Several_Fields return m_c; } - /*! * @brief This function copies the value in member d * @param _d New value to be copied in member d @@ -11998,7 +11937,6 @@ class Union_Several_Fields return m_d; } - /*! * @brief This function copies the value in member e * @param _e New value to be copied in member e @@ -12051,7 +11989,6 @@ class Union_Several_Fields return m_e; } - void _default() { if (member_destructor_) @@ -12062,99 +11999,112 @@ class Union_Several_Fields selected_member_ = 0x0FFFFFFFu; } - private: - InnerStructureHelper& a_() + InnerStructureHelper& a_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) + member_destructor_(); + } + + selected_member_ = 0x00000001; + member_destructor_ = [&]() { - member_destructor_(); - } + m_a.~InnerStructureHelper(); + }; + new(&m_a) InnerStructureHelper(); - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_a.~InnerStructureHelper();}; - new(&m_a) InnerStructureHelper(); + } - } + return m_a; + } - return m_a; + InnerEmptyStructureHelper& b_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - InnerEmptyStructureHelper& b_() - { - if (0x00000002 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000002; + member_destructor_ = [&]() { - member_destructor_(); - } + m_b.~InnerEmptyStructureHelper(); + }; + new(&m_b) InnerEmptyStructureHelper(); - selected_member_ = 0x00000002; - member_destructor_ = [&]() {m_b.~InnerEmptyStructureHelper();}; - new(&m_b) InnerEmptyStructureHelper(); + } - } + return m_b; + } - return m_b; + Inner_alias_bounded_string_helper& c_() + { + if (0x00000003 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - Inner_alias_bounded_string_helper& c_() - { - if (0x00000003 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000003; + member_destructor_ = [&]() { - member_destructor_(); - } + m_c.~Inner_alias_bounded_string_helper(); + }; + new(&m_c) Inner_alias_bounded_string_helper(); - selected_member_ = 0x00000003; - member_destructor_ = [&]() {m_c.~Inner_alias_bounded_string_helper();}; - new(&m_c) Inner_alias_bounded_string_helper(); + } - } + return m_c; + } - return m_c; + Inner_alias_array_helper& d_() + { + if (0x00000004 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - Inner_alias_array_helper& d_() - { - if (0x00000004 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000004; + member_destructor_ = [&]() { - member_destructor_(); - } + m_d.~Inner_alias_array_helper(); + }; + new(&m_d) Inner_alias_array_helper(); - selected_member_ = 0x00000004; - member_destructor_ = [&]() {m_d.~Inner_alias_array_helper();}; - new(&m_d) Inner_alias_array_helper(); + } - } + return m_d; + } - return m_d; + Inner_alias_sequence_helper& e_() + { + if (0x00000005 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - Inner_alias_sequence_helper& e_() - { - if (0x00000005 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000005; + member_destructor_ = [&]() { - member_destructor_(); - } - - selected_member_ = 0x00000005; - member_destructor_ = [&]() {m_e.~Inner_alias_sequence_helper();}; - new(&m_e) Inner_alias_sequence_helper(); + m_e.~Inner_alias_sequence_helper(); + }; + new(&m_e) Inner_alias_sequence_helper(); - } - - return m_e; - } + } + return m_e; + } int32_t m__d {2147483647}; @@ -12185,7 +12135,10 @@ class Union_Several_Fields_With_Default eProsima_user_DllExport Union_Several_Fields_With_Default() { selected_member_ = 0x00000006; - member_destructor_ = [&]() {m_f.~vector();}; + member_destructor_ = [&]() + { + m_f.~vector(); + }; new(&m_f) std::vector(); } @@ -12212,29 +12165,29 @@ class Union_Several_Fields_With_Default switch (x.selected_member_) { - case 0x00000001: - a_() = x.m_a; - break; + case 0x00000001: + a_() = x.m_a; + break; - case 0x00000002: - b_() = x.m_b; - break; + case 0x00000002: + b_() = x.m_b; + break; - case 0x00000003: - c_() = x.m_c; - break; + case 0x00000003: + c_() = x.m_c; + break; - case 0x00000004: - d_() = x.m_d; - break; + case 0x00000004: + d_() = x.m_d; + break; - case 0x00000005: - e_() = x.m_e; - break; + case 0x00000005: + e_() = x.m_e; + break; - case 0x00000006: - f_() = x.m_f; - break; + case 0x00000006: + f_() = x.m_f; + break; } } @@ -12250,29 +12203,29 @@ class Union_Several_Fields_With_Default switch (x.selected_member_) { - case 0x00000001: - a_() = std::move(x.m_a); - break; + case 0x00000001: + a_() = std::move(x.m_a); + break; - case 0x00000002: - b_() = std::move(x.m_b); - break; + case 0x00000002: + b_() = std::move(x.m_b); + break; - case 0x00000003: - c_() = std::move(x.m_c); - break; + case 0x00000003: + c_() = std::move(x.m_c); + break; - case 0x00000004: - d_() = std::move(x.m_d); - break; + case 0x00000004: + d_() = std::move(x.m_d); + break; - case 0x00000005: - e_() = std::move(x.m_e); - break; + case 0x00000005: + e_() = std::move(x.m_e); + break; - case 0x00000006: - f_() = std::move(x.m_f); - break; + case 0x00000006: + f_() = std::move(x.m_f); + break; } } @@ -12288,29 +12241,29 @@ class Union_Several_Fields_With_Default switch (x.selected_member_) { - case 0x00000001: - a_() = x.m_a; - break; + case 0x00000001: + a_() = x.m_a; + break; - case 0x00000002: - b_() = x.m_b; - break; + case 0x00000002: + b_() = x.m_b; + break; - case 0x00000003: - c_() = x.m_c; - break; + case 0x00000003: + c_() = x.m_c; + break; - case 0x00000004: - d_() = x.m_d; - break; + case 0x00000004: + d_() = x.m_d; + break; - case 0x00000005: - e_() = x.m_e; - break; + case 0x00000005: + e_() = x.m_e; + break; - case 0x00000006: - f_() = x.m_f; - break; + case 0x00000006: + f_() = x.m_f; + break; } @@ -12328,29 +12281,29 @@ class Union_Several_Fields_With_Default switch (x.selected_member_) { - case 0x00000001: - a_() = std::move(x.m_a); - break; + case 0x00000001: + a_() = std::move(x.m_a); + break; - case 0x00000002: - b_() = std::move(x.m_b); - break; + case 0x00000002: + b_() = std::move(x.m_b); + break; - case 0x00000003: - c_() = std::move(x.m_c); - break; + case 0x00000003: + c_() = std::move(x.m_c); + break; - case 0x00000004: - d_() = std::move(x.m_d); - break; + case 0x00000004: + d_() = std::move(x.m_d); + break; - case 0x00000005: - e_() = std::move(x.m_e); - break; + case 0x00000005: + e_() = std::move(x.m_e); + break; - case 0x00000006: - f_() = std::move(x.m_f); - break; + case 0x00000006: + f_() = std::move(x.m_f); + break; } @@ -12371,29 +12324,29 @@ class Union_Several_Fields_With_Default { switch (selected_member_) { - case 0x00000001: - ret_value = (m_a == x.m_a); - break; + case 0x00000001: + ret_value = (m_a == x.m_a); + break; - case 0x00000002: - ret_value = (m_b == x.m_b); - break; + case 0x00000002: + ret_value = (m_b == x.m_b); + break; - case 0x00000003: - ret_value = (m_c == x.m_c); - break; + case 0x00000003: + ret_value = (m_c == x.m_c); + break; - case 0x00000004: - ret_value = (m_d == x.m_d); - break; + case 0x00000004: + ret_value = (m_d == x.m_d); + break; - case 0x00000005: - ret_value = (m_e == x.m_e); - break; + case 0x00000005: + ret_value = (m_e == x.m_e); + break; - case 0x00000006: - ret_value = (m_f == x.m_f); - break; + case 0x00000006: + ret_value = (m_f == x.m_f); + break; } } @@ -12423,53 +12376,54 @@ class Union_Several_Fields_With_Default switch (__d) { - case 0: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 0: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 1: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; - case 2: - if (0x00000003 == selected_member_) - { - valid_discriminator = true; - } - break; + case 2: + if (0x00000003 == selected_member_) + { + valid_discriminator = true; + } + break; - case 3: - if (0x00000004 == selected_member_) - { - valid_discriminator = true; - } - break; + case 3: + if (0x00000004 == selected_member_) + { + valid_discriminator = true; + } + break; - case 4: - if (0x00000005 == selected_member_) - { - valid_discriminator = true; - } - break; + case 4: + if (0x00000005 == selected_member_) + { + valid_discriminator = true; + } + break; - default: - if (0x00000006 == selected_member_) - { - valid_discriminator = true; - } - break; + default: + if (0x00000006 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -12536,7 +12490,6 @@ class Union_Several_Fields_With_Default return m_a; } - /*! * @brief This function copies the value in member b * @param _b New value to be copied in member b @@ -12589,7 +12542,6 @@ class Union_Several_Fields_With_Default return m_b; } - /*! * @brief This function copies the value in member c * @param _c New value to be copied in member c @@ -12642,7 +12594,6 @@ class Union_Several_Fields_With_Default return m_c; } - /*! * @brief This function copies the value in member d * @param _d New value to be copied in member d @@ -12695,7 +12646,6 @@ class Union_Several_Fields_With_Default return m_d; } - /*! * @brief This function copies the value in member e * @param _e New value to be copied in member e @@ -12748,7 +12698,6 @@ class Union_Several_Fields_With_Default return m_e; } - /*! * @brief This function copies the value in member f * @param _f New value to be copied in member f @@ -12801,118 +12750,133 @@ class Union_Several_Fields_With_Default return m_f; } - - private: - InnerStructureHelper& a_() + InnerStructureHelper& a_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_a.~InnerStructureHelper();}; - new(&m_a) InnerStructureHelper(); - - } - - return m_a; + member_destructor_(); } - InnerEmptyStructureHelper& b_() - { - if (0x00000002 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000001; + member_destructor_ = [&]() { - member_destructor_(); - } - - selected_member_ = 0x00000002; - member_destructor_ = [&]() {m_b.~InnerEmptyStructureHelper();}; - new(&m_b) InnerEmptyStructureHelper(); + m_a.~InnerStructureHelper(); + }; + new(&m_a) InnerStructureHelper(); - } + } - return m_b; - } + return m_a; + } - Inner_alias_bounded_string_helper& c_() + InnerEmptyStructureHelper& b_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000003 != selected_member_) - { - if (member_destructor_) + member_destructor_(); + } + + selected_member_ = 0x00000002; + member_destructor_ = [&]() { - member_destructor_(); - } + m_b.~InnerEmptyStructureHelper(); + }; + new(&m_b) InnerEmptyStructureHelper(); - selected_member_ = 0x00000003; - member_destructor_ = [&]() {m_c.~Inner_alias_bounded_string_helper();}; - new(&m_c) Inner_alias_bounded_string_helper(); + } - } + return m_b; + } - return m_c; + Inner_alias_bounded_string_helper& c_() + { + if (0x00000003 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - Inner_alias_array_helper& d_() - { - if (0x00000004 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000003; + member_destructor_ = [&]() { - member_destructor_(); - } + m_c.~Inner_alias_bounded_string_helper(); + }; + new(&m_c) Inner_alias_bounded_string_helper(); - selected_member_ = 0x00000004; - member_destructor_ = [&]() {m_d.~Inner_alias_array_helper();}; - new(&m_d) Inner_alias_array_helper(); + } - } + return m_c; + } - return m_d; + Inner_alias_array_helper& d_() + { + if (0x00000004 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - Inner_alias_sequence_helper& e_() - { - if (0x00000005 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000004; + member_destructor_ = [&]() { - member_destructor_(); - } + m_d.~Inner_alias_array_helper(); + }; + new(&m_d) Inner_alias_array_helper(); - selected_member_ = 0x00000005; - member_destructor_ = [&]() {m_e.~Inner_alias_sequence_helper();}; - new(&m_e) Inner_alias_sequence_helper(); + } - } + return m_d; + } - return m_e; + Inner_alias_sequence_helper& e_() + { + if (0x00000005 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - std::vector& f_() - { - if (0x00000006 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000005; + member_destructor_ = [&]() { - member_destructor_(); - } + m_e.~Inner_alias_sequence_helper(); + }; + new(&m_e) Inner_alias_sequence_helper(); - selected_member_ = 0x00000006; - member_destructor_ = [&]() {m_f.~vector();}; - new(&m_f) std::vector(); + } - } + return m_e; + } - return m_f; + std::vector& f_() + { + if (0x00000006 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } + selected_member_ = 0x00000006; + member_destructor_ = [&]() + { + m_f.~vector(); + }; + new(&m_f) std::vector(); + + } + + return m_f; + } int32_t m__d {2147483647}; @@ -12959,7 +12923,7 @@ class UnionShort eProsima_user_DllExport UnionShort( const UnionShort& x) { - m_var_union_short = x.m_var_union_short; + m_var_union_short = x.m_var_union_short; } @@ -12981,7 +12945,7 @@ class UnionShort const UnionShort& x) { - m_var_union_short = x.m_var_union_short; + m_var_union_short = x.m_var_union_short; return *this; } @@ -13056,8 +13020,6 @@ class UnionShort return m_var_union_short; } - - private: Union_Short m_var_union_short; @@ -13092,7 +13054,7 @@ class UnionUShort eProsima_user_DllExport UnionUShort( const UnionUShort& x) { - m_var_union_ushort = x.m_var_union_ushort; + m_var_union_ushort = x.m_var_union_ushort; } @@ -13114,7 +13076,7 @@ class UnionUShort const UnionUShort& x) { - m_var_union_ushort = x.m_var_union_ushort; + m_var_union_ushort = x.m_var_union_ushort; return *this; } @@ -13189,8 +13151,6 @@ class UnionUShort return m_var_union_ushort; } - - private: Union_UShort m_var_union_ushort; @@ -13225,7 +13185,7 @@ class UnionLong eProsima_user_DllExport UnionLong( const UnionLong& x) { - m_var_union_long = x.m_var_union_long; + m_var_union_long = x.m_var_union_long; } @@ -13247,7 +13207,7 @@ class UnionLong const UnionLong& x) { - m_var_union_long = x.m_var_union_long; + m_var_union_long = x.m_var_union_long; return *this; } @@ -13322,8 +13282,6 @@ class UnionLong return m_var_union_long; } - - private: Union_Long m_var_union_long; @@ -13358,7 +13316,7 @@ class UnionULong eProsima_user_DllExport UnionULong( const UnionULong& x) { - m_var_union_ulong = x.m_var_union_ulong; + m_var_union_ulong = x.m_var_union_ulong; } @@ -13380,7 +13338,7 @@ class UnionULong const UnionULong& x) { - m_var_union_ulong = x.m_var_union_ulong; + m_var_union_ulong = x.m_var_union_ulong; return *this; } @@ -13455,8 +13413,6 @@ class UnionULong return m_var_union_ulong; } - - private: Union_ULong m_var_union_ulong; @@ -13491,7 +13447,7 @@ class UnionLongLong eProsima_user_DllExport UnionLongLong( const UnionLongLong& x) { - m_var_union_long_long = x.m_var_union_long_long; + m_var_union_long_long = x.m_var_union_long_long; } @@ -13513,7 +13469,7 @@ class UnionLongLong const UnionLongLong& x) { - m_var_union_long_long = x.m_var_union_long_long; + m_var_union_long_long = x.m_var_union_long_long; return *this; } @@ -13588,8 +13544,6 @@ class UnionLongLong return m_var_union_long_long; } - - private: Union_LongLong m_var_union_long_long; @@ -13624,7 +13578,7 @@ class UnionULongLong eProsima_user_DllExport UnionULongLong( const UnionULongLong& x) { - m_var_union_ulong_long = x.m_var_union_ulong_long; + m_var_union_ulong_long = x.m_var_union_ulong_long; } @@ -13646,7 +13600,7 @@ class UnionULongLong const UnionULongLong& x) { - m_var_union_ulong_long = x.m_var_union_ulong_long; + m_var_union_ulong_long = x.m_var_union_ulong_long; return *this; } @@ -13721,8 +13675,6 @@ class UnionULongLong return m_var_union_ulong_long; } - - private: Union_ULongLOng m_var_union_ulong_long; @@ -13757,7 +13709,7 @@ class UnionFloat eProsima_user_DllExport UnionFloat( const UnionFloat& x) { - m_var_union_float = x.m_var_union_float; + m_var_union_float = x.m_var_union_float; } @@ -13779,7 +13731,7 @@ class UnionFloat const UnionFloat& x) { - m_var_union_float = x.m_var_union_float; + m_var_union_float = x.m_var_union_float; return *this; } @@ -13854,8 +13806,6 @@ class UnionFloat return m_var_union_float; } - - private: Union_Float m_var_union_float; @@ -13890,7 +13840,7 @@ class UnionDouble eProsima_user_DllExport UnionDouble( const UnionDouble& x) { - m_var_union_double = x.m_var_union_double; + m_var_union_double = x.m_var_union_double; } @@ -13912,7 +13862,7 @@ class UnionDouble const UnionDouble& x) { - m_var_union_double = x.m_var_union_double; + m_var_union_double = x.m_var_union_double; return *this; } @@ -13987,8 +13937,6 @@ class UnionDouble return m_var_union_double; } - - private: Union_Double m_var_union_double; @@ -14023,7 +13971,7 @@ class UnionLongDouble eProsima_user_DllExport UnionLongDouble( const UnionLongDouble& x) { - m_var_union_long_double = x.m_var_union_long_double; + m_var_union_long_double = x.m_var_union_long_double; } @@ -14045,7 +13993,7 @@ class UnionLongDouble const UnionLongDouble& x) { - m_var_union_long_double = x.m_var_union_long_double; + m_var_union_long_double = x.m_var_union_long_double; return *this; } @@ -14120,8 +14068,6 @@ class UnionLongDouble return m_var_union_long_double; } - - private: Union_LongDouble m_var_union_long_double; @@ -14156,7 +14102,7 @@ class UnionBoolean eProsima_user_DllExport UnionBoolean( const UnionBoolean& x) { - m_var_union_boolean = x.m_var_union_boolean; + m_var_union_boolean = x.m_var_union_boolean; } @@ -14178,7 +14124,7 @@ class UnionBoolean const UnionBoolean& x) { - m_var_union_boolean = x.m_var_union_boolean; + m_var_union_boolean = x.m_var_union_boolean; return *this; } @@ -14253,8 +14199,6 @@ class UnionBoolean return m_var_union_boolean; } - - private: Union_Boolean m_var_union_boolean; @@ -14289,7 +14233,7 @@ class UnionOctet eProsima_user_DllExport UnionOctet( const UnionOctet& x) { - m_var_union_octet = x.m_var_union_octet; + m_var_union_octet = x.m_var_union_octet; } @@ -14311,7 +14255,7 @@ class UnionOctet const UnionOctet& x) { - m_var_union_octet = x.m_var_union_octet; + m_var_union_octet = x.m_var_union_octet; return *this; } @@ -14386,8 +14330,6 @@ class UnionOctet return m_var_union_octet; } - - private: Union_Octet m_var_union_octet; @@ -14422,7 +14364,7 @@ class UnionChar eProsima_user_DllExport UnionChar( const UnionChar& x) { - m_var_union_char = x.m_var_union_char; + m_var_union_char = x.m_var_union_char; } @@ -14444,7 +14386,7 @@ class UnionChar const UnionChar& x) { - m_var_union_char = x.m_var_union_char; + m_var_union_char = x.m_var_union_char; return *this; } @@ -14519,8 +14461,6 @@ class UnionChar return m_var_union_char; } - - private: Union_Char m_var_union_char; @@ -14555,7 +14495,7 @@ class UnionWChar eProsima_user_DllExport UnionWChar( const UnionWChar& x) { - m_var_union_wchar = x.m_var_union_wchar; + m_var_union_wchar = x.m_var_union_wchar; } @@ -14577,7 +14517,7 @@ class UnionWChar const UnionWChar& x) { - m_var_union_wchar = x.m_var_union_wchar; + m_var_union_wchar = x.m_var_union_wchar; return *this; } @@ -14652,8 +14592,6 @@ class UnionWChar return m_var_union_wchar; } - - private: Union_WChar m_var_union_wchar; @@ -14688,7 +14626,7 @@ class UnionString eProsima_user_DllExport UnionString( const UnionString& x) { - m_var_union_string = x.m_var_union_string; + m_var_union_string = x.m_var_union_string; } @@ -14710,7 +14648,7 @@ class UnionString const UnionString& x) { - m_var_union_string = x.m_var_union_string; + m_var_union_string = x.m_var_union_string; return *this; } @@ -14785,8 +14723,6 @@ class UnionString return m_var_union_string; } - - private: Union_String m_var_union_string; @@ -14821,7 +14757,7 @@ class UnionWString eProsima_user_DllExport UnionWString( const UnionWString& x) { - m_var_union_wstring = x.m_var_union_wstring; + m_var_union_wstring = x.m_var_union_wstring; } @@ -14843,7 +14779,7 @@ class UnionWString const UnionWString& x) { - m_var_union_wstring = x.m_var_union_wstring; + m_var_union_wstring = x.m_var_union_wstring; return *this; } @@ -14918,8 +14854,6 @@ class UnionWString return m_var_union_wstring; } - - private: Union_WString m_var_union_wstring; @@ -14954,7 +14888,7 @@ class UnionBoundedString eProsima_user_DllExport UnionBoundedString( const UnionBoundedString& x) { - m_var_union_bounded_string = x.m_var_union_bounded_string; + m_var_union_bounded_string = x.m_var_union_bounded_string; } @@ -14976,7 +14910,7 @@ class UnionBoundedString const UnionBoundedString& x) { - m_var_union_bounded_string = x.m_var_union_bounded_string; + m_var_union_bounded_string = x.m_var_union_bounded_string; return *this; } @@ -15051,8 +14985,6 @@ class UnionBoundedString return m_var_union_bounded_string; } - - private: Union_BoundedString m_var_union_bounded_string; @@ -15087,7 +15019,7 @@ class UnionBoundedWString eProsima_user_DllExport UnionBoundedWString( const UnionBoundedWString& x) { - m_var_union_bounded_wstring = x.m_var_union_bounded_wstring; + m_var_union_bounded_wstring = x.m_var_union_bounded_wstring; } @@ -15109,7 +15041,7 @@ class UnionBoundedWString const UnionBoundedWString& x) { - m_var_union_bounded_wstring = x.m_var_union_bounded_wstring; + m_var_union_bounded_wstring = x.m_var_union_bounded_wstring; return *this; } @@ -15184,8 +15116,6 @@ class UnionBoundedWString return m_var_union_bounded_wstring; } - - private: Union_BoundedWString m_var_union_bounded_wstring; @@ -15220,7 +15150,7 @@ class UnionInnerEnumHelper eProsima_user_DllExport UnionInnerEnumHelper( const UnionInnerEnumHelper& x) { - m_var_union_my_enum = x.m_var_union_my_enum; + m_var_union_my_enum = x.m_var_union_my_enum; } @@ -15242,7 +15172,7 @@ class UnionInnerEnumHelper const UnionInnerEnumHelper& x) { - m_var_union_my_enum = x.m_var_union_my_enum; + m_var_union_my_enum = x.m_var_union_my_enum; return *this; } @@ -15317,8 +15247,6 @@ class UnionInnerEnumHelper return m_var_union_my_enum; } - - private: Union_InnerEnumHelper m_var_union_my_enum; @@ -15353,7 +15281,7 @@ class UnionInnerBitMaskHelper eProsima_user_DllExport UnionInnerBitMaskHelper( const UnionInnerBitMaskHelper& x) { - m_var_union_my_bit_mask = x.m_var_union_my_bit_mask; + m_var_union_my_bit_mask = x.m_var_union_my_bit_mask; } @@ -15375,7 +15303,7 @@ class UnionInnerBitMaskHelper const UnionInnerBitMaskHelper& x) { - m_var_union_my_bit_mask = x.m_var_union_my_bit_mask; + m_var_union_my_bit_mask = x.m_var_union_my_bit_mask; return *this; } @@ -15450,8 +15378,6 @@ class UnionInnerBitMaskHelper return m_var_union_my_bit_mask; } - - private: Union_InnerBitMaskHelper m_var_union_my_bit_mask; @@ -15486,7 +15412,7 @@ class UnionInnerAliasHelper eProsima_user_DllExport UnionInnerAliasHelper( const UnionInnerAliasHelper& x) { - m_var_union_my_alias = x.m_var_union_my_alias; + m_var_union_my_alias = x.m_var_union_my_alias; } @@ -15508,7 +15434,7 @@ class UnionInnerAliasHelper const UnionInnerAliasHelper& x) { - m_var_union_my_alias = x.m_var_union_my_alias; + m_var_union_my_alias = x.m_var_union_my_alias; return *this; } @@ -15583,8 +15509,6 @@ class UnionInnerAliasHelper return m_var_union_my_alias; } - - private: Union_InnerAliasHelper m_var_union_my_alias; @@ -15619,7 +15543,7 @@ class UnionArray eProsima_user_DllExport UnionArray( const UnionArray& x) { - m_var_union_array = x.m_var_union_array; + m_var_union_array = x.m_var_union_array; } @@ -15641,7 +15565,7 @@ class UnionArray const UnionArray& x) { - m_var_union_array = x.m_var_union_array; + m_var_union_array = x.m_var_union_array; return *this; } @@ -15716,8 +15640,6 @@ class UnionArray return m_var_union_array; } - - private: Union_Array m_var_union_array; @@ -15752,7 +15674,7 @@ class UnionSequence eProsima_user_DllExport UnionSequence( const UnionSequence& x) { - m_var_union_sequence = x.m_var_union_sequence; + m_var_union_sequence = x.m_var_union_sequence; } @@ -15774,7 +15696,7 @@ class UnionSequence const UnionSequence& x) { - m_var_union_sequence = x.m_var_union_sequence; + m_var_union_sequence = x.m_var_union_sequence; return *this; } @@ -15849,8 +15771,6 @@ class UnionSequence return m_var_union_sequence; } - - private: Union_Sequence m_var_union_sequence; @@ -15885,7 +15805,7 @@ class UnionMap eProsima_user_DllExport UnionMap( const UnionMap& x) { - m_var_union_map = x.m_var_union_map; + m_var_union_map = x.m_var_union_map; } @@ -15907,7 +15827,7 @@ class UnionMap const UnionMap& x) { - m_var_union_map = x.m_var_union_map; + m_var_union_map = x.m_var_union_map; return *this; } @@ -15982,8 +15902,6 @@ class UnionMap return m_var_union_map; } - - private: Union_Map m_var_union_map; @@ -16018,7 +15936,7 @@ class UnionInnerUnionHelper eProsima_user_DllExport UnionInnerUnionHelper( const UnionInnerUnionHelper& x) { - m_var_union_my_union = x.m_var_union_my_union; + m_var_union_my_union = x.m_var_union_my_union; } @@ -16040,7 +15958,7 @@ class UnionInnerUnionHelper const UnionInnerUnionHelper& x) { - m_var_union_my_union = x.m_var_union_my_union; + m_var_union_my_union = x.m_var_union_my_union; return *this; } @@ -16115,8 +16033,6 @@ class UnionInnerUnionHelper return m_var_union_my_union; } - - private: Union_InnerUnionHelper m_var_union_my_union; @@ -16151,7 +16067,7 @@ class UnionInnerStructureHelper eProsima_user_DllExport UnionInnerStructureHelper( const UnionInnerStructureHelper& x) { - m_var_union_my_structure = x.m_var_union_my_structure; + m_var_union_my_structure = x.m_var_union_my_structure; } @@ -16173,7 +16089,7 @@ class UnionInnerStructureHelper const UnionInnerStructureHelper& x) { - m_var_union_my_structure = x.m_var_union_my_structure; + m_var_union_my_structure = x.m_var_union_my_structure; return *this; } @@ -16248,8 +16164,6 @@ class UnionInnerStructureHelper return m_var_union_my_structure; } - - private: Union_InnerStructureHelper m_var_union_my_structure; @@ -16284,7 +16198,7 @@ class UnionInnerBitsetHelper eProsima_user_DllExport UnionInnerBitsetHelper( const UnionInnerBitsetHelper& x) { - m_var_union_my_bitset = x.m_var_union_my_bitset; + m_var_union_my_bitset = x.m_var_union_my_bitset; } @@ -16306,7 +16220,7 @@ class UnionInnerBitsetHelper const UnionInnerBitsetHelper& x) { - m_var_union_my_bitset = x.m_var_union_my_bitset; + m_var_union_my_bitset = x.m_var_union_my_bitset; return *this; } @@ -16381,8 +16295,6 @@ class UnionInnerBitsetHelper return m_var_union_my_bitset; } - - private: Union_InnerBitsetHelper m_var_union_my_bitset; @@ -16417,7 +16329,7 @@ class UnionDiscriminatorShort eProsima_user_DllExport UnionDiscriminatorShort( const UnionDiscriminatorShort& x) { - m_var_union_discriminator_short = x.m_var_union_discriminator_short; + m_var_union_discriminator_short = x.m_var_union_discriminator_short; } @@ -16439,7 +16351,7 @@ class UnionDiscriminatorShort const UnionDiscriminatorShort& x) { - m_var_union_discriminator_short = x.m_var_union_discriminator_short; + m_var_union_discriminator_short = x.m_var_union_discriminator_short; return *this; } @@ -16514,8 +16426,6 @@ class UnionDiscriminatorShort return m_var_union_discriminator_short; } - - private: Union_Discriminator_short m_var_union_discriminator_short; @@ -16550,7 +16460,7 @@ class UnionDiscriminatorUShort eProsima_user_DllExport UnionDiscriminatorUShort( const UnionDiscriminatorUShort& x) { - m_var_union_discriminator_ushort = x.m_var_union_discriminator_ushort; + m_var_union_discriminator_ushort = x.m_var_union_discriminator_ushort; } @@ -16572,7 +16482,7 @@ class UnionDiscriminatorUShort const UnionDiscriminatorUShort& x) { - m_var_union_discriminator_ushort = x.m_var_union_discriminator_ushort; + m_var_union_discriminator_ushort = x.m_var_union_discriminator_ushort; return *this; } @@ -16647,8 +16557,6 @@ class UnionDiscriminatorUShort return m_var_union_discriminator_ushort; } - - private: Union_Discriminator_unsigned_short m_var_union_discriminator_ushort; @@ -16683,7 +16591,7 @@ class UnionDiscriminatorLong eProsima_user_DllExport UnionDiscriminatorLong( const UnionDiscriminatorLong& x) { - m_var_union_discriminator_long = x.m_var_union_discriminator_long; + m_var_union_discriminator_long = x.m_var_union_discriminator_long; } @@ -16705,7 +16613,7 @@ class UnionDiscriminatorLong const UnionDiscriminatorLong& x) { - m_var_union_discriminator_long = x.m_var_union_discriminator_long; + m_var_union_discriminator_long = x.m_var_union_discriminator_long; return *this; } @@ -16780,8 +16688,6 @@ class UnionDiscriminatorLong return m_var_union_discriminator_long; } - - private: Union_Discriminator_long m_var_union_discriminator_long; @@ -16816,7 +16722,7 @@ class UnionDiscriminatorULong eProsima_user_DllExport UnionDiscriminatorULong( const UnionDiscriminatorULong& x) { - m_var_union_discriminator_ulong = x.m_var_union_discriminator_ulong; + m_var_union_discriminator_ulong = x.m_var_union_discriminator_ulong; } @@ -16838,7 +16744,7 @@ class UnionDiscriminatorULong const UnionDiscriminatorULong& x) { - m_var_union_discriminator_ulong = x.m_var_union_discriminator_ulong; + m_var_union_discriminator_ulong = x.m_var_union_discriminator_ulong; return *this; } @@ -16913,8 +16819,6 @@ class UnionDiscriminatorULong return m_var_union_discriminator_ulong; } - - private: Union_Discriminator_unsigned_long m_var_union_discriminator_ulong; @@ -16949,7 +16853,7 @@ class UnionDiscriminatorLongLong eProsima_user_DllExport UnionDiscriminatorLongLong( const UnionDiscriminatorLongLong& x) { - m_var_union_discriminator_long_long = x.m_var_union_discriminator_long_long; + m_var_union_discriminator_long_long = x.m_var_union_discriminator_long_long; } @@ -16971,7 +16875,7 @@ class UnionDiscriminatorLongLong const UnionDiscriminatorLongLong& x) { - m_var_union_discriminator_long_long = x.m_var_union_discriminator_long_long; + m_var_union_discriminator_long_long = x.m_var_union_discriminator_long_long; return *this; } @@ -17046,8 +16950,6 @@ class UnionDiscriminatorLongLong return m_var_union_discriminator_long_long; } - - private: Union_Discriminator_long_long m_var_union_discriminator_long_long; @@ -17082,7 +16984,7 @@ class UnionDiscriminatorULongLong eProsima_user_DllExport UnionDiscriminatorULongLong( const UnionDiscriminatorULongLong& x) { - m_var_union_discriminator_ulong_long = x.m_var_union_discriminator_ulong_long; + m_var_union_discriminator_ulong_long = x.m_var_union_discriminator_ulong_long; } @@ -17104,7 +17006,7 @@ class UnionDiscriminatorULongLong const UnionDiscriminatorULongLong& x) { - m_var_union_discriminator_ulong_long = x.m_var_union_discriminator_ulong_long; + m_var_union_discriminator_ulong_long = x.m_var_union_discriminator_ulong_long; return *this; } @@ -17179,8 +17081,6 @@ class UnionDiscriminatorULongLong return m_var_union_discriminator_ulong_long; } - - private: Union_Discriminator_unsigned_long_long m_var_union_discriminator_ulong_long; @@ -17215,7 +17115,7 @@ class UnionDiscriminatorBoolean eProsima_user_DllExport UnionDiscriminatorBoolean( const UnionDiscriminatorBoolean& x) { - m_var_union_discriminator_boolean = x.m_var_union_discriminator_boolean; + m_var_union_discriminator_boolean = x.m_var_union_discriminator_boolean; } @@ -17237,7 +17137,7 @@ class UnionDiscriminatorBoolean const UnionDiscriminatorBoolean& x) { - m_var_union_discriminator_boolean = x.m_var_union_discriminator_boolean; + m_var_union_discriminator_boolean = x.m_var_union_discriminator_boolean; return *this; } @@ -17312,8 +17212,6 @@ class UnionDiscriminatorBoolean return m_var_union_discriminator_boolean; } - - private: Union_Discriminator_boolean m_var_union_discriminator_boolean; @@ -17348,7 +17246,7 @@ class UnionDiscriminatorOctet eProsima_user_DllExport UnionDiscriminatorOctet( const UnionDiscriminatorOctet& x) { - m_var_union_discriminator_octet = x.m_var_union_discriminator_octet; + m_var_union_discriminator_octet = x.m_var_union_discriminator_octet; } @@ -17370,7 +17268,7 @@ class UnionDiscriminatorOctet const UnionDiscriminatorOctet& x) { - m_var_union_discriminator_octet = x.m_var_union_discriminator_octet; + m_var_union_discriminator_octet = x.m_var_union_discriminator_octet; return *this; } @@ -17445,8 +17343,6 @@ class UnionDiscriminatorOctet return m_var_union_discriminator_octet; } - - private: Union_Discriminator_octet m_var_union_discriminator_octet; @@ -17481,7 +17377,7 @@ class UnionDiscriminatorChar eProsima_user_DllExport UnionDiscriminatorChar( const UnionDiscriminatorChar& x) { - m_var_union_discriminator_char = x.m_var_union_discriminator_char; + m_var_union_discriminator_char = x.m_var_union_discriminator_char; } @@ -17503,7 +17399,7 @@ class UnionDiscriminatorChar const UnionDiscriminatorChar& x) { - m_var_union_discriminator_char = x.m_var_union_discriminator_char; + m_var_union_discriminator_char = x.m_var_union_discriminator_char; return *this; } @@ -17578,8 +17474,6 @@ class UnionDiscriminatorChar return m_var_union_discriminator_char; } - - private: Union_Discriminator_char m_var_union_discriminator_char; @@ -17614,7 +17508,7 @@ class UnionDiscriminatorWChar eProsima_user_DllExport UnionDiscriminatorWChar( const UnionDiscriminatorWChar& x) { - m_var_union_discriminator_wchar = x.m_var_union_discriminator_wchar; + m_var_union_discriminator_wchar = x.m_var_union_discriminator_wchar; } @@ -17636,7 +17530,7 @@ class UnionDiscriminatorWChar const UnionDiscriminatorWChar& x) { - m_var_union_discriminator_wchar = x.m_var_union_discriminator_wchar; + m_var_union_discriminator_wchar = x.m_var_union_discriminator_wchar; return *this; } @@ -17711,8 +17605,6 @@ class UnionDiscriminatorWChar return m_var_union_discriminator_wchar; } - - private: Union_Discriminator_wchar m_var_union_discriminator_wchar; @@ -17747,7 +17639,7 @@ class UnionDiscriminatorEnum eProsima_user_DllExport UnionDiscriminatorEnum( const UnionDiscriminatorEnum& x) { - m_var_union_discriminator_enum = x.m_var_union_discriminator_enum; + m_var_union_discriminator_enum = x.m_var_union_discriminator_enum; } @@ -17769,7 +17661,7 @@ class UnionDiscriminatorEnum const UnionDiscriminatorEnum& x) { - m_var_union_discriminator_enum = x.m_var_union_discriminator_enum; + m_var_union_discriminator_enum = x.m_var_union_discriminator_enum; return *this; } @@ -17844,8 +17736,6 @@ class UnionDiscriminatorEnum return m_var_union_discriminator_enum; } - - private: Union_Discriminator_enum m_var_union_discriminator_enum; @@ -17880,7 +17770,7 @@ class UnionDiscriminatorEnumLabel eProsima_user_DllExport UnionDiscriminatorEnumLabel( const UnionDiscriminatorEnumLabel& x) { - m_var_union_discriminator_enum = x.m_var_union_discriminator_enum; + m_var_union_discriminator_enum = x.m_var_union_discriminator_enum; } @@ -17902,7 +17792,7 @@ class UnionDiscriminatorEnumLabel const UnionDiscriminatorEnumLabel& x) { - m_var_union_discriminator_enum = x.m_var_union_discriminator_enum; + m_var_union_discriminator_enum = x.m_var_union_discriminator_enum; return *this; } @@ -17977,8 +17867,6 @@ class UnionDiscriminatorEnumLabel return m_var_union_discriminator_enum; } - - private: Union_Discriminator_enum_labels m_var_union_discriminator_enum; @@ -18013,7 +17901,7 @@ class UnionDiscriminatorAlias eProsima_user_DllExport UnionDiscriminatorAlias( const UnionDiscriminatorAlias& x) { - m_var_union_discriminator_alias = x.m_var_union_discriminator_alias; + m_var_union_discriminator_alias = x.m_var_union_discriminator_alias; } @@ -18035,7 +17923,7 @@ class UnionDiscriminatorAlias const UnionDiscriminatorAlias& x) { - m_var_union_discriminator_alias = x.m_var_union_discriminator_alias; + m_var_union_discriminator_alias = x.m_var_union_discriminator_alias; return *this; } @@ -18110,8 +17998,6 @@ class UnionDiscriminatorAlias return m_var_union_discriminator_alias; } - - private: Union_Discriminator_alias m_var_union_discriminator_alias; @@ -18146,7 +18032,7 @@ class UnionSeveralFields eProsima_user_DllExport UnionSeveralFields( const UnionSeveralFields& x) { - m_var_union_several_fields = x.m_var_union_several_fields; + m_var_union_several_fields = x.m_var_union_several_fields; } @@ -18168,7 +18054,7 @@ class UnionSeveralFields const UnionSeveralFields& x) { - m_var_union_several_fields = x.m_var_union_several_fields; + m_var_union_several_fields = x.m_var_union_several_fields; return *this; } @@ -18243,8 +18129,6 @@ class UnionSeveralFields return m_var_union_several_fields; } - - private: Union_Several_Fields m_var_union_several_fields; @@ -18279,7 +18163,7 @@ class UnionSeveralFieldsWithDefault eProsima_user_DllExport UnionSeveralFieldsWithDefault( const UnionSeveralFieldsWithDefault& x) { - m_var_union_several_fields_with_default = x.m_var_union_several_fields_with_default; + m_var_union_several_fields_with_default = x.m_var_union_several_fields_with_default; } @@ -18301,7 +18185,7 @@ class UnionSeveralFieldsWithDefault const UnionSeveralFieldsWithDefault& x) { - m_var_union_several_fields_with_default = x.m_var_union_several_fields_with_default; + m_var_union_several_fields_with_default = x.m_var_union_several_fields_with_default; return *this; } @@ -18376,8 +18260,6 @@ class UnionSeveralFieldsWithDefault return m_var_union_several_fields_with_default; } - - private: Union_Several_Fields_With_Default m_var_union_several_fields_with_default; @@ -18424,17 +18306,17 @@ class DefaultAnnotation switch (x.selected_member_) { - case 0x00000001: - a_() = x.m_a; - break; + case 0x00000001: + a_() = x.m_a; + break; - case 0x00000002: - b_() = x.m_b; - break; + case 0x00000002: + b_() = x.m_b; + break; - case 0x00000003: - c_() = x.m_c; - break; + case 0x00000003: + c_() = x.m_c; + break; } } @@ -18450,17 +18332,17 @@ class DefaultAnnotation switch (x.selected_member_) { - case 0x00000001: - a_() = std::move(x.m_a); - break; + case 0x00000001: + a_() = std::move(x.m_a); + break; - case 0x00000002: - b_() = std::move(x.m_b); - break; + case 0x00000002: + b_() = std::move(x.m_b); + break; - case 0x00000003: - c_() = std::move(x.m_c); - break; + case 0x00000003: + c_() = std::move(x.m_c); + break; } } @@ -18476,17 +18358,17 @@ class DefaultAnnotation switch (x.selected_member_) { - case 0x00000001: - a_() = x.m_a; - break; + case 0x00000001: + a_() = x.m_a; + break; - case 0x00000002: - b_() = x.m_b; - break; + case 0x00000002: + b_() = x.m_b; + break; - case 0x00000003: - c_() = x.m_c; - break; + case 0x00000003: + c_() = x.m_c; + break; } @@ -18504,17 +18386,17 @@ class DefaultAnnotation switch (x.selected_member_) { - case 0x00000001: - a_() = std::move(x.m_a); - break; + case 0x00000001: + a_() = std::move(x.m_a); + break; - case 0x00000002: - b_() = std::move(x.m_b); - break; + case 0x00000002: + b_() = std::move(x.m_b); + break; - case 0x00000003: - c_() = std::move(x.m_c); - break; + case 0x00000003: + c_() = std::move(x.m_c); + break; } @@ -18535,17 +18417,17 @@ class DefaultAnnotation { switch (selected_member_) { - case 0x00000001: - ret_value = (m_a == x.m_a); - break; + case 0x00000001: + ret_value = (m_a == x.m_a); + break; - case 0x00000002: - ret_value = (m_b == x.m_b); - break; + case 0x00000002: + ret_value = (m_b == x.m_b); + break; - case 0x00000003: - ret_value = (m_c == x.m_c); - break; + case 0x00000003: + ret_value = (m_c == x.m_c); + break; } } @@ -18575,32 +18457,33 @@ class DefaultAnnotation switch (__d) { - case 0: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; + case 0: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; - case 1: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; + case 1: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; - default: - if (0x00000003 == selected_member_) - { - valid_discriminator = true; - } - break; + default: + if (0x00000003 == selected_member_) + { + valid_discriminator = true; + } + break; } if (!valid_discriminator) { - throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException( + "Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -18656,7 +18539,6 @@ class DefaultAnnotation return m_a; } - /*! * @brief This function sets a value in member b * @param _b New value for member b @@ -18698,7 +18580,6 @@ class DefaultAnnotation return m_b; } - /*! * @brief This function sets a value in member c * @param _c New value for member c @@ -18740,64 +18621,61 @@ class DefaultAnnotation return m_c; } - - private: - uint8_t& a_() + uint8_t& a_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000001; - member_destructor_ = nullptr; - m_a = {0}; + selected_member_ = 0x00000001; + member_destructor_ = nullptr; + m_a = {0}; - } + } - return m_a; - } + return m_a; + } - int16_t& b_() + int16_t& b_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + member_destructor_(); + } - selected_member_ = 0x00000002; - member_destructor_ = nullptr; - m_b = {0}; + selected_member_ = 0x00000002; + member_destructor_ = nullptr; + m_b = {0}; - } + } - return m_b; - } + return m_b; + } - int32_t& c_() + int32_t& c_() + { + if (0x00000003 != selected_member_) + { + if (member_destructor_) { - if (0x00000003 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000003; - member_destructor_ = nullptr; - m_c = {0}; + member_destructor_(); + } - } + selected_member_ = 0x00000003; + member_destructor_ = nullptr; + m_c = {0}; - return m_c; - } + } + return m_c; + } int32_t m__d {0}; diff --git a/test/dds/xtypes/BaseCases/Case0.json b/test/dds/xtypes/BaseCases/Case0.json index 21086640304..bb4b68d0c8e 100644 --- a/test/dds/xtypes/BaseCases/Case0.json +++ b/test/dds/xtypes/BaseCases/Case0.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [ "TypeNoTypeObject" @@ -15,11 +15,11 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [] } ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case1.json b/test/dds/xtypes/BaseCases/Case1.json index 70479d91979..3ba0966a406 100644 --- a/test/dds/xtypes/BaseCases/Case1.json +++ b/test/dds/xtypes/BaseCases/Case1.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [ "Type1" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [ "Type1" @@ -24,4 +24,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case10.json b/test/dds/xtypes/BaseCases/Case10.json index 653cdf4ff2c..577d663a0d8 100644 --- a/test/dds/xtypes/BaseCases/Case10.json +++ b/test/dds/xtypes/BaseCases/Case10.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "2", "known_types": [ "Type2" @@ -15,7 +15,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "2", "known_types": [ "Type1" @@ -24,7 +24,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "4", "known_types": [ "Type1", @@ -34,4 +34,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case2.json b/test/dds/xtypes/BaseCases/Case2.json index a5a4ec715e8..0efeba1dfb5 100644 --- a/test/dds/xtypes/BaseCases/Case2.json +++ b/test/dds/xtypes/BaseCases/Case2.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [ "Type1" @@ -15,11 +15,11 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [] } ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case3.json b/test/dds/xtypes/BaseCases/Case3.json index 7cc7599a917..f3f9938b981 100644 --- a/test/dds/xtypes/BaseCases/Case3.json +++ b/test/dds/xtypes/BaseCases/Case3.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "2", "known_types": [ "Type1" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "2", "known_types": [ "Type2" @@ -24,4 +24,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case4.json b/test/dds/xtypes/BaseCases/Case4.json index e7da878c6b7..c175d74bb20 100644 --- a/test/dds/xtypes/BaseCases/Case4.json +++ b/test/dds/xtypes/BaseCases/Case4.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "3", "known_types": [ "Type1", @@ -16,7 +16,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "3", "known_types": [ "Type1", @@ -26,4 +26,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case5.json b/test/dds/xtypes/BaseCases/Case5.json index 30dbc95ac51..c2875b268be 100644 --- a/test/dds/xtypes/BaseCases/Case5.json +++ b/test/dds/xtypes/BaseCases/Case5.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "2", "known_types": [ "Type1", @@ -16,7 +16,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "2", "known_types": [ "Type1", @@ -26,4 +26,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case6.json b/test/dds/xtypes/BaseCases/Case6.json index 34e4deebfe7..9480b63f55d 100644 --- a/test/dds/xtypes/BaseCases/Case6.json +++ b/test/dds/xtypes/BaseCases/Case6.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [ "TypeDep" @@ -15,11 +15,11 @@ { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [] } ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case7.json b/test/dds/xtypes/BaseCases/Case7.json index 9dece8f9fb1..95f491e9943 100644 --- a/test/dds/xtypes/BaseCases/Case7.json +++ b/test/dds/xtypes/BaseCases/Case7.json @@ -22,4 +22,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/BaseCases/Case9.json b/test/dds/xtypes/BaseCases/Case9.json index 53266f777a6..21670723d71 100644 --- a/test/dds/xtypes/BaseCases/Case9.json +++ b/test/dds/xtypes/BaseCases/Case9.json @@ -6,21 +6,21 @@ { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [] }, { "kind": "publisher", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "1", "known_types": [] }, { "kind": "subscriber", "samples": "10", - "timeout": "3", + "timeout": "10", "expected_matches": "2", "known_types": [ "Type2" @@ -29,4 +29,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index 493a151f945..5c20e24bd60 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -43,7 +43,7 @@ file(GLOB COMMON_SOURCE ${PROJECT_SOURCE_DIR}/test/dds-types-test/declarationsPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/enumerationsPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/enumerationsTypeObjectSupport.cxx - ${PROJECT_SOURCE_DIR}/test/dds-types-test/externalPubSubTypes.cxx + # ${PROJECT_SOURCE_DIR}/test/dds-types-test/externalPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/finalPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/finalTypeObjectSupport.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/inheritancePubSubTypes.cxx diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index 610db416ce4..3ac0f792a61 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -217,7 +217,7 @@ bool TypeLookupServicePublisher::wait_discovery( bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() { - return matched_ == expected_matches_; + return matched_ == static_cast(expected_matches_); }); if (!result) @@ -238,7 +238,7 @@ bool TypeLookupServicePublisher::run( lock, std::chrono::seconds(timeout), [&] { std::this_thread::sleep_for(std::chrono::milliseconds(100)); - uint32_t current_sample = 0; + uint32_t current_sample {0}; std::string type_name; while (samples > current_sample) { @@ -249,15 +249,23 @@ bool TypeLookupServicePublisher::run( { DynamicData::_ref_type sample = DynamicDataFactory::get_instance()->create_data(known_type.second.dyn_type_); - //std::cout << "Publisher dyn_type_" << type_name << ": " << current_sample << std::endl; - known_type.second.writer_->write(&sample); + if (RETCODE_OK != known_type.second.writer_->write(&sample)) + { + std::cout << "ERROR TypeLookupServicePublisher fails writing sample " << + current_sample + 1 << std::endl; + return false; + } } if (known_type.second.type_) { void* sample = known_type.second.type_sup_.create_data(); - //std::cout << "Publisher type_" << type_name << ": " << current_sample << std::endl; - known_type.second.writer_->write(sample); + if (RETCODE_OK != known_type.second.writer_->write(sample)) + { + std::cout << "ERROR TypeLookupServicePublisher fails writing sample " << + current_sample + 1 << std::endl; + return false; + } known_type.second.type_sup_.delete_data(sample); } @@ -296,11 +304,8 @@ void TypeLookupServicePublisher::on_publication_matched( const PublicationMatchedStatus& info) { std::unique_lock lock(mutex_); - if (info.current_count_change == 1) - { - ++matched_; - cv_.notify_all(); - } + matched_ += info.current_count_change; + cv_.notify_all(); } void TypeLookupServicePublisher::on_data_reader_discovery( diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index ad375033b10..4943de9d42b 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -119,8 +119,8 @@ class TypeLookupServicePublisher std::mutex mutex_; std::condition_variable cv_; - unsigned int matched_ = 0; - unsigned int expected_matches_ = 0; + int32_t matched_ = 0; + uint32_t expected_matches_ = 0; std::map sent_samples_; std::mutex known_types_mutex_; @@ -405,60 +405,6 @@ class TypeLookupServicePublisher PUBLISHER_TYPE_CREATOR_FUNCTION(BitMaskStructure); PUBLISHER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); PUBLISHER_TYPE_CREATOR_FUNCTION(EnumStructure); - PUBLISHER_TYPE_CREATOR_FUNCTION(InnerStructExternal); - types_without_typeobject_.insert("InnerStructExternal"); - PUBLISHER_TYPE_CREATOR_FUNCTION(array_short_external); - types_without_typeobject_.insert("array_short_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(boolean_external); - types_without_typeobject_.insert("boolean_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(char_external); - types_without_typeobject_.insert("char_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(double_external); - types_without_typeobject_.insert("double_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ext_and_inner_struct_external); - types_without_typeobject_.insert("ext_and_inner_struct_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ext_struct_external); - types_without_typeobject_.insert("ext_struct_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(float_external); - types_without_typeobject_.insert("float_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(long_external); - types_without_typeobject_.insert("long_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(longdouble_external); - types_without_typeobject_.insert("longdouble_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(longlong_external); - types_without_typeobject_.insert("longlong_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(map_short_external); - types_without_typeobject_.insert("map_short_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(octet_external); - types_without_typeobject_.insert("octet_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_structure); - types_without_typeobject_.insert("recursive_structure"); - PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_test_1); - types_without_typeobject_.insert("recursive_test_1"); - PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_test_2); - types_without_typeobject_.insert("recursive_test_2"); - PUBLISHER_TYPE_CREATOR_FUNCTION(recursive_union_container); - types_without_typeobject_.insert("recursive_union_container"); - PUBLISHER_TYPE_CREATOR_FUNCTION(sequence_short_external); - types_without_typeobject_.insert("sequence_short_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(short_external); - types_without_typeobject_.insert("short_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_bounded_external); - types_without_typeobject_.insert("string_bounded_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(string_unbounded_external); - types_without_typeobject_.insert("string_unbounded_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(struct_external); - types_without_typeobject_.insert("struct_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(struct_external_optional); - types_without_typeobject_.insert("struct_external_optional"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulong_external); - types_without_typeobject_.insert("ulong_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ulonglong_external); - types_without_typeobject_.insert("ulonglong_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(ushort_external); - types_without_typeobject_.insert("ushort_external"); - PUBLISHER_TYPE_CREATOR_FUNCTION(wchar_external); - types_without_typeobject_.insert("wchar_external"); PUBLISHER_TYPE_CREATOR_FUNCTION(FinalBooleanStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(FinalCharStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(FinalDoubleStruct); diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index e4c96f7fae5..fdcc3237729 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -179,8 +179,7 @@ bool TypeLookupServiceSubscriber::process_type_impl( if (info.valid_data && reader->is_sample_valid(&data, &info)) { - std::lock_guard guard(known_types_mutex_); - // std::cout << "Subscriber type_" << reader->type().get_type_name() << ": " << std::endl; + std::lock_guard guard(mutex_); received_samples_[info.sample_identity.writer_guid()]++; cv_.notify_all(); } @@ -216,8 +215,7 @@ bool TypeLookupServiceSubscriber::process_dyn_type_impl( if (info.valid_data && reader->is_sample_valid(&data, &info)) { - std::lock_guard guard(known_types_mutex_); - // std::cout << "Subscriber dyn_type_" << reader->type().get_type_name() << ": " << std::endl; + std::lock_guard guard(mutex_); received_samples_[info.sample_identity.writer_guid()]++; cv_.notify_all(); } @@ -302,7 +300,7 @@ bool TypeLookupServiceSubscriber::wait_discovery( bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), [&]() { - return matched_ == expected_matches_; + return matched_ == static_cast(expected_matches_); }); if (!result) @@ -365,11 +363,8 @@ void TypeLookupServiceSubscriber::on_subscription_matched( const SubscriptionMatchedStatus& info) { std::unique_lock lock(mutex_); - if (info.current_count_change == 1) - { - ++matched_; - cv_.notify_all(); - } + matched_ += info.current_count_change; + cv_.notify_all(); } void TypeLookupServiceSubscriber::on_data_available( diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index ea9b7b72545..b2c06550413 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -130,8 +130,8 @@ class TypeLookupServiceSubscriber std::mutex mutex_; std::condition_variable cv_; - unsigned int matched_ = 0; - unsigned int expected_matches_ = 0; + int32_t matched_ = 0; + uint32_t expected_matches_ = 0; std::map received_samples_; std::mutex known_types_mutex_; @@ -417,60 +417,6 @@ class TypeLookupServiceSubscriber SUBSCRIBER_TYPE_CREATOR_FUNCTION(BitMaskStructure); SUBSCRIBER_TYPE_CREATOR_FUNCTION(BoundedBitMaskStructure); SUBSCRIBER_TYPE_CREATOR_FUNCTION(EnumStructure); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(InnerStructExternal); - types_without_typeobject_.insert("InnerStructExternal"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(array_short_external); - types_without_typeobject_.insert("array_short_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(boolean_external); - types_without_typeobject_.insert("boolean_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(char_external); - types_without_typeobject_.insert("char_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(double_external); - types_without_typeobject_.insert("double_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ext_and_inner_struct_external); - types_without_typeobject_.insert("ext_and_inner_struct_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ext_struct_external); - types_without_typeobject_.insert("ext_struct_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(float_external); - types_without_typeobject_.insert("float_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(long_external); - types_without_typeobject_.insert("long_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longdouble_external); - types_without_typeobject_.insert("longdouble_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(longlong_external); - types_without_typeobject_.insert("longlong_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(map_short_external); - types_without_typeobject_.insert("map_short_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(octet_external); - types_without_typeobject_.insert("octet_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_structure); - types_without_typeobject_.insert("recursive_structure"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_test_1); - types_without_typeobject_.insert("recursive_test_1"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_test_2); - types_without_typeobject_.insert("recursive_test_2"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(recursive_union_container); - types_without_typeobject_.insert("recursive_union_container"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(sequence_short_external); - types_without_typeobject_.insert("sequence_short_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(short_external); - types_without_typeobject_.insert("short_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_bounded_external); - types_without_typeobject_.insert("string_bounded_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(string_unbounded_external); - types_without_typeobject_.insert("string_unbounded_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_external); - types_without_typeobject_.insert("struct_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(struct_external_optional); - types_without_typeobject_.insert("struct_external_optional"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulong_external); - types_without_typeobject_.insert("ulong_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ulonglong_external); - types_without_typeobject_.insert("ulonglong_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(ushort_external); - types_without_typeobject_.insert("ushort_external"); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(wchar_external); - types_without_typeobject_.insert("wchar_external"); SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalBooleanStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalCharStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(FinalDoubleStruct); diff --git a/test/dds/xtypes/TypeLookupServiceTestsTypes.h b/test/dds/xtypes/TypeLookupServiceTestsTypes.h index 5c1086a3c5f..eeb1c9fdd71 100644 --- a/test/dds/xtypes/TypeLookupServiceTestsTypes.h +++ b/test/dds/xtypes/TypeLookupServiceTestsTypes.h @@ -31,7 +31,6 @@ #include "../../dds-types-test/constantsPubSubTypes.hpp" #include "../../dds-types-test/declarationsPubSubTypes.hpp" #include "../../dds-types-test/enumerationsPubSubTypes.hpp" -#include "../../dds-types-test/externalPubSubTypes.hpp" #include "../../dds-types-test/finalPubSubTypes.hpp" #include "../../dds-types-test/helpers/basic_inner_typesPubSubTypes.hpp" #include "../../dds-types-test/inheritancePubSubTypes.hpp" diff --git a/test/dds/xtypes/TypeLookupService_main.cpp b/test/dds/xtypes/TypeLookupService_main.cpp index 7e536570f91..1a873a4ad71 100644 --- a/test/dds/xtypes/TypeLookupService_main.cpp +++ b/test/dds/xtypes/TypeLookupService_main.cpp @@ -107,7 +107,8 @@ int main( eprosima::fastdds::dds::TypeLookupServicePublisher pub; return (pub.init(args.known_types) && pub.wait_discovery(args.expected_matches, args.timeout) && - pub.run(args.samples, args.timeout)) ? 0 : -1; + pub.run(args.samples, args.timeout) && + pub.wait_discovery(0, args.timeout)) ? 0 : -1; } case 2: { eprosima::fastdds::dds::TypeLookupServiceSubscriber sub; diff --git a/test/dds/xtypes/TypesTestsCases/Cases_aliases.json b/test/dds/xtypes/TypesTestsCases/Cases_aliases.json index 8ef702c2a05..273b697af1a 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_aliases.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_aliases.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasAlias" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasArray" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasBitmask" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasBitset" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasBool" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasChar16" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasChar8" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasEnum" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasFloat128" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasFloat32" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasFloat64" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasInt16" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasInt32" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasInt64" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasMap" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasMultiArray" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasOctet" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasSequence" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasString16" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasString8" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -426,7 +426,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasStruct" @@ -435,7 +435,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -447,7 +447,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasUInt32" @@ -456,7 +456,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -468,7 +468,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasUInt64" @@ -477,7 +477,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -489,7 +489,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasUint16" @@ -498,7 +498,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -510,7 +510,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AliasUnion" @@ -519,7 +519,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_annotations.json b/test/dds/xtypes/TypesTestsCases/Cases_annotations.json index 5b4a374ea20..33c9c70196e 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_annotations.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_annotations.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BasicAnnotationsStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "EmptyAnnotatedStruct" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_appendable.json b/test/dds/xtypes/TypesTestsCases/Cases_appendable.json index 3ce165cc54b..2182d57b9fb 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_appendable.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_appendable.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableBooleanStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableCharStruct" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableDoubleStruct" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableEmptyInheritanceStruct" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableEmptyStruct" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableExtensibilityInheritance" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableFloatStruct" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableInheritanceEmptyStruct" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableInheritanceStruct" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableLongDoubleStruct" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableLongLongStruct" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableLongStruct" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableOctetStruct" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableShortStruct" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableULongLongStruct" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableULongStruct" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableUShortStruct" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableUnionStruct" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AppendableWCharStruct" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_arrays.json b/test/dds/xtypes/TypesTestsCases/Cases_arrays.json index 969e01fd950..0bddf7407d6 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_arrays.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_arrays.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayAlias" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayBitMask" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayBitset" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayBoolean" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayBoundedString" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayBoundedWString" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayChar" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayDouble" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayEnum" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayFloat" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayLong" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayLongDouble" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayLongLong" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMap" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionAlias" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionBitMask" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionBitset" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionBoolean" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionBoundedString" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionBoundedWString" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -426,7 +426,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionChar" @@ -435,7 +435,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -447,7 +447,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionDouble" @@ -456,7 +456,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -468,7 +468,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionEnum" @@ -477,7 +477,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -489,7 +489,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionFloat" @@ -498,7 +498,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -510,7 +510,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsAlias" @@ -519,7 +519,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -531,7 +531,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsBitMask" @@ -540,7 +540,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -552,7 +552,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsBitSet" @@ -561,7 +561,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -573,7 +573,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsBoolean" @@ -582,7 +582,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -594,7 +594,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsBoundedString" @@ -603,7 +603,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -615,7 +615,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsBoundedWString" @@ -624,7 +624,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -636,7 +636,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsChar" @@ -645,7 +645,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -657,7 +657,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsDouble" @@ -666,7 +666,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -678,7 +678,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsEnum" @@ -687,7 +687,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -699,7 +699,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsFloat" @@ -708,7 +708,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -720,7 +720,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsLong" @@ -729,7 +729,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -741,7 +741,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsLongDouble" @@ -750,7 +750,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -762,7 +762,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsLongLong" @@ -771,7 +771,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -783,7 +783,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsMap" @@ -792,7 +792,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -804,7 +804,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsOctet" @@ -813,7 +813,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -825,7 +825,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsSequence" @@ -834,7 +834,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -846,7 +846,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsShort" @@ -855,7 +855,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -867,7 +867,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsString" @@ -876,7 +876,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -888,7 +888,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsStructure" @@ -897,7 +897,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -909,7 +909,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsULong" @@ -918,7 +918,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -930,7 +930,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsULongLong" @@ -939,7 +939,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -951,7 +951,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsUShort" @@ -960,7 +960,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -972,7 +972,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsUnion" @@ -981,7 +981,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -993,7 +993,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsWChar" @@ -1002,7 +1002,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1014,7 +1014,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLiteralsWString" @@ -1023,7 +1023,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1035,7 +1035,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLong" @@ -1044,7 +1044,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1056,7 +1056,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLongDouble" @@ -1065,7 +1065,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1077,7 +1077,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionLongLong" @@ -1086,7 +1086,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1098,7 +1098,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionMap" @@ -1107,7 +1107,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1119,7 +1119,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionOctet" @@ -1128,7 +1128,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1140,7 +1140,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionSequence" @@ -1149,7 +1149,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1161,7 +1161,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionShort" @@ -1170,7 +1170,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1182,7 +1182,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionString" @@ -1191,7 +1191,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1203,7 +1203,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionStructure" @@ -1212,7 +1212,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1224,7 +1224,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionULong" @@ -1233,7 +1233,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1245,7 +1245,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionULongLong" @@ -1254,7 +1254,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1266,7 +1266,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionUShort" @@ -1275,7 +1275,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1287,7 +1287,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionUnion" @@ -1296,7 +1296,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1308,7 +1308,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionWChar" @@ -1317,7 +1317,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1329,7 +1329,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayMultiDimensionWString" @@ -1338,7 +1338,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1350,7 +1350,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayOctet" @@ -1359,7 +1359,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1371,7 +1371,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySequence" @@ -1380,7 +1380,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1392,7 +1392,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayShort" @@ -1401,7 +1401,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1413,7 +1413,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayShortArray" @@ -1422,7 +1422,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1434,7 +1434,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsAlias" @@ -1443,7 +1443,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1455,7 +1455,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsBitMask" @@ -1464,7 +1464,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1476,7 +1476,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsBitset" @@ -1485,7 +1485,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1497,7 +1497,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsBoolean" @@ -1506,7 +1506,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1518,7 +1518,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsBoundedString" @@ -1527,7 +1527,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1539,7 +1539,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsBoundedWString" @@ -1548,7 +1548,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1560,7 +1560,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsChar" @@ -1569,7 +1569,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1581,7 +1581,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsDouble" @@ -1590,7 +1590,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1602,7 +1602,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsEnum" @@ -1611,7 +1611,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1623,7 +1623,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsFloat" @@ -1632,7 +1632,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1644,7 +1644,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsLong" @@ -1653,7 +1653,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1665,7 +1665,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsLongDouble" @@ -1674,7 +1674,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1686,7 +1686,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsLongLong" @@ -1695,7 +1695,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1707,7 +1707,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsMap" @@ -1716,7 +1716,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1728,7 +1728,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsOctet" @@ -1737,7 +1737,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1749,7 +1749,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsSequence" @@ -1758,7 +1758,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1770,7 +1770,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsShort" @@ -1779,7 +1779,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1791,7 +1791,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsShortArray" @@ -1800,7 +1800,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1812,7 +1812,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsString" @@ -1821,7 +1821,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1833,7 +1833,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsStructure" @@ -1842,7 +1842,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1854,7 +1854,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsUnion" @@ -1863,7 +1863,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1875,7 +1875,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsUnsignedLong" @@ -1884,7 +1884,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1896,7 +1896,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsUnsignedLongLong" @@ -1905,7 +1905,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1917,7 +1917,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsUnsignedShort" @@ -1926,7 +1926,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1938,7 +1938,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsWChar" @@ -1947,7 +1947,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1959,7 +1959,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArraySingleDimensionLiteralsWString" @@ -1968,7 +1968,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1980,7 +1980,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayString" @@ -1989,7 +1989,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2001,7 +2001,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayStructure" @@ -2010,7 +2010,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2022,7 +2022,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayULong" @@ -2031,7 +2031,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2043,7 +2043,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayULongLong" @@ -2052,7 +2052,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2064,7 +2064,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayUShort" @@ -2073,7 +2073,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2085,7 +2085,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayUnion" @@ -2094,7 +2094,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2106,7 +2106,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayWChar" @@ -2115,7 +2115,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2127,7 +2127,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ArrayWString" @@ -2136,7 +2136,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2148,7 +2148,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BoundedBigArrays" @@ -2157,7 +2157,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2169,7 +2169,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BoundedSmallArrays" @@ -2178,7 +2178,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_bitsets.json b/test/dds/xtypes/TypesTestsCases/Cases_bitsets.json index 411f7f7b5da..38417de42a3 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_bitsets.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_bitsets.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BitsetStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_constants.json b/test/dds/xtypes/TypesTestsCases/Cases_constants.json index ad4c4da6fb9..353f76dac34 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_constants.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_constants.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ConstsLiteralsStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "const_module2::Module2ConstsLiteralsStruct" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "const_module1::ModuleConstsLiteralsStruct" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_declarations.json b/test/dds/xtypes/TypesTestsCases/Cases_declarations.json index d8267dde614..b518e1007a7 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_declarations.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_declarations.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ForwardDeclarationsRecursiveStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ForwardStruct" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ModuledCommonNameStructure" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ModuledForwardDeclarationsRecursiveStruct" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "declarations_module::ModuledForwardStruct" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_enumerations.json b/test/dds/xtypes/TypesTestsCases/Cases_enumerations.json index 89754d7fe7d..768c45aaafe 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_enumerations.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_enumerations.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BitMaskStructure" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BoundedBitMaskStructure" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "EnumStructure" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_external.json b/test/dds/xtypes/TypesTestsCases/Cases_external.json deleted file mode 100644 index 8abbf6570ce..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Cases_external.json +++ /dev/null @@ -1,571 +0,0 @@ -{ - "test_cases": [ - { - "TestCase": "Case_external_InnerStructExternal", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "InnerStructExternal" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_array_short_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "array_short_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_boolean_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "boolean_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_char_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "char_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_double_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "double_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_ext_and_inner_struct_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ext_and_inner_struct_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_ext_struct_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ext_struct_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_float_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "float_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_long_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "long_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_longdouble_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longdouble_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_longlong_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "longlong_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_map_short_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "map_short_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_octet_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "octet_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_recursive_structure", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "recursive_structure" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_recursive_test_1", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "recursive_test_1" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_recursive_test_2", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "recursive_test_2" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_recursive_union_container", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "recursive_union_container" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_sequence_short_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "sequence_short_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_short_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "short_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_string_bounded_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_bounded_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_string_unbounded_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "string_unbounded_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_struct_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "struct_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_struct_external_optional", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "struct_external_optional" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_ulong_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulong_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_ulonglong_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ulonglong_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_ushort_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "ushort_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_external_wchar_external", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [ - "wchar_external" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "2", - "expected_matches": "1", - "known_types": [] - } - ] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_final.json b/test/dds/xtypes/TypesTestsCases/Cases_final.json index 618dec5d097..a6c1b2b3d3c 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_final.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_final.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalBooleanStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalCharStruct" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalDoubleStruct" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalEmptyInheritanceStruct" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalEmptyStruct" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalExtensibilityInheritance" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalFloatStruct" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalInheritanceStruct" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalLongDoubleStruct" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalLongLongStruct" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalLongStruct" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalOctetStruct" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalShortStruct" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalULongLongStruct" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalULongStruct" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalUShortStruct" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalUnionStruct" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FinalWCharStruct" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InheritanceEmptyStruct" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json b/test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json index d891ac87860..008a45e170d 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InnerEmptyStructureHelper" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InnerStructureHelper" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_inheritance.json b/test/dds/xtypes/TypesTestsCases/Cases_inheritance.json index cd8a54ae2c9..77aa5a910cf 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_inheritance.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_inheritance.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BitsetsChildInheritanceStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InnerEmptyStructureHelperChild" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InnerStructureHelperChild" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InnerStructureHelperChildChild" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InnerStructureHelperEmptyChild" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InnerStructureHelperEmptyChildChild" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructAliasInheritanceStruct" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructuresInheritanceStruct" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_key.json b/test/dds/xtypes/TypesTestsCases/Cases_key.json index 22b36960060..e89afc46452 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_key.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_key.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InheritanceKeyedEmptyStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedAppendable" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedBooleanStruct" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedCharStruct" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedDoubleStruct" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedEmptyInheritanceStruct" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedEmptyStruct" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedFinal" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedFloatStruct" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedInheritanceStruct" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedLongDoubleStruct" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedLongLongStruct" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedLongStruct" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedMutable" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedOctetStruct" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedShortStruct" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedULongLongStruct" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedULongStruct" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedUShortStruct" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "KeyedWCharStruct" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_maps.json b/test/dds/xtypes/TypesTestsCases/Cases_maps.json index 90775175b12..5fe4c3c5dfd 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_maps.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_maps.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BoundedLargeMap" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BoundedSmallMap" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperBoolean" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperChar" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperDouble" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperFloat" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerAliasHelper" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerAliasMapHelper" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerBitMaskHelper" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerBitsetHelper" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerEnumHelper" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerStructureHelper" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperInnerUnionHelper" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperLong" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperLongDouble" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperLongLong" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -426,7 +426,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperOctet" @@ -435,7 +435,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -447,7 +447,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperShort" @@ -456,7 +456,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -468,7 +468,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperString" @@ -477,7 +477,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -489,7 +489,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperULong" @@ -498,7 +498,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -510,7 +510,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperULongLong" @@ -519,7 +519,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -531,7 +531,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperUShort" @@ -540,7 +540,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -552,7 +552,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperWChar" @@ -561,7 +561,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -573,7 +573,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapInnerAliasBoundedStringHelperWString" @@ -582,7 +582,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -594,7 +594,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapKeyULongLongValueDouble" @@ -603,7 +603,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -615,7 +615,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapKeyULongValueLongDouble" @@ -624,7 +624,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -636,7 +636,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapKeyULongValueLongLong" @@ -645,7 +645,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -657,7 +657,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongBoolean" @@ -666,7 +666,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -678,7 +678,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongChar" @@ -687,7 +687,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -699,7 +699,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongDouble" @@ -708,7 +708,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -720,7 +720,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongFloat" @@ -729,7 +729,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -741,7 +741,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerAliasArrayHelper" @@ -750,7 +750,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -762,7 +762,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerAliasBoundedStringHelper" @@ -771,7 +771,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -783,7 +783,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerAliasBoundedWStringHelper" @@ -792,7 +792,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -804,7 +804,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerAliasHelper" @@ -813,7 +813,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -825,7 +825,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerAliasMapHelper" @@ -834,7 +834,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -846,7 +846,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerAliasSequenceHelper" @@ -855,7 +855,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -867,7 +867,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerBitMaskHelper" @@ -876,7 +876,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -888,7 +888,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerBitsetHelper" @@ -897,7 +897,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -909,7 +909,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerEnumHelper" @@ -918,7 +918,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -930,7 +930,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerStructureHelper" @@ -939,7 +939,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -951,7 +951,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongInnerUnionHelper" @@ -960,7 +960,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -972,7 +972,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongKeyLongDoubleValue" @@ -981,7 +981,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -993,7 +993,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongKeyLongLongValue" @@ -1002,7 +1002,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1014,7 +1014,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLong" @@ -1023,7 +1023,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1035,7 +1035,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongBoolean" @@ -1044,7 +1044,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1056,7 +1056,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongChar" @@ -1065,7 +1065,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1077,7 +1077,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongFloat" @@ -1086,7 +1086,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1098,7 +1098,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerAliasArrayHelper" @@ -1107,7 +1107,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1119,7 +1119,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerAliasBoundedStringHelper" @@ -1128,7 +1128,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1140,7 +1140,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerAliasBoundedWStringHelper" @@ -1149,7 +1149,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1161,7 +1161,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerAliasHelper" @@ -1170,7 +1170,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1182,7 +1182,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerAliasMapHelper" @@ -1191,7 +1191,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1203,7 +1203,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerAliasSequenceHelper" @@ -1212,7 +1212,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1224,7 +1224,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerBitMaskHelper" @@ -1233,7 +1233,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1245,7 +1245,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerBitsetHelper" @@ -1254,7 +1254,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1266,7 +1266,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerEnumHelper" @@ -1275,7 +1275,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1287,7 +1287,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerStructureHelper" @@ -1296,7 +1296,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1308,7 +1308,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongInnerUnionHelper" @@ -1317,7 +1317,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1329,7 +1329,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongKeyDoubleValue" @@ -1338,7 +1338,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1350,7 +1350,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongKeyLongValue" @@ -1359,7 +1359,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1371,7 +1371,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongLongDouble" @@ -1380,7 +1380,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1392,7 +1392,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongLongLong" @@ -1401,7 +1401,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1413,7 +1413,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongOctet" @@ -1422,7 +1422,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1434,7 +1434,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongShort" @@ -1443,7 +1443,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1455,7 +1455,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongString" @@ -1464,7 +1464,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1476,7 +1476,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongULong" @@ -1485,7 +1485,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1497,7 +1497,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongULongLong" @@ -1506,7 +1506,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1518,7 +1518,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongUShort" @@ -1527,7 +1527,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1539,7 +1539,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongWChar" @@ -1548,7 +1548,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1560,7 +1560,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongLongWString" @@ -1569,7 +1569,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1581,7 +1581,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongOctet" @@ -1590,7 +1590,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1602,7 +1602,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongShort" @@ -1611,7 +1611,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1623,7 +1623,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongString" @@ -1632,7 +1632,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1644,7 +1644,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongULong" @@ -1653,7 +1653,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1665,7 +1665,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongULongLong" @@ -1674,7 +1674,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1686,7 +1686,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongUShort" @@ -1695,7 +1695,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1707,7 +1707,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongWChar" @@ -1716,7 +1716,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1728,7 +1728,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapLongWString" @@ -1737,7 +1737,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1749,7 +1749,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortBoolean" @@ -1758,7 +1758,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1770,7 +1770,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortChar" @@ -1779,7 +1779,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1791,7 +1791,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortDouble" @@ -1800,7 +1800,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1812,7 +1812,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortFloat" @@ -1821,7 +1821,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1833,7 +1833,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerAliasArrayHelper" @@ -1842,7 +1842,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1854,7 +1854,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerAliasBoundedStringHelper" @@ -1863,7 +1863,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1875,7 +1875,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerAliasBoundedWStringHelper" @@ -1884,7 +1884,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1896,7 +1896,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerAliasHelper" @@ -1905,7 +1905,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1917,7 +1917,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerAliasMapHelper" @@ -1926,7 +1926,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1938,7 +1938,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerAliasSequenceHelper" @@ -1947,7 +1947,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1959,7 +1959,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerBitMaskHelper" @@ -1968,7 +1968,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1980,7 +1980,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerBitsetHelper" @@ -1989,7 +1989,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2001,7 +2001,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerEnumHelper" @@ -2010,7 +2010,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2022,7 +2022,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerStructureHelper" @@ -2031,7 +2031,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2043,7 +2043,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortInnerUnionHelper" @@ -2052,7 +2052,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2064,7 +2064,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortLong" @@ -2073,7 +2073,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2085,7 +2085,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortLongDouble" @@ -2094,7 +2094,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2106,7 +2106,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortLongLong" @@ -2115,7 +2115,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2127,7 +2127,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortOctet" @@ -2136,7 +2136,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2148,7 +2148,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortShort" @@ -2157,7 +2157,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2169,7 +2169,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortString" @@ -2178,7 +2178,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2190,7 +2190,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortULong" @@ -2199,7 +2199,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2211,7 +2211,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortULongLong" @@ -2220,7 +2220,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2232,7 +2232,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortUShort" @@ -2241,7 +2241,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2253,7 +2253,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortWChar" @@ -2262,7 +2262,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2274,7 +2274,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapShortWString" @@ -2283,7 +2283,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2295,7 +2295,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringBoolean" @@ -2304,7 +2304,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2316,7 +2316,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringChar" @@ -2325,7 +2325,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2337,7 +2337,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringDouble" @@ -2346,7 +2346,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2358,7 +2358,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringFloat" @@ -2367,7 +2367,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2379,7 +2379,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerAliasArrayHelper" @@ -2388,7 +2388,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2400,7 +2400,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerAliasBoundedStringHelper" @@ -2409,7 +2409,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2421,7 +2421,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerAliasBoundedWStringHelper" @@ -2430,7 +2430,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2442,7 +2442,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerAliasHelper" @@ -2451,7 +2451,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2463,7 +2463,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerAliasMapHelper" @@ -2472,7 +2472,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2484,7 +2484,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerAliasSequenceHelper" @@ -2493,7 +2493,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2505,7 +2505,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerBitMaskHelper" @@ -2514,7 +2514,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2526,7 +2526,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerBitsetHelper" @@ -2535,7 +2535,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2547,7 +2547,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerEnumHelper" @@ -2556,7 +2556,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2568,7 +2568,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerStructureHelper" @@ -2577,7 +2577,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2589,7 +2589,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringInnerUnionHelper" @@ -2598,7 +2598,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2610,7 +2610,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringLong" @@ -2619,7 +2619,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2631,7 +2631,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringLongDouble" @@ -2640,7 +2640,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2652,7 +2652,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringLongLong" @@ -2661,7 +2661,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2673,7 +2673,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringOctet" @@ -2682,7 +2682,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2694,7 +2694,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringShort" @@ -2703,7 +2703,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2715,7 +2715,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringString" @@ -2724,7 +2724,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2736,7 +2736,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringULong" @@ -2745,7 +2745,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2757,7 +2757,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringULongLong" @@ -2766,7 +2766,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2778,7 +2778,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringUShort" @@ -2787,7 +2787,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2799,7 +2799,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringWChar" @@ -2808,7 +2808,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2820,7 +2820,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapStringWString" @@ -2829,7 +2829,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2841,7 +2841,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongBoolean" @@ -2850,7 +2850,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2862,7 +2862,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongChar" @@ -2871,7 +2871,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2883,7 +2883,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongDouble" @@ -2892,7 +2892,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2904,7 +2904,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongFloat" @@ -2913,7 +2913,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2925,7 +2925,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerAliasArrayHelper" @@ -2934,7 +2934,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2946,7 +2946,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerAliasBoundedStringHelper" @@ -2955,7 +2955,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2967,7 +2967,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerAliasBoundedWStringHelper" @@ -2976,7 +2976,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -2988,7 +2988,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerAliasHelper" @@ -2997,7 +2997,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3009,7 +3009,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerAliasMapHelper" @@ -3018,7 +3018,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3030,7 +3030,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerAliasSequenceHelper" @@ -3039,7 +3039,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3051,7 +3051,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerBitMaskHelper" @@ -3060,7 +3060,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3072,7 +3072,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerBitsetHelper" @@ -3081,7 +3081,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3093,7 +3093,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerEnumHelper" @@ -3102,7 +3102,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3114,7 +3114,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerStructureHelper" @@ -3123,7 +3123,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3135,7 +3135,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongInnerUnionHelper" @@ -3144,7 +3144,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3156,7 +3156,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLong" @@ -3165,7 +3165,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3177,7 +3177,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongBoolean" @@ -3186,7 +3186,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3198,7 +3198,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongChar" @@ -3207,7 +3207,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3219,7 +3219,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongFloat" @@ -3228,7 +3228,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3240,7 +3240,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerAliasArrayHelper" @@ -3249,7 +3249,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3261,7 +3261,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerAliasBoundedStringHelper" @@ -3270,7 +3270,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3282,7 +3282,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerAliasBoundedWStringHelper" @@ -3291,7 +3291,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3303,7 +3303,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerAliasHelper" @@ -3312,7 +3312,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3324,7 +3324,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerAliasMapHelper" @@ -3333,7 +3333,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3345,7 +3345,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerAliasSequenceHelper" @@ -3354,7 +3354,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3366,7 +3366,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerBitMaskHelper" @@ -3375,7 +3375,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3387,7 +3387,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerBitsetHelper" @@ -3396,7 +3396,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3408,7 +3408,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerEnumHelper" @@ -3417,7 +3417,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3429,7 +3429,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerStructureHelper" @@ -3438,7 +3438,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3450,7 +3450,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongInnerUnionHelper" @@ -3459,7 +3459,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3471,7 +3471,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongLong" @@ -3480,7 +3480,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3492,7 +3492,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongLongDouble" @@ -3501,7 +3501,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3513,7 +3513,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongLongLong" @@ -3522,7 +3522,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3534,7 +3534,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongOctet" @@ -3543,7 +3543,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3555,7 +3555,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongShort" @@ -3564,7 +3564,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3576,7 +3576,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongString" @@ -3585,7 +3585,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3597,7 +3597,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongULong" @@ -3606,7 +3606,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3618,7 +3618,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongULongLong" @@ -3627,7 +3627,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3639,7 +3639,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongUShort" @@ -3648,7 +3648,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3660,7 +3660,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongWChar" @@ -3669,7 +3669,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3681,7 +3681,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongLongWString" @@ -3690,7 +3690,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3702,7 +3702,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongOctet" @@ -3711,7 +3711,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3723,7 +3723,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongShort" @@ -3732,7 +3732,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3744,7 +3744,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongString" @@ -3753,7 +3753,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3765,7 +3765,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongULong" @@ -3774,7 +3774,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3786,7 +3786,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongULongLong" @@ -3795,7 +3795,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3807,7 +3807,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongUShort" @@ -3816,7 +3816,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3828,7 +3828,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongWChar" @@ -3837,7 +3837,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3849,7 +3849,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapULongWString" @@ -3858,7 +3858,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3870,7 +3870,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortBoolean" @@ -3879,7 +3879,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3891,7 +3891,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortChar" @@ -3900,7 +3900,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3912,7 +3912,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortDouble" @@ -3921,7 +3921,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3933,7 +3933,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortFloat" @@ -3942,7 +3942,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3954,7 +3954,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerAliasArrayHelper" @@ -3963,7 +3963,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3975,7 +3975,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerAliasBoundedStringHelper" @@ -3984,7 +3984,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -3996,7 +3996,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerAliasBoundedWStringHelper" @@ -4005,7 +4005,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4017,7 +4017,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerAliasHelper" @@ -4026,7 +4026,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4038,7 +4038,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerAliasMapHelper" @@ -4047,7 +4047,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4059,7 +4059,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerAliasSequenceHelper" @@ -4068,7 +4068,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4080,7 +4080,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerBitMaskHelper" @@ -4089,7 +4089,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4101,7 +4101,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerBitsetHelper" @@ -4110,7 +4110,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4122,7 +4122,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerEnumHelper" @@ -4131,7 +4131,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4143,7 +4143,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerStructureHelper" @@ -4152,7 +4152,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4164,7 +4164,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortInnerUnionHelper" @@ -4173,7 +4173,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4185,7 +4185,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortLong" @@ -4194,7 +4194,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4206,7 +4206,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortLongDouble" @@ -4215,7 +4215,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4227,7 +4227,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortLongLong" @@ -4236,7 +4236,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4248,7 +4248,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortOctet" @@ -4257,7 +4257,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4269,7 +4269,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortShort" @@ -4278,7 +4278,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4290,7 +4290,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortString" @@ -4299,7 +4299,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4311,7 +4311,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortULong" @@ -4320,7 +4320,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4332,7 +4332,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortULongLong" @@ -4341,7 +4341,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4353,7 +4353,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortUShort" @@ -4362,7 +4362,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4374,7 +4374,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortWChar" @@ -4383,7 +4383,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -4395,7 +4395,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MapUShortWString" @@ -4404,7 +4404,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_member_id.json b/test/dds/xtypes/TypesTestsCases/Cases_member_id.json index 3a40a5695e6..3d861ed3029 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_member_id.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_member_id.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AutoidDefault" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AutoidHash" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "AutoidSequential" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "DerivedAutoidDefault" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "DerivedAutoidHash" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "DerivedAutoidSequential" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "DerivedEmptyAutoidSequential" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FixHashid" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FixHashidDefault" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FixHexId" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FixId" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FixMix" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_mutable.json b/test/dds/xtypes/TypesTestsCases/Cases_mutable.json index 08fc2bbac90..4af58837a5e 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_mutable.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_mutable.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableBooleanStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableCharStruct" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableDoubleStruct" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableEmptyInheritanceStruct" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableEmptyStruct" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableExtensibilityInheritance" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableFloatStruct" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableInheritanceEmptyStruct" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableInheritanceStruct" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableLongDoubleStruct" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableLongLongStruct" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableLongStruct" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableOctetStruct" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableShortStruct" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableULongLongStruct" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableULongStruct" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableUShortStruct" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableUnionStruct" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "MutableWCharStruct" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_optional.json b/test/dds/xtypes/TypesTestsCases/Cases_optional.json index 75adf18acf5..90cda0ab439 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_optional.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_optional.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "InnerStructOptional" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "array_short_align_1_optional" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "array_short_align_2_optional" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "array_short_align_4_optional" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "array_short_optional" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "boolean_align_1_optional" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "boolean_align_2_optional" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "boolean_align_4_optional" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "boolean_optional" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "char_align_1_optional" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "char_align_2_optional" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "char_align_4_optional" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "char_optional" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "double_align_1_optional" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "double_align_2_optional" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "double_align_4_optional" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "double_optional" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "float_align_1_optional" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "float_align_2_optional" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "float_align_4_optional" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -426,7 +426,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "float_optional" @@ -435,7 +435,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -447,7 +447,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "long_align_1_optional" @@ -456,7 +456,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -468,7 +468,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "long_align_2_optional" @@ -477,7 +477,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -489,7 +489,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "long_align_4_optional" @@ -498,7 +498,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -510,7 +510,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "long_optional" @@ -519,7 +519,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -531,7 +531,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "longdouble_align_1_optional" @@ -540,7 +540,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -552,7 +552,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "longdouble_align_2_optional" @@ -561,7 +561,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -573,7 +573,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "longdouble_align_4_optional" @@ -582,7 +582,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -594,7 +594,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "longdouble_optional" @@ -603,7 +603,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -615,7 +615,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "longlong_align_1_optional" @@ -624,7 +624,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -636,7 +636,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "longlong_align_2_optional" @@ -645,7 +645,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -657,7 +657,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "longlong_align_4_optional" @@ -666,7 +666,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -678,7 +678,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "longlong_optional" @@ -687,7 +687,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -699,7 +699,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "map_short_align_1_optional" @@ -708,7 +708,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -720,7 +720,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "map_short_align_2_optional" @@ -729,7 +729,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -741,7 +741,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "map_short_align_4_optional" @@ -750,7 +750,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -762,7 +762,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "map_short_optional" @@ -771,7 +771,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -783,7 +783,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "octet_align_1_optional" @@ -792,7 +792,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -804,7 +804,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "octet_align_2_optional" @@ -813,7 +813,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -825,7 +825,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "octet_align_4_optional" @@ -834,7 +834,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -846,7 +846,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "octet_optional" @@ -855,7 +855,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -867,7 +867,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "opt_struct_align_1_optional" @@ -876,7 +876,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -888,7 +888,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "opt_struct_align_2_optional" @@ -897,7 +897,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -909,7 +909,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "opt_struct_align_4_optional" @@ -918,7 +918,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -930,7 +930,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "opt_struct_optional" @@ -939,7 +939,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -951,7 +951,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "sequence_short_align_1_optional" @@ -960,7 +960,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -972,7 +972,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "sequence_short_align_2_optional" @@ -981,7 +981,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -993,7 +993,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "sequence_short_align_4_optional" @@ -1002,7 +1002,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1014,7 +1014,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "sequence_short_optional" @@ -1023,7 +1023,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1035,7 +1035,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "short_align_1_optional" @@ -1044,7 +1044,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1056,7 +1056,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "short_align_2_optional" @@ -1065,7 +1065,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1077,7 +1077,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "short_align_4_optional" @@ -1086,7 +1086,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1098,7 +1098,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "short_optional" @@ -1107,7 +1107,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1119,7 +1119,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "string_bounded_align_1_optional" @@ -1128,7 +1128,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1140,7 +1140,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "string_bounded_align_2_optional" @@ -1149,7 +1149,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1161,7 +1161,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "string_bounded_align_4_optional" @@ -1170,7 +1170,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1182,7 +1182,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "string_bounded_optional" @@ -1191,7 +1191,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1203,7 +1203,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "string_unbounded_align_1_optional" @@ -1212,7 +1212,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1224,7 +1224,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "string_unbounded_align_2_optional" @@ -1233,7 +1233,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1245,7 +1245,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "string_unbounded_align_4_optional" @@ -1254,7 +1254,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1266,7 +1266,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "string_unbounded_optional" @@ -1275,7 +1275,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1287,7 +1287,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "struct_align_1_optional" @@ -1296,7 +1296,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1308,7 +1308,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "struct_align_2_optional" @@ -1317,7 +1317,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1329,7 +1329,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "struct_align_4_optional" @@ -1338,7 +1338,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1350,7 +1350,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "struct_optional" @@ -1359,7 +1359,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1371,7 +1371,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ulong_align_1_optional" @@ -1380,7 +1380,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1392,7 +1392,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ulong_align_2_optional" @@ -1401,7 +1401,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1413,7 +1413,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ulong_align_4_optional" @@ -1422,7 +1422,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1434,7 +1434,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ulong_optional" @@ -1443,7 +1443,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1455,7 +1455,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ulonglong_align_1_optional" @@ -1464,7 +1464,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1476,7 +1476,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ulonglong_align_2_optional" @@ -1485,7 +1485,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1497,7 +1497,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ulonglong_align_4_optional" @@ -1506,7 +1506,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1518,7 +1518,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ulonglong_optional" @@ -1527,7 +1527,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1539,7 +1539,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ushort_align_1_optional" @@ -1548,7 +1548,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1560,7 +1560,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ushort_align_2_optional" @@ -1569,7 +1569,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1581,7 +1581,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ushort_align_4_optional" @@ -1590,7 +1590,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1602,7 +1602,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ushort_optional" @@ -1611,7 +1611,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1623,7 +1623,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "wchar_align_1_optional" @@ -1632,7 +1632,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1644,7 +1644,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "wchar_align_2_optional" @@ -1653,7 +1653,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1665,7 +1665,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "wchar_align_4_optional" @@ -1674,7 +1674,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -1686,7 +1686,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "wchar_optional" @@ -1695,7 +1695,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_primitives.json b/test/dds/xtypes/TypesTestsCases/Cases_primitives.json index e9e9a946272..c2d566c3f2f 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_primitives.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_primitives.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BooleanStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "CharStruct" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "DoubleStruct" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "FloatStruct" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Int16Struct" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Int32Struct" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Int64Struct" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Int8Struct" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "LongDoubleStruct" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "LongLongStruct" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "LongStruct" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "OctetStruct" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ShortStruct" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ULongLongStruct" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "ULongStruct" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UShortStruct" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Uint16Struct" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Uint32Struct" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Uint64Struct" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Uint8Struct" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -426,7 +426,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "WCharStruct" @@ -435,7 +435,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_sequences.json b/test/dds/xtypes/TypesTestsCases/Cases_sequences.json index 1bc77fa7eff..4605e53a615 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_sequences.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_sequences.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BoundedBigSequences" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "BoundedSmallSequences" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceAlias" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceBitMask" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceBitset" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceBoolean" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceChar" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceDouble" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceEnum" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceFloat" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceLong" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceLongDouble" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceLongLong" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceMap" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceOctet" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceSequence" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceShort" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceShortArray" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceString" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceStringBounded" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -426,7 +426,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceStructure" @@ -435,7 +435,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -447,7 +447,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceULong" @@ -456,7 +456,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -468,7 +468,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceULongLong" @@ -477,7 +477,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -489,7 +489,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceUShort" @@ -498,7 +498,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -510,7 +510,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceUnion" @@ -519,7 +519,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -531,7 +531,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceWChar" @@ -540,7 +540,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -552,7 +552,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceWString" @@ -561,7 +561,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -573,7 +573,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SequenceWStringBounded" @@ -582,7 +582,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_strings.json b/test/dds/xtypes/TypesTestsCases/Cases_strings.json index e002cf04787..0a75e16739c 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_strings.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_strings.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "LargeStringStruct" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "LargeWStringStruct" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SmallStringStruct" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "SmallWStringStruct" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StringStruct" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "WStringStruct" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_structures.json b/test/dds/xtypes/TypesTestsCases/Cases_structures.json index f476672000a..4a33491dae0 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_structures.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_structures.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructAlias" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructBitMask" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructBitset" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructBoolean" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructBoundedString" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructBoundedWString" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructChar16" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructChar8" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructDouble" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructEmpty" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructEnum" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructFloat" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructLong" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructLongDouble" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructLongLong" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructMap" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructOctet" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructSequence" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructShort" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructShortArray" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -426,7 +426,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructString" @@ -435,7 +435,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -447,7 +447,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructStructure" @@ -456,7 +456,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -468,7 +468,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructUnion" @@ -477,7 +477,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -489,7 +489,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructUnsignedLong" @@ -498,7 +498,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -510,7 +510,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructUnsignedLongLong" @@ -519,7 +519,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -531,7 +531,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructUnsignedShort" @@ -540,7 +540,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -552,7 +552,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "StructWString" @@ -561,7 +561,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -573,7 +573,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "Structures" @@ -582,7 +582,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -594,7 +594,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "bar" @@ -603,7 +603,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -615,7 +615,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "testing_1::foo" @@ -624,7 +624,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -636,7 +636,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "testing_2::foo" @@ -645,7 +645,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -657,7 +657,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "root" @@ -666,7 +666,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -678,7 +678,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "root1" @@ -687,7 +687,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -699,7 +699,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "root2" @@ -708,7 +708,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/TypesTestsCases/Cases_unions.json b/test/dds/xtypes/TypesTestsCases/Cases_unions.json index cb89f0909af..dd553071ff6 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_unions.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_unions.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionArray" @@ -15,7 +15,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -27,7 +27,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionBoolean" @@ -36,7 +36,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -48,7 +48,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionBoundedString" @@ -57,7 +57,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -69,7 +69,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionBoundedWString" @@ -78,7 +78,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -90,7 +90,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionChar" @@ -99,7 +99,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -111,7 +111,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorAlias" @@ -120,7 +120,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -132,7 +132,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorBoolean" @@ -141,7 +141,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -153,7 +153,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorChar" @@ -162,7 +162,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -174,7 +174,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorEnum" @@ -183,7 +183,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -195,7 +195,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorEnumLabel" @@ -204,7 +204,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -216,7 +216,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorLong" @@ -225,7 +225,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -237,7 +237,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorLongLong" @@ -246,7 +246,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -258,7 +258,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorOctet" @@ -267,7 +267,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -279,7 +279,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorShort" @@ -288,7 +288,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -300,7 +300,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorULong" @@ -309,7 +309,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -321,7 +321,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorULongLong" @@ -330,7 +330,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -342,7 +342,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorUShort" @@ -351,7 +351,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -363,7 +363,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDiscriminatorWChar" @@ -372,7 +372,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -384,7 +384,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionDouble" @@ -393,7 +393,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -405,7 +405,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionFloat" @@ -414,7 +414,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -426,7 +426,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionInnerAliasHelper" @@ -435,7 +435,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -447,7 +447,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionInnerBitMaskHelper" @@ -456,7 +456,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -468,7 +468,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionInnerBitsetHelper" @@ -477,7 +477,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -489,7 +489,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionInnerEnumHelper" @@ -498,7 +498,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -510,7 +510,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionInnerStructureHelper" @@ -519,7 +519,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -531,7 +531,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionInnerUnionHelper" @@ -540,7 +540,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -552,7 +552,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionLong" @@ -561,7 +561,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -573,7 +573,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionLongDouble" @@ -582,7 +582,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -594,7 +594,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionLongLong" @@ -603,7 +603,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -615,7 +615,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionMap" @@ -624,7 +624,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -636,7 +636,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionOctet" @@ -645,7 +645,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -657,7 +657,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionSequence" @@ -666,7 +666,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -678,7 +678,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionSeveralFields" @@ -687,7 +687,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -699,7 +699,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionSeveralFieldsWithDefault" @@ -708,7 +708,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -720,7 +720,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionShort" @@ -729,7 +729,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -741,7 +741,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionString" @@ -750,7 +750,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -762,7 +762,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionULong" @@ -771,7 +771,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -783,7 +783,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionULongLong" @@ -792,7 +792,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -804,7 +804,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionUShort" @@ -813,7 +813,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -825,7 +825,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionWChar" @@ -834,7 +834,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } @@ -846,7 +846,7 @@ { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [ "UnionWString" @@ -855,7 +855,7 @@ { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index cc4979a7dde..5f39dbb58e0 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -1,13 +1,68 @@ +# 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. +# 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. + +import argparse +import asyncio import json +import logging import os import shutil import subprocess import sys import time +from asyncio.subprocess import PIPE + +# Max default time to kill a process in case it gets stucked +# This is done by ctest automatically, but this script could be +# run independently of ctest +MAX_TIME = 60*5 + # Define the directory of the script script_dir = os.path.dirname(os.path.realpath(__file__)) +DESCRIPTION = """Script to run TypeLookupService tests""" +USAGE = ('python3 test_build.py [-d] ') + +def parse_options(): + """ + Parse arguments. + + :return: The arguments parsed. + """ + parser = argparse.ArgumentParser( + formatter_class=argparse.ArgumentDefaultsHelpFormatter, + add_help=True, + description=(DESCRIPTION), + usage=(USAGE) + ) + + parser.add_argument( + 'file', + nargs=1, + help='JSON file.' + ) + + parser.add_argument( + '-d', + '--debug', + action='store_true', + help='Print test debugging info.' + ) + + return parser.parse_args() + def read_json(file_name): """Read json file with test definition.""" @@ -61,33 +116,110 @@ def define_commands(test_cases): return all_commands -def execute_commands(commands): - """Execute each process with the given commands.""" - processes = [] +async def read_output(test_case, output, num_lines, index): + """ + Read an process stream output, printing each line using the internal log. + Also update the line counter in the num_lines list using the index argument. + + :param[in] output: Process stream output. + :param[inout] num_lines List with line counters for each process stream output. + :param[in] index Indicates which line counter must be updated. + """ + + while True: + try: + line = await asyncio.wait_for(output.readline(), timeout=None) + except asyncio.CancelledError: + pass + else: + if line: + num_lines[index] = num_lines[index] + 1 + logger.info(test_case + ": " + line.decode('utf-8')) + continue + break + + +async def read_outputs(test_case, proc, num_lines): + """ + Read asynchronously the stdout and stderr of the process. + + :param[in] proc Process whose stream outputs will be read. + :param[inout] num_lines List with line counters for each process stream output. + """ + await asyncio.gather(read_output(test_case, proc.stdout, num_lines, 0), read_output(test_case, proc.stderr, num_lines, 1)) + + +async def run_command(test_case, process_args, timeout): + """ + Execute a process and read its stream outputs asynchronously. + + :param[in] process_args List of process arguments. + :param[in] environment List of environment variables to be used when executing the process. + :param[in] timeout Expiration time of the execution. + + :return Tuple (process return code, lines printed on stderr stream output) + """ + logger.debug("Running command: " + str(process_args)) + proc = await asyncio.create_subprocess_exec( + *process_args, + stdout=PIPE, + stderr=PIPE + ) - for command in commands: - processes.append(subprocess.Popen(command)) - time.sleep(0.1) # Delay for consistency + num_lines = [0, 0] - ret_value = 0 + try: + await asyncio.wait_for(read_outputs(test_case, proc, num_lines), timeout) + except asyncio.TimeoutError: + pass - for proc in processes: - proc.communicate() # Wait for the process to finish - ret_value += proc.returncode + try: + proc.send_signal(signal.SIGINT) + time.sleep(1) + except Exception: + pass - return ret_value + try: + proc.kill() + except Exception: + pass + + return await proc.wait() + + +async def execute_commands(test_case, commands): + tasks = [] + async with asyncio.TaskGroup() as tg: + for command in commands: + tasks.append(tg.create_task(run_command(test_case, command, MAX_TIME))) + time.sleep(0.1) # Delay for consistency + + return sum([proc.result() for proc in tasks]) if __name__ == '__main__': - args = sys.argv[1:] - # Check if the number of arguments is correct - if len(args) != 1: - ('ARGUMENTS ERROR: 1 argument required: path to .json file with test definition') - sys.exit(1) + # Parse arguments + args = parse_options() + + # Create a custom logger + logger = logging.getLogger('TypeLookupServiceTester') + # Create handlers + l_handler = logging.StreamHandler() + # Create formatters and add it to handlers + l_format = '[%(asctime)s][%(name)s][%(levelname)s] %(message)s' + l_format = logging.Formatter(l_format) + l_handler.setFormatter(l_format) + # Add handlers to the logger + logger.addHandler(l_handler) + # Set log level + if args.debug: + logger.setLevel(logging.DEBUG) + else: + logger.setLevel(logging.INFO) # Read test cases from the provided JSON file - test_cases = read_json(args[0])['test_cases'] + test_cases = read_json(args.file[0])['test_cases'] total_test_value = 0 successful_cases = [] @@ -97,7 +229,7 @@ def execute_commands(commands): # Define commands for each test case commands = define_commands([test_case]) # Execute the commands and get the return value - test_value = execute_commands(commands) + test_value = asyncio.run(execute_commands(test_case['TestCase'], commands)) total_test_value += test_value if test_value == 0: successful_cases.append(f"Test {test_case.get('TestCase')}") @@ -106,14 +238,14 @@ def execute_commands(commands): # Print the results if successful_cases.__len__() > 0: - print("---------- SUCCESSFUL CASES ----------") + logger.info("---------- SUCCESSFUL CASES ----------") for successful_test in successful_cases: - print(successful_test) + logger.info(successful_test) if failling_cases.__len__() > 0: - print("----------- FAILLING CASES -----------") + logger.info("----------- FAILLING CASES -----------") for failed_test in failling_cases: - print(failed_test) + logger.info(failed_test) # Exit with appropriate exit code based on total test value if total_test_value != 0: diff --git a/test/dds/xtypes/update_header_and_create_cases.py b/test/dds/xtypes/update_header_and_create_cases.py index 33f21b0a146..1a810c71bb0 100644 --- a/test/dds/xtypes/update_header_and_create_cases.py +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -9,7 +9,10 @@ def __init__(self): self.structs_info = set() # List of files to ignore - self.files_to_ignore = {"relative_path_include.idl"} + self.files_to_ignore = { + "external.idl", + "relative_path_include.idl" + } # List of struct names to ignore self.struct_names_to_ignore = ["MapWString*", "MapInnerAliasBoundedWStringHelper*", "AnnotatedStruct"] # List of IDL files that don't have a TypeObject @@ -89,14 +92,14 @@ def create_case_files(structs_info, struct_names_to_ignore): { "kind": "publisher", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": known_types }, { "kind": "subscriber", "samples": "10", - "timeout": "2", + "timeout": "10", "expected_matches": "1", "known_types": [] } From 0ee77c7aeea3a6d10a5e814cd563b020e77179aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Mon, 9 Sep 2024 10:40:30 +0200 Subject: [PATCH 30/45] Refs #20165. Fix typelookupservice builin endpoing discovery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../rtps/builtin/discovery/participant/PDPSimple.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp b/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp index 27da9a5c547..af537bb04da 100644 --- a/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp @@ -737,11 +737,6 @@ void PDPSimple::assign_low_level_remote_endpoints( const ParticipantProxyData& pdata, bool notify_secure_endpoints) { - if (mp_EDP != nullptr) - { - mp_EDP->assignRemoteEndpoints(pdata, notify_secure_endpoints); - } - if (mp_builtin->mp_WLP != nullptr) { mp_builtin->mp_WLP->assignRemoteEndpoints(pdata, notify_secure_endpoints); @@ -751,6 +746,11 @@ void PDPSimple::assign_low_level_remote_endpoints( { mp_builtin->typelookup_manager_->assign_remote_endpoints(pdata); } + + if (mp_EDP != nullptr) + { + mp_EDP->assignRemoteEndpoints(pdata, notify_secure_endpoints); + } } #if HAVE_SECURITY From 1b861d08d3146ec343c7f9dbac085d7c2cc2829f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Mon, 9 Sep 2024 11:36:28 +0200 Subject: [PATCH 31/45] Refs #20165. Removed member_id testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- test/dds/xtypes/CMakeLists.txt | 4 +- test/dds/xtypes/TypeLookupServicePublisher.h | 12 - test/dds/xtypes/TypeLookupServiceSubscriber.h | 12 - test/dds/xtypes/TypeLookupServiceTestsTypes.h | 1 - .../TypesTestsCases/Cases_member_id.json | 256 ------------------ .../TypesTestsCases/Cases_structures.json | 4 +- test/dds/xtypes/test_build.py | 2 +- .../xtypes/update_header_and_create_cases.py | 1 + 8 files changed, 6 insertions(+), 286 deletions(-) delete mode 100644 test/dds/xtypes/TypesTestsCases/Cases_member_id.json diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index 5c20e24bd60..d60b2679149 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -52,8 +52,8 @@ file(GLOB COMMON_SOURCE ${PROJECT_SOURCE_DIR}/test/dds-types-test/keyTypeObjectSupport.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/mapsPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/mapsTypeObjectSupport.cxx - ${PROJECT_SOURCE_DIR}/test/dds-types-test/member_idPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/test/dds-types-test/member_idTypeObjectSupport.cxx + # ${PROJECT_SOURCE_DIR}/test/dds-types-test/member_idPubSubTypes.cxx + # ${PROJECT_SOURCE_DIR}/test/dds-types-test/member_idTypeObjectSupport.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/mutablePubSubTypes.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/mutableTypeObjectSupport.cxx ${PROJECT_SOURCE_DIR}/test/dds-types-test/optionalPubSubTypes.cxx diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index 4943de9d42b..91be1223f49 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -664,18 +664,6 @@ class TypeLookupServicePublisher PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortUShort); PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortWChar); PUBLISHER_TYPE_CREATOR_FUNCTION(MapUShortWString); - PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidDefault); - PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidHash); - PUBLISHER_TYPE_CREATOR_FUNCTION(AutoidSequential); - PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidDefault); - PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidHash); - PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedAutoidSequential); - PUBLISHER_TYPE_CREATOR_FUNCTION(DerivedEmptyAutoidSequential); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixHashid); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixHashidDefault); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixHexId); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixId); - PUBLISHER_TYPE_CREATOR_FUNCTION(FixMix); PUBLISHER_TYPE_CREATOR_FUNCTION(MutableBooleanStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(MutableCharStruct); PUBLISHER_TYPE_CREATOR_FUNCTION(MutableDoubleStruct); diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index b2c06550413..241467b79a0 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -676,18 +676,6 @@ class TypeLookupServiceSubscriber SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortUShort); SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortWChar); SUBSCRIBER_TYPE_CREATOR_FUNCTION(MapUShortWString); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidDefault); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidHash); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(AutoidSequential); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidDefault); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidHash); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedAutoidSequential); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(DerivedEmptyAutoidSequential); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHashid); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHashidDefault); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixHexId); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixId); - SUBSCRIBER_TYPE_CREATOR_FUNCTION(FixMix); SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableBooleanStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableCharStruct); SUBSCRIBER_TYPE_CREATOR_FUNCTION(MutableDoubleStruct); diff --git a/test/dds/xtypes/TypeLookupServiceTestsTypes.h b/test/dds/xtypes/TypeLookupServiceTestsTypes.h index eeb1c9fdd71..7776a86af44 100644 --- a/test/dds/xtypes/TypeLookupServiceTestsTypes.h +++ b/test/dds/xtypes/TypeLookupServiceTestsTypes.h @@ -36,7 +36,6 @@ #include "../../dds-types-test/inheritancePubSubTypes.hpp" #include "../../dds-types-test/keyPubSubTypes.hpp" #include "../../dds-types-test/mapsPubSubTypes.hpp" -#include "../../dds-types-test/member_idPubSubTypes.hpp" #include "../../dds-types-test/mutablePubSubTypes.hpp" #include "../../dds-types-test/optionalPubSubTypes.hpp" #include "../../dds-types-test/primitivesPubSubTypes.hpp" diff --git a/test/dds/xtypes/TypesTestsCases/Cases_member_id.json b/test/dds/xtypes/TypesTestsCases/Cases_member_id.json deleted file mode 100644 index 3d861ed3029..00000000000 --- a/test/dds/xtypes/TypesTestsCases/Cases_member_id.json +++ /dev/null @@ -1,256 +0,0 @@ -{ - "test_cases": [ - { - "TestCase": "Case_member_id_AutoidDefault", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "AutoidDefault" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_AutoidHash", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "AutoidHash" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_AutoidSequential", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "AutoidSequential" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_DerivedAutoidDefault", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "DerivedAutoidDefault" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_DerivedAutoidHash", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "DerivedAutoidHash" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_DerivedAutoidSequential", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "DerivedAutoidSequential" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_DerivedEmptyAutoidSequential", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "DerivedEmptyAutoidSequential" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_FixHashid", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "FixHashid" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_FixHashidDefault", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "FixHashidDefault" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_FixHexId", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "FixHexId" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_FixId", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "FixId" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - }, - { - "TestCase": "Case_member_id_FixMix", - "participants": [ - { - "kind": "publisher", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [ - "FixMix" - ] - }, - { - "kind": "subscriber", - "samples": "10", - "timeout": "10", - "expected_matches": "1", - "known_types": [] - } - ] - } - ] -} \ No newline at end of file diff --git a/test/dds/xtypes/TypesTestsCases/Cases_structures.json b/test/dds/xtypes/TypesTestsCases/Cases_structures.json index 4a33491dae0..0b44fe74e52 100644 --- a/test/dds/xtypes/TypesTestsCases/Cases_structures.json +++ b/test/dds/xtypes/TypesTestsCases/Cases_structures.json @@ -618,7 +618,7 @@ "timeout": "10", "expected_matches": "1", "known_types": [ - "testing_1::foo" + "testing_2::foo" ] }, { @@ -639,7 +639,7 @@ "timeout": "10", "expected_matches": "1", "known_types": [ - "testing_2::foo" + "testing_1::foo" ] }, { diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 5f39dbb58e0..5c9dd3a343b 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -171,6 +171,7 @@ async def run_command(test_case, process_args, timeout): try: await asyncio.wait_for(read_outputs(test_case, proc, num_lines), timeout) except asyncio.TimeoutError: + logger.debug(" Timeout") pass try: @@ -192,7 +193,6 @@ async def execute_commands(test_case, commands): async with asyncio.TaskGroup() as tg: for command in commands: tasks.append(tg.create_task(run_command(test_case, command, MAX_TIME))) - time.sleep(0.1) # Delay for consistency return sum([proc.result() for proc in tasks]) diff --git a/test/dds/xtypes/update_header_and_create_cases.py b/test/dds/xtypes/update_header_and_create_cases.py index 1a810c71bb0..00c6d65b180 100644 --- a/test/dds/xtypes/update_header_and_create_cases.py +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -11,6 +11,7 @@ def __init__(self): # List of files to ignore self.files_to_ignore = { "external.idl", + "member_id.idl", # Not support while @autoid(HASH) StructTypeFlag information cannot be pass to DynamicType API. "relative_path_include.idl" } # List of struct names to ignore From 0cf0837af922d49b40a618873a42f62a33e55c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 10 Sep 2024 08:46:02 +0200 Subject: [PATCH 32/45] Refs #20165. Fix and improve tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../dds/xtypes/TypeLookupServicePublisher.cpp | 8 +- test/dds/xtypes/TypeLookupServicePublisher.h | 6 +- .../xtypes/TypeLookupServiceSubscriber.cpp | 8 +- test/dds/xtypes/TypeLookupServiceSubscriber.h | 6 +- test/dds/xtypes/TypeLookupService_main.cpp | 9 +- test/dds/xtypes/test_build.py | 1 + .../TypeLookupServiceTests.cpp | 20 +- .../scripts/update_generated_code_from_idl.sh | 248 +++++++++--------- 8 files changed, 158 insertions(+), 148 deletions(-) diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index 3ac0f792a61..d4442583689 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -28,8 +28,6 @@ using namespace eprosima::fastdds::dds; using namespace eprosima::fastdds::rtps; -static int PUB_DOMAIN_ID_ = 173; - TypeLookupServicePublisher::~TypeLookupServicePublisher() { if (nullptr != participant_) @@ -46,8 +44,10 @@ TypeLookupServicePublisher::~TypeLookupServicePublisher() } bool TypeLookupServicePublisher::init( + uint32_t domain_id, std::vector known_types) { + domain_id_ = domain_id; create_type_creator_functions(); LibrarySettings settings; @@ -55,7 +55,7 @@ bool TypeLookupServicePublisher::init( DomainParticipantFactory::get_instance()->set_library_settings(settings); participant_ = DomainParticipantFactory::get_instance() - ->create_participant(PUB_DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this); + ->create_participant(domain_id, PARTICIPANT_QOS_DEFAULT, this); if (participant_ == nullptr) { std::cout << "ERROR TypeLookupServicePublisher: create_participant" << std::endl; @@ -88,7 +88,7 @@ bool TypeLookupServicePublisher::setup_publisher( // CREATE THE TOPIC std::ostringstream topic_name; - topic_name << type_name << "_" << asio::ip::host_name() << "_" << PUB_DOMAIN_ID_; + topic_name << type_name << "_" << asio::ip::host_name() << "_" << domain_id_; Topic* topic = participant_->create_topic(topic_name.str(), a_type.type_sup_.get_type_name(), TOPIC_QOS_DEFAULT); if (topic == nullptr) { diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index 91be1223f49..ee60429d743 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -77,6 +77,7 @@ class TypeLookupServicePublisher ~TypeLookupServicePublisher(); bool init( + uint32_t domain_id, std::vector known_types); bool wait_discovery( @@ -119,8 +120,8 @@ class TypeLookupServicePublisher std::mutex mutex_; std::condition_variable cv_; - int32_t matched_ = 0; - uint32_t expected_matches_ = 0; + int32_t matched_ {0}; + uint32_t expected_matches_ {0}; std::map sent_samples_; std::mutex known_types_mutex_; @@ -128,6 +129,7 @@ class TypeLookupServicePublisher std::unordered_set types_without_typeobject_; std::map> type_creator_functions_; std::vector create_types_threads; + uint32_t domain_id_ {0}; /** * This method is updated automatically using the update_headers_and_create_cases.py script diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index fdcc3237729..dd8fb14d244 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -30,8 +30,6 @@ using namespace eprosima::fastdds::dds; using namespace eprosima::fastdds::rtps; -static int SUB_DOMAIN_ID_ = 173; - TypeLookupServiceSubscriber::~TypeLookupServiceSubscriber() { if (nullptr != participant_) @@ -48,8 +46,10 @@ TypeLookupServiceSubscriber::~TypeLookupServiceSubscriber() } bool TypeLookupServiceSubscriber::init( + uint32_t domain_id, std::vector known_types) { + domain_id_ = domain_id; create_type_creator_functions(); LibrarySettings settings; @@ -61,7 +61,7 @@ bool TypeLookupServiceSubscriber::init( << StatusMask::liveliness_changed(); participant_ = DomainParticipantFactory::get_instance() - ->create_participant(SUB_DOMAIN_ID_, PARTICIPANT_QOS_DEFAULT, this, mask); + ->create_participant(domain_id, PARTICIPANT_QOS_DEFAULT, this, mask); if (participant_ == nullptr) { std::cout << "ERROR TypeLookupServiceSubscriber: create_participant" << std::endl; @@ -94,7 +94,7 @@ bool TypeLookupServiceSubscriber::setup_subscriber( //CREATE THE TOPIC std::ostringstream topic_name; - topic_name << type_name << "_" << asio::ip::host_name() << "_" << SUB_DOMAIN_ID_; + topic_name << type_name << "_" << asio::ip::host_name() << "_" << domain_id_; Topic* topic = participant_->create_topic(topic_name.str(), new_type.type_sup_.get_type_name(), TOPIC_QOS_DEFAULT); if (topic == nullptr) { diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index 241467b79a0..3b9799f34cd 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -78,6 +78,7 @@ class TypeLookupServiceSubscriber ~TypeLookupServiceSubscriber(); bool init( + uint32_t domain_id, std::vector known_types); bool wait_discovery( @@ -130,8 +131,8 @@ class TypeLookupServiceSubscriber std::mutex mutex_; std::condition_variable cv_; - int32_t matched_ = 0; - uint32_t expected_matches_ = 0; + int32_t matched_ {0}; + uint32_t expected_matches_ {0}; std::map received_samples_; std::mutex known_types_mutex_; @@ -140,6 +141,7 @@ class TypeLookupServiceSubscriber std::map> type_creator_functions_; std::map> type_processor_functions_; std::vector create_types_threads; + uint32_t domain_id_ {0}; /** * This method is updated automatically using the update_headers_and_create_cases.py script diff --git a/test/dds/xtypes/TypeLookupService_main.cpp b/test/dds/xtypes/TypeLookupService_main.cpp index 1a873a4ad71..4ac0819cb54 100644 --- a/test/dds/xtypes/TypeLookupService_main.cpp +++ b/test/dds/xtypes/TypeLookupService_main.cpp @@ -32,6 +32,7 @@ struct CommandLineArgs int timeout; int expected_matches; std::vector known_types; + uint32_t seed {10800}; }; CommandLineArgs parse_args( @@ -82,6 +83,10 @@ CommandLineArgs parse_args( args.known_types.push_back(type); } } + else if (key == "seed") + { + args.seed = strtol(value.c_str(), nullptr, 10); + } } return args; @@ -105,14 +110,14 @@ int main( switch (args.kind){ case 1: { eprosima::fastdds::dds::TypeLookupServicePublisher pub; - return (pub.init(args.known_types) && + return (pub.init(args.seed % 230, args.known_types) && pub.wait_discovery(args.expected_matches, args.timeout) && pub.run(args.samples, args.timeout) && pub.wait_discovery(0, args.timeout)) ? 0 : -1; } case 2: { eprosima::fastdds::dds::TypeLookupServiceSubscriber sub; - return (sub.init(args.known_types) && + return (sub.init(args.seed % 230, args.known_types) && sub.wait_discovery(args.expected_matches, args.timeout) && sub.run(args.samples, args.timeout)) ? 0 : -1; } diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 5c9dd3a343b..39668f6fda3 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -79,6 +79,7 @@ def define_args(participant): args.extend([f"samples={participant.get('samples', 10)}"]) args.extend([f"timeout={participant.get('timeout', 10)}"]) args.extend([f"expected_matches={participant.get('expected_matches', 1)}"]) + args.extend([f"seed={str(os.getpid())}"]) # Check if 'known_types' key exists and is a list if 'known_types' in participant and isinstance(participant['known_types'], list): diff --git a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp index 9214e25befd..f8e2253a6ca 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp +++ b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp @@ -479,7 +479,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNSUPPORTED) MockLogConsumer* log_consumer = setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received reply with exception code: " + - static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNSUPPORTED)); + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNSUPPORTED))); CacheChange_t* change = new CacheChange_t(); @@ -506,7 +506,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_INVALID_ARGUMEN MockLogConsumer* log_consumer = setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received reply with exception code: " + - static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_INVALID_ARGUMENT)); + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_INVALID_ARGUMENT))); CacheChange_t* change = new CacheChange_t(); @@ -533,7 +533,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_OUT_OF_RESOURCE MockLogConsumer* log_consumer = setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received reply with exception code: " + - static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_OUT_OF_RESOURCES)); + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_OUT_OF_RESOURCES))); CacheChange_t* change = new CacheChange_t(); @@ -559,7 +559,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_OPERATI MockLogConsumer* log_consumer = setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received reply with exception code: " + - static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_OPERATION)); + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_OPERATION))); CacheChange_t* change = new CacheChange_t(); @@ -585,7 +585,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_EXCEPTI MockLogConsumer* log_consumer = setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received reply with exception code: " + - static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_EXCEPTION)); + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_EXCEPTION))); CacheChange_t* change = new CacheChange_t(); @@ -674,7 +674,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_empty_t type_ids.type_identifier1(pair.type_identifier()); EXPECT_CALL(registry, - register_type_object(_, ::testing::Eq(type_ids))).Times(1).WillOnce( + register_type_object(_, ::testing::Eq(type_ids), false)).Times(1).WillOnce( ::testing::Return(RETCODE_PRECONDITION_NOT_MET)); EXPECT_CALL(*tlm_, remove_async_get_type_request(_)).WillOnce(testing::Return(true)); @@ -700,7 +700,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_inconsi TypeIdentifierTypeObjectPair pair; TypeIdentifier id; - id._d(TK_STRUCTURE); + id._d(TK_CHAR8); TypeObject obj; obj.complete({}); obj.complete().sequence_type({}); @@ -717,7 +717,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_registry_inconsi type_ids.type_identifier1(pair.type_identifier()); EXPECT_CALL(registry, - register_type_object(::testing::Eq(obj), ::testing::Eq(type_ids))).Times(1).WillOnce( + register_type_object(::testing::Eq(obj), ::testing::Eq(type_ids), false)).Times(1).WillOnce( ::testing::Return(RETCODE_PRECONDITION_NOT_MET)); EXPECT_CALL(*tlm_, remove_async_get_type_request(_)).WillOnce(testing::Return(true)); @@ -909,7 +909,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_registry_unkno TypeLookup_getTypes_In in; TypeIdentifierSeq id_seq; TypeIdentifier id; - id._d(TK_STRUCTURE); + id._d(TK_CHAR8); id_seq.push_back(id); in.type_ids(id_seq); @@ -961,7 +961,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getDependencies_registr TypeLookup_getTypeDependencies_In in; TypeIdentifierSeq id_seq; TypeIdentifier id; - id._d(TK_STRUCTURE); + id._d(TK_CHAR8); id_seq.push_back(id); in.type_ids(id_seq); in.type_ids().push_back(id); diff --git a/utils/scripts/update_generated_code_from_idl.sh b/utils/scripts/update_generated_code_from_idl.sh index 575fd3918b8..5b93acdd98f 100755 --- a/utils/scripts/update_generated_code_from_idl.sh +++ b/utils/scripts/update_generated_code_from_idl.sh @@ -3,136 +3,136 @@ set -e files_to_exclude=( - './thirdparty/dds-types-test/IDL/relative_path_include.idl' # Relative path not working in current location. + './thirdparty/dds-types-test/IDL/relative_path_include.idl' # Relative path not working in current location. ) files_not_needing_typeobject=( - './include/fastdds/dds/xtypes/type_representation/detail/dds-xtypes_typeobject.idl' - './src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_types.idl' - './src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypes.idl' - './test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl' - './thirdparty/dds-types-test/IDL/declarations.idl' - './thirdparty/dds-types-test/IDL/external.idl' + './include/fastdds/dds/xtypes/type_representation/detail/dds-xtypes_typeobject.idl' + './src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_types.idl' + './src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypes.idl' + './test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl' + './thirdparty/dds-types-test/IDL/declarations.idl' + './thirdparty/dds-types-test/IDL/external.idl' ) files_needing_case_sensitive=( -) - -files_needing_output_dir=( - './include/fastdds/dds/xtypes/type_representation/dds-xtypes_typeobject.idl|./detail' - './include/fastdds/statistics/monitorservice_types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' - './include/fastdds/statistics/types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' - './test/blackbox/types/core/core_types.idl|.' - './test/unittest/dds/xtypes/serializers/idl/types/alias_struct/alias_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/array_struct/array_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/bitmask_struct/bitmask_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/bitset_struct/bitset_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/enum_struct/enum_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/extensibility_struct/extensibility_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/key_struct/key_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/map_struct/map_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/primitives_struct/primitives_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/sequence_struct/sequence_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/string_struct/string_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/struct_struct/struct_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/union_struct/union_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/json/types/comprehensive_type/ComprehensiveType.idl|./gen' - './thirdparty/dds-types-test/IDL/aliases.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/annotations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/appendable.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/arrays.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/bitsets.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/constants.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/declarations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/enumerations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/external.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/final.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/helpers/basic_inner_types.idl|../../../../test/dds-types-test/helpers' - './thirdparty/dds-types-test/IDL/inheritance.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/key.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/maps.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/member_id.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/mutable.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/optional.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/primitives.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/relative_path_include.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/sequences.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/strings.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/structures.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/unions.idl|../../../test/dds-types-test' -) - -files_needing_no_typesupport=( - './include/fastdds/dds/core/detail/DDSReturnCode.idl' - './include/fastdds/dds/core/detail/DDSSecurityReturnCode.idl' - './include/fastdds/dds/xtypes/dynamic_types/detail/dynamic_language_binding.idl' -) - -red='\E[1;31m' -yellow='\E[1;33m' -textreset='\E[1;0m' - -current_dir=$(git rev-parse --show-toplevel) - -if [[ ! "$(pwd -P)" -ef "$current_dir" ]]; then - echo -e "${red}This script must be executed in the repository root directory.${textreset}" - exit -1 -fi - -if [[ -z "$(which fastddsgen)" ]]; then - echo "Cannot find fastddsgen. Please, include it in PATH environment variable" - exit -1 -fi - -readarray -d '' idl_files < <(find . -iname \*.idl -print0) - -for del in ${files_to_exclude[@]}; do - idl_files=("${idl_files[@]/$del/}") -done - -idl_files=(${idl_files[@]/$files_to_exclude/}) - -ret_value=0 - -for idl_file in "${idl_files[@]}"; do - idl_dir=$(dirname "$idl_file") - file_from_gen=$(basename "$idl_file") - - echo -e "Processing ${yellow}$idl_file${textreset}" - - cd "${idl_dir}" - - # Detect if needs type_object. - [[ ${files_not_needing_typeobject[*]} =~ $idl_file ]] && to_arg='-no-typeobjectsupport' || to_arg='' - - # Detect if needs case sensitive. - [[ ${files_needing_case_sensitive[*]} =~ $idl_file ]] && cs_arg='-cs' || cs_arg='' - - [[ ${files_needing_no_typesupport[*]} =~ $idl_file ]] && nosupport_arg='-no-typesupport' || nosupport_arg='' - - # Detect if needs output directories. - not_processed=true - for od_entry in ${files_needing_output_dir[@]}; do - if [[ $od_entry = $idl_file\|* ]]; then - not_processed=false - od_entry_split=(${od_entry//\|/ }) - for od_entry_split_element in ${od_entry_split[@]:1}; do - od_arg="-d ${od_entry_split_element}" - fastddsgen -replace -genapi $to_arg $cs_arg $od_arg "$file_from_gen" -no-dependencies - done - break - fi - done - - if $not_processed; then - fastddsgen -replace -genapi $to_arg $cs_arg $nosupport_arg "$file_from_gen" -no-dependencies - fi - - if [[ $? != 0 ]]; then - ret_value=-1 - fi - - cd - + ) + + files_needing_output_dir=( + './include/fastdds/dds/xtypes/type_representation/dds-xtypes_typeobject.idl|./detail' + './include/fastdds/statistics/monitorservice_types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' + './include/fastdds/statistics/types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' + './test/blackbox/types/core/core_types.idl|.' + './test/unittest/dds/xtypes/serializers/idl/types/alias_struct/alias_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/array_struct/array_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/bitmask_struct/bitmask_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/bitset_struct/bitset_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/enum_struct/enum_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/extensibility_struct/extensibility_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/key_struct/key_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/map_struct/map_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/primitives_struct/primitives_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/sequence_struct/sequence_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/string_struct/string_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/struct_struct/struct_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/union_struct/union_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/json/types/comprehensive_type/ComprehensiveType.idl|./gen' + './thirdparty/dds-types-test/IDL/aliases.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/annotations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/appendable.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/arrays.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/bitsets.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/constants.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/declarations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/enumerations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/external.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/final.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/helpers/basic_inner_types.idl|../../../../test/dds-types-test/helpers' + './thirdparty/dds-types-test/IDL/inheritance.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/key.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/maps.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/member_id.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/mutable.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/optional.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/primitives.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/relative_path_include.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/sequences.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/strings.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/structures.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/unions.idl|../../../test/dds-types-test' + ) + + files_needing_no_typesupport=( + './include/fastdds/dds/core/detail/DDSReturnCode.idl' + './include/fastdds/dds/core/detail/DDSSecurityReturnCode.idl' + './include/fastdds/dds/xtypes/dynamic_types/detail/dynamic_language_binding.idl' + ) + + red='\E[1;31m' + yellow='\E[1;33m' + textreset='\E[1;0m' + + current_dir=$(git rev-parse --show-toplevel) + + if [[ ! "$(pwd -P)" -ef "$current_dir" ]]; then + echo -e "${red}This script must be executed in the repository root directory.${textreset}" + exit -1 + fi + + if [[ -z "$(which fastddsgen)" ]]; then + echo "Cannot find fastddsgen. Please, include it in PATH environment variable" + exit -1 + fi + + readarray -d '' idl_files < <(find . -iname \*.idl -print0) + + for del in ${files_to_exclude[@]}; do + idl_files=("${idl_files[@]/$del/}") + done + + idl_files=(${idl_files[@]/$files_to_exclude/}) + + ret_value=0 + + for idl_file in "${idl_files[@]}"; do + idl_dir=$(dirname "$idl_file") + file_from_gen=$(basename "$idl_file") + + echo -e "Processing ${yellow}$idl_file${textreset}" + + cd "${idl_dir}" + + # Detect if needs type_object. + [[ ${files_not_needing_typeobject[*]} =~ $idl_file ]] && to_arg='-no-typeobjectsupport' || to_arg='' + + # Detect if needs case sensitive. + [[ ${files_needing_case_sensitive[*]} =~ $idl_file ]] && cs_arg='-cs' || cs_arg='' + + [[ ${files_needing_no_typesupport[*]} =~ $idl_file ]] && nosupport_arg='-no-typesupport' || nosupport_arg='' + + # Detect if needs output directories. + not_processed=true + for od_entry in ${files_needing_output_dir[@]}; do + if [[ $od_entry = $idl_file\|* ]]; then + not_processed=false + od_entry_split=(${od_entry//\|/ }) + for od_entry_split_element in ${od_entry_split[@]:1}; do + od_arg="-d ${od_entry_split_element}" + fastddsgen -replace -genapi $to_arg $cs_arg $od_arg "$file_from_gen" -no-dependencies + done + break + fi + done + + if $not_processed; then + fastddsgen -replace -genapi $to_arg $cs_arg $nosupport_arg "$file_from_gen" -no-dependencies + fi + + if [[ $? != 0 ]]; then + ret_value=-1 + fi + + cd - done # Move source files to src/cpp From 2313a1184dc39e531e2d7b5363d1e56097c7e741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Tue, 10 Sep 2024 08:49:31 +0200 Subject: [PATCH 33/45] Apply suggestions from code review --- .../xtypes/BaseCasesIDLs/XtypesTestsType1.idl | 18 ++++++++++++++++++ .../xtypes/BaseCasesIDLs/XtypesTestsType2.idl | 18 ++++++++++++++++++ .../xtypes/BaseCasesIDLs/XtypesTestsType3.idl | 18 ++++++++++++++++++ .../BaseCasesIDLs/XtypesTestsTypeBig.idl | 18 ++++++++++++++++++ .../BaseCasesIDLs/XtypesTestsTypeDep.idl | 18 ++++++++++++++++++ .../XtypesTestsTypeNoTypeObject.idl | 18 ++++++++++++++++++ test/dds/xtypes/CMakeLists.txt | 2 +- 7 files changed, 109 insertions(+), 1 deletion(-) diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl index 4355c938a67..8d54f1638aa 100644 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl @@ -1,3 +1,21 @@ +// 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. +// 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/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl + */ + struct Type1 { string content; diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl index 146762df835..7320b281b86 100644 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl @@ -1,3 +1,21 @@ +// 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. +// 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/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl + */ + struct Type2 { string content; diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl index f735d7d7e21..f5fff5b37b8 100644 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl @@ -1,3 +1,21 @@ +// 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. +// 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/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl + */ + struct Type3 { string content; diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl index 01ab21fa156..59d76e1be54 100644 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl @@ -1,3 +1,21 @@ +// 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. +// 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/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl + */ + #include "XtypesTestsType1.idl" #include "XtypesTestsType2.idl" #include "XtypesTestsType3.idl" diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl index ba4498972e0..e2ae9047c3f 100644 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl @@ -1,3 +1,21 @@ +// 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. +// 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/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl + */ + #include "XtypesTestsType1.idl" #include "XtypesTestsType2.idl" #include "XtypesTestsType3.idl" diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl index 172fda6eb93..dd1e2200837 100644 --- a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl @@ -1,3 +1,21 @@ +// 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. +// 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/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl + */ + struct TypeNoTypeObject { string content; diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index d60b2679149..266cb52c8d8 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2019 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. From f8ccba6e74b36aee4ceba66ead4340ac1ad7dfc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 10 Sep 2024 08:53:57 +0200 Subject: [PATCH 34/45] Refs #20165. Fix identation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../scripts/update_generated_code_from_idl.sh | 142 +++++++++--------- 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/utils/scripts/update_generated_code_from_idl.sh b/utils/scripts/update_generated_code_from_idl.sh index 5b93acdd98f..a5d622cc78b 100755 --- a/utils/scripts/update_generated_code_from_idl.sh +++ b/utils/scripts/update_generated_code_from_idl.sh @@ -18,89 +18,89 @@ files_not_needing_typeobject=( files_needing_case_sensitive=( ) - files_needing_output_dir=( - './include/fastdds/dds/xtypes/type_representation/dds-xtypes_typeobject.idl|./detail' - './include/fastdds/statistics/monitorservice_types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' - './include/fastdds/statistics/types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' - './test/blackbox/types/core/core_types.idl|.' - './test/unittest/dds/xtypes/serializers/idl/types/alias_struct/alias_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/array_struct/array_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/bitmask_struct/bitmask_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/bitset_struct/bitset_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/enum_struct/enum_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/extensibility_struct/extensibility_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/key_struct/key_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/map_struct/map_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/primitives_struct/primitives_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/sequence_struct/sequence_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/string_struct/string_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/struct_struct/struct_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/idl/types/union_struct/union_struct.idl|./gen' - './test/unittest/dds/xtypes/serializers/json/types/comprehensive_type/ComprehensiveType.idl|./gen' - './thirdparty/dds-types-test/IDL/aliases.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/annotations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/appendable.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/arrays.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/bitsets.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/constants.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/declarations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/enumerations.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/external.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/final.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/helpers/basic_inner_types.idl|../../../../test/dds-types-test/helpers' - './thirdparty/dds-types-test/IDL/inheritance.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/key.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/maps.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/member_id.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/mutable.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/optional.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/primitives.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/relative_path_include.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/sequences.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/strings.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/structures.idl|../../../test/dds-types-test' - './thirdparty/dds-types-test/IDL/unions.idl|../../../test/dds-types-test' - ) +files_needing_output_dir=( + './include/fastdds/dds/xtypes/type_representation/dds-xtypes_typeobject.idl|./detail' + './include/fastdds/statistics/monitorservice_types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' + './include/fastdds/statistics/types.idl|../../../src/cpp/statistics/types|../../../test/blackbox/types/statistics' + './test/blackbox/types/core/core_types.idl|.' + './test/unittest/dds/xtypes/serializers/idl/types/alias_struct/alias_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/array_struct/array_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/bitmask_struct/bitmask_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/bitset_struct/bitset_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/enum_struct/enum_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/extensibility_struct/extensibility_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/key_struct/key_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/map_struct/map_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/primitives_struct/primitives_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/sequence_struct/sequence_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/string_struct/string_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/struct_struct/struct_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/idl/types/union_struct/union_struct.idl|./gen' + './test/unittest/dds/xtypes/serializers/json/types/comprehensive_type/ComprehensiveType.idl|./gen' + './thirdparty/dds-types-test/IDL/aliases.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/annotations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/appendable.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/arrays.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/bitsets.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/constants.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/declarations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/enumerations.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/external.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/final.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/helpers/basic_inner_types.idl|../../../../test/dds-types-test/helpers' + './thirdparty/dds-types-test/IDL/inheritance.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/key.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/maps.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/member_id.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/mutable.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/optional.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/primitives.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/relative_path_include.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/sequences.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/strings.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/structures.idl|../../../test/dds-types-test' + './thirdparty/dds-types-test/IDL/unions.idl|../../../test/dds-types-test' +) - files_needing_no_typesupport=( - './include/fastdds/dds/core/detail/DDSReturnCode.idl' - './include/fastdds/dds/core/detail/DDSSecurityReturnCode.idl' - './include/fastdds/dds/xtypes/dynamic_types/detail/dynamic_language_binding.idl' - ) +files_needing_no_typesupport=( + './include/fastdds/dds/core/detail/DDSReturnCode.idl' + './include/fastdds/dds/core/detail/DDSSecurityReturnCode.idl' + './include/fastdds/dds/xtypes/dynamic_types/detail/dynamic_language_binding.idl' +) - red='\E[1;31m' - yellow='\E[1;33m' - textreset='\E[1;0m' +red='\E[1;31m' +yellow='\E[1;33m' +textreset='\E[1;0m' - current_dir=$(git rev-parse --show-toplevel) +current_dir=$(git rev-parse --show-toplevel) - if [[ ! "$(pwd -P)" -ef "$current_dir" ]]; then - echo -e "${red}This script must be executed in the repository root directory.${textreset}" - exit -1 - fi +if [[ ! "$(pwd -P)" -ef "$current_dir" ]]; then + echo -e "${red}This script must be executed in the repository root directory.${textreset}" + exit -1 +fi - if [[ -z "$(which fastddsgen)" ]]; then - echo "Cannot find fastddsgen. Please, include it in PATH environment variable" - exit -1 - fi +if [[ -z "$(which fastddsgen)" ]]; then + echo "Cannot find fastddsgen. Please, include it in PATH environment variable" + exit -1 +fi - readarray -d '' idl_files < <(find . -iname \*.idl -print0) +readarray -d '' idl_files < <(find . -iname \*.idl -print0) - for del in ${files_to_exclude[@]}; do - idl_files=("${idl_files[@]/$del/}") - done +for del in ${files_to_exclude[@]}; do + idl_files=("${idl_files[@]/$del/}") +done - idl_files=(${idl_files[@]/$files_to_exclude/}) +idl_files=(${idl_files[@]/$files_to_exclude/}) - ret_value=0 +ret_value=0 - for idl_file in "${idl_files[@]}"; do - idl_dir=$(dirname "$idl_file") - file_from_gen=$(basename "$idl_file") +for idl_file in "${idl_files[@]}"; do + idl_dir=$(dirname "$idl_file") + file_from_gen=$(basename "$idl_file") - echo -e "Processing ${yellow}$idl_file${textreset}" + echo -e "Processing ${yellow}$idl_file${textreset}" - cd "${idl_dir}" + cd "${idl_dir}" # Detect if needs type_object. [[ ${files_not_needing_typeobject[*]} =~ $idl_file ]] && to_arg='-no-typeobjectsupport' || to_arg='' From 5c9c2238a54c909ce50db48936072e3e66f67c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 10 Sep 2024 10:15:14 +0200 Subject: [PATCH 35/45] Refs #20165. Fix compilation error in mac MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt index 5b06aa2a8b5..dbef05169d1 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt +++ b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt @@ -73,6 +73,8 @@ target_include_directories(TypeLookupServiceTests PUBLIC ${PROJECT_SOURCE_DIR}/test/mock/xtypes/TypeObjectUtils ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp + ${Asio_INCLUDE_DIR} + $<$:${ANDROID_IFADDRS_INCLUDE_DIR}> ) target_link_libraries(TypeLookupServiceTests From 8bb5fe6246d8e52a4b57b6899626ffca23cf4a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 10 Sep 2024 11:46:12 +0200 Subject: [PATCH 36/45] Refs #20165. Fix compilation errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt index dbef05169d1..fa23751676c 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt +++ b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt @@ -23,7 +23,9 @@ set(TYPELOOKUPSERVICETESTS_SOURCE TypeLookupServiceTests.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/Time_t.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/qos/WriterQos.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/subscriber/qos/ReaderQos.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/utils/TypePropagation.cpp ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/PropertyPolicy.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/ThreadSettings.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ReaderProxyData.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/WriterProxyData.cpp From 80a2c1f13b1002bf69718288ef663ffb5f10367b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Wed, 11 Sep 2024 09:23:28 +0200 Subject: [PATCH 37/45] Refs #20165. Remove trace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- test/dds/xtypes/test_build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 39668f6fda3..0ab4327b8a7 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -171,8 +171,7 @@ async def run_command(test_case, process_args, timeout): try: await asyncio.wait_for(read_outputs(test_case, proc, num_lines), timeout) - except asyncio.TimeoutError: - logger.debug(" Timeout") + except (TimeoutError, asyncio.TimeoutError): pass try: From 0a2b7c4b9640ff93b9f70388b0f0ac3fd468b85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Wed, 11 Sep 2024 10:18:51 +0200 Subject: [PATCH 38/45] Refs #20165. Fixes on windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González --- test/dds/xtypes/CMakeLists.txt | 11 +++++- test/dds/xtypes/test_build.py | 37 ++++++++----------- .../xtypes/type_lookup_service/CMakeLists.txt | 1 + 3 files changed, 26 insertions(+), 23 deletions(-) diff --git a/test/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt index 266cb52c8d8..71c1cb6122a 100644 --- a/test/dds/xtypes/CMakeLists.txt +++ b/test/dds/xtypes/CMakeLists.txt @@ -79,6 +79,12 @@ set(DDS_XTYPES_SOURCE ${COMMON_SOURCE} TypeLookupServiceSubscriber.cpp ) +if(WIN32) + set_source_files_properties(${PROJECT_SOURCE_DIR}/test/dds-types-test/mapsPubSubTypes.cxx PROPERTIES COMPILE_OPTIONS /bigobj) + set_source_files_properties(TypeLookupServicePublisher.cpp PROPERTIES COMPILE_OPTIONS /bigobj) + set_source_files_properties(TypeLookupServiceSubscriber.cpp PROPERTIES COMPILE_OPTIONS /bigobj) +endif() + add_executable(DDSXtypesCommunication ${DDS_XTYPES_SOURCE}) target_compile_definitions(DDSXtypesCommunication PRIVATE $<$>,$>:__DEBUG> @@ -116,7 +122,10 @@ if(PYTHONINTERP_FOUND) set(TEST_NAME DDSXtypesCommunication_${TEST_DEFINITION}) add_test( NAME ${TEST_NAME} - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/${TEST_BUILDER} + COMMAND + ${PYTHON_EXECUTABLE} + ${CMAKE_CURRENT_BINARY_DIR}/${TEST_BUILDER} + --app $ ${TEST_DEFINITION} ) diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 0ab4327b8a7..91c9e4b8a54 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -49,10 +49,18 @@ def parse_options(): ) parser.add_argument( - 'file', - nargs=1, - help='JSON file.' - ) + '-a', + '--app', + type=str, + required=True, + help='Path to the executable test.' + ) + + parser.add_argument( + 'file', + nargs=1, + help='JSON file.' + ) parser.add_argument( '-d', @@ -90,24 +98,8 @@ def define_args(participant): return args -def find_executable(executable_name): - """Find the full path of an executable file by name.""" - executable_path = shutil.which(executable_name) - if not executable_path or not os.path.isfile(executable_path) or not os.access(executable_path, os.X_OK): - # Try looking in the current working directory - executable_path = os.path.join(os.getcwd(), executable_name) - if not os.path.isfile(executable_path) or not os.access(executable_path, os.X_OK): - return None - return executable_path - - -def define_commands(test_cases): +def define_commands(executable_path, test_cases): """Create commands for each participant adding executable to args.""" - executable_path = find_executable('DDSXtypesCommunication') - if not executable_path: - print("ERROR: Executable 'DDSXtypesCommunication' not found in the system PATH or is not executable.") - sys.exit(1) - all_commands = [] for test_case in test_cases: # For each test case, create commands for all participants @@ -193,6 +185,7 @@ async def execute_commands(test_case, commands): async with asyncio.TaskGroup() as tg: for command in commands: tasks.append(tg.create_task(run_command(test_case, command, MAX_TIME))) + await asyncio.sleep(0.3) # Avoid errors with SharedMemory starting all commands at same time return sum([proc.result() for proc in tasks]) @@ -227,7 +220,7 @@ async def execute_commands(test_case, commands): for test_case in test_cases: # Define commands for each test case - commands = define_commands([test_case]) + commands = define_commands(args.app, [test_case]) # Execute the commands and get the return value test_value = asyncio.run(execute_commands(test_case['TestCase'], commands)) total_test_value += test_value diff --git a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt index fa23751676c..f4ce49bbb8f 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt +++ b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt @@ -44,6 +44,7 @@ set(TYPELOOKUPSERVICETESTS_SOURCE TypeLookupServiceTests.cpp if(WIN32) add_definitions(-D_WIN32_WINNT=0x0601) + set_source_files_properties(TypeLookupServiceTests.cpp PROPERTIES COMPILE_OPTIONS /bigobj) endif() add_executable(TypeLookupServiceTests ${TYPELOOKUPSERVICETESTS_SOURCE}) From 5f46f421f1f7b159938cada43784e983d097eb80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Wed, 11 Sep 2024 15:16:59 +0200 Subject: [PATCH 39/45] Refs #20165. Fixes after rebase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- test/dds/xtypes/test_build.py | 12 +----------- .../type_lookup_service/TypeLookupServiceTests.cpp | 4 +++- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/test/dds/xtypes/test_build.py b/test/dds/xtypes/test_build.py index 91c9e4b8a54..dbce9e9f24f 100644 --- a/test/dds/xtypes/test_build.py +++ b/test/dds/xtypes/test_build.py @@ -164,17 +164,7 @@ async def run_command(test_case, process_args, timeout): try: await asyncio.wait_for(read_outputs(test_case, proc, num_lines), timeout) except (TimeoutError, asyncio.TimeoutError): - pass - - try: - proc.send_signal(signal.SIGINT) - time.sleep(1) - except Exception: - pass - - try: - proc.kill() - except Exception: + logger.debug(" Timeout"); pass return await proc.wait() diff --git a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp index f8e2253a6ca..9553db550e8 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp +++ b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -354,7 +355,8 @@ class TypeLookupServiceTests : public ::testing::Test TypeLookupManager* tlm_; MockTypeLookupReplyListener* reply_listener_; MockTypeLookupRequestListener* request_listener_; - NetworkFactory network_factory_; + RTPSParticipantAttributes participant_attr_; + NetworkFactory network_factory_ {participant_attr_}; ReaderProxyData reader_proxy_{0, 0}; WriterProxyData writer_proxy_{0, 0}; NiceMock participant_; From 9b858196b8eed01b0b28341d495794f16d5f40fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Thu, 12 Sep 2024 07:03:44 +0200 Subject: [PATCH 40/45] Refs #20165. Fixes on mac MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../TypeLookupRequestListener.cpp | 14 +++++++++----- .../TypeLookupRequestListener.hpp | 3 --- test/dds/xtypes/BaseCases/Case8.json | 6 +++--- test/dds/xtypes/TypeLookupServicePublisher.cpp | 2 ++ test/dds/xtypes/TypeLookupServiceSubscriber.cpp | 2 ++ 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp index f022851655a..2cd8c846374 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp @@ -286,19 +286,19 @@ void TypeLookupRequestListener::check_get_type_dependencies_request( SampleIdentity request_id, const TypeLookup_getTypeDependencies_In& request) { + std::unordered_set* type_dependencies_ptr {nullptr}; std::unordered_set type_dependencies; ReturnCode_t type_dependencies_result = RETCODE_ERROR; if (!request.type_ids().empty()) { // Check if the received request has been done before and needed a continuation point - std::lock_guard lock(requests_with_continuation_mutex_); if (!request.continuation_point().empty()) { auto requests_it = requests_with_continuation_.find(request.type_ids()); if (requests_it != requests_with_continuation_.end()) { // Get the dependencies without checking the registry - type_dependencies = requests_it->second; + type_dependencies_ptr = &requests_it->second; type_dependencies_result = RETCODE_OK; } else @@ -319,7 +319,12 @@ void TypeLookupRequestListener::check_get_type_dependencies_request( // If there are too many dependent types, store the type dependencies for future requests if (type_dependencies_result == RETCODE_OK && type_dependencies.size() > MAX_DEPENDENCIES_PER_REPLY) { - requests_with_continuation_.emplace(request.type_ids(), type_dependencies); + auto ret = requests_with_continuation_.emplace(request.type_ids(), std::move(type_dependencies)); + type_dependencies_ptr = &ret.first->second; + } + else + { + type_dependencies_ptr = &type_dependencies; } } } @@ -333,7 +338,7 @@ void TypeLookupRequestListener::check_get_type_dependencies_request( { // Prepare and send the reply for successful operation TypeLookup_getTypeDependencies_Out out = prepare_get_type_dependencies_response( - request.type_ids(), type_dependencies, request.continuation_point()); + request.type_ids(), *type_dependencies_ptr, request.continuation_point()); answer_request(request_id, rpc::RemoteExceptionCode_t::REMOTE_EX_OK, out); } else if (RETCODE_NO_DATA == type_dependencies_result) @@ -388,7 +393,6 @@ TypeLookup_getTypeDependencies_Out TypeLookupRequestListener::prepare_get_type_d if ((start_index + MAX_DEPENDENCIES_PER_REPLY) > type_dependencies.size()) { // If all dependent types have been sent, remove from map - std::lock_guard lock(requests_with_continuation_mutex_); auto requests_it = requests_with_continuation_.find(id_seq); if (requests_it != requests_with_continuation_.end()) { diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.hpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.hpp index 5c986b16327..04b64247f12 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.hpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.hpp @@ -176,9 +176,6 @@ class TypeLookupRequestListener : public fastdds::rtps::ReaderListener, public f //! A pointer to the typelookup manager. TypeLookupManager* typelookup_manager_; - //! Mutex to protect access to requests_with_continuation_. - std::mutex requests_with_continuation_mutex_; - //! Collection of the requests that needed continuation points. std::unordered_map> requests_with_continuation_; diff --git a/test/dds/xtypes/BaseCases/Case8.json b/test/dds/xtypes/BaseCases/Case8.json index 6bf6ada2b46..169eee85e89 100644 --- a/test/dds/xtypes/BaseCases/Case8.json +++ b/test/dds/xtypes/BaseCases/Case8.json @@ -6,7 +6,7 @@ { "kind": "publisher", "samples": "3", - "timeout": "10", + "timeout": "30", "expected_matches": "100", "known_types": [ "Type1", @@ -64,7 +64,7 @@ { "kind": "subscriber", "samples": "3", - "timeout": "10", + "timeout": "30", "expected_matches": "100", "known_types": [ "Type51", @@ -122,4 +122,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index d4442583689..f6649d8dc1e 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -99,6 +99,8 @@ bool TypeLookupServicePublisher::setup_publisher( // CREATE THE DATAWRITER DataWriterQos wqos = publisher->get_default_datawriter_qos(); wqos.data_sharing().off(); + wqos.reliability().kind = RELIABLE_RELIABILITY_QOS; + wqos.durability().kind = TRANSIENT_LOCAL_DURABILITY_QOS; a_type.writer_ = publisher->create_datawriter(topic, wqos); if (a_type.writer_ == nullptr) { diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index dd8fb14d244..83e6b8b6540 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -105,6 +105,8 @@ bool TypeLookupServiceSubscriber::setup_subscriber( //CREATE THE DATAREADER DataReaderQos rqos = subscriber->get_default_datareader_qos(); rqos.data_sharing().off(); + rqos.reliability().kind = RELIABLE_RELIABILITY_QOS; + rqos.durability().kind = TRANSIENT_LOCAL_DURABILITY_QOS; DataReader* reader = subscriber->create_datareader(topic, rqos); if (reader == nullptr) { From e73a2789414a404d2dad30511d5381b2fef7c5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 17 Sep 2024 12:46:05 +0200 Subject: [PATCH 41/45] Refs #20165. Fixes asan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../dds/xtypes/TypeLookupServicePublisher.cpp | 2 +- test/dds/xtypes/TypeLookupServicePublisher.h | 3 +- .../xtypes/TypeLookupServiceSubscriber.cpp | 2 +- test/dds/xtypes/TypeLookupServiceSubscriber.h | 3 +- .../TypeLookupServiceTests.cpp | 42 +++++++++---------- 5 files changed, 27 insertions(+), 25 deletions(-) diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index f6649d8dc1e..31d792d941d 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -139,7 +139,7 @@ bool TypeLookupServicePublisher::create_known_type_impl( { // Create a new PubKnownType for the given type PubKnownType a_type; - a_type.type_ = new Type(); + a_type.type_.reset(new Type()); a_type.type_sup_.reset(new TypePubSubType()); a_type.type_sup_.register_type(participant_); diff --git a/test/dds/xtypes/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h index ee60429d743..921facdcc90 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.h +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -50,7 +51,7 @@ namespace dds { struct PubKnownType { - void* type_ {nullptr}; + std::shared_ptr type_; DynamicType::_ref_type dyn_type_; TypeSupport type_sup_; diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index 83e6b8b6540..cd2d8e4b4a8 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -145,7 +145,7 @@ bool TypeLookupServiceSubscriber::create_known_type_impl( { // Create a new SubKnownType for the given type SubKnownType a_type; - a_type.type_ = new Type(); + a_type.type_.reset(new Type()); a_type.type_sup_.reset(new TypePubSubType()); a_type.type_sup_.register_type(participant_); diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h index 3b9799f34cd..61c65cd238b 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.h +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -51,7 +52,7 @@ namespace dds { struct SubKnownType { - void* type_ {nullptr}; + std::shared_ptr type_; DynamicType::_ref_type dyn_type_; TypeSupport type_sup_; }; diff --git a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp index 9553db550e8..acce49daf0c 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp +++ b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp @@ -461,7 +461,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_EntityId) TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_malformed_Reply) { - CacheChange_t* change = new CacheChange_t(); + CacheChange_t* change {new CacheChange_t()}; change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; EXPECT_CALL(*tlm_, receive( @@ -484,9 +484,9 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNSUPPORTED) std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNSUPPORTED))); - CacheChange_t* change = new CacheChange_t(); - change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.get_history()->add_change(change); + CacheChange_t change; + change.writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.get_history()->add_change(&change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNSUPPORTED); @@ -495,7 +495,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNSUPPORTED) testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->on_new_cache_change_added(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, &change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); @@ -511,9 +511,9 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_INVALID_ARGUMEN std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_INVALID_ARGUMENT))); - CacheChange_t* change = new CacheChange_t(); - change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.get_history()->add_change(change); + CacheChange_t change; + change.writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.get_history()->add_change(&change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_INVALID_ARGUMENT); @@ -522,7 +522,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_INVALID_ARGUMEN testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->on_new_cache_change_added(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, &change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); @@ -538,9 +538,9 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_OUT_OF_RESOURCE std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_OUT_OF_RESOURCES))); - CacheChange_t* change = new CacheChange_t(); - change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.get_history()->add_change(change); + CacheChange_t change; + change.writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.get_history()->add_change(&change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_OUT_OF_RESOURCES); @@ -549,7 +549,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_OUT_OF_RESOURCE testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->on_new_cache_change_added(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, &change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); Log::Flush(); @@ -564,9 +564,9 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_OPERATI std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_OPERATION))); - CacheChange_t* change = new CacheChange_t(); - change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.get_history()->add_change(change); + CacheChange_t change; + change.writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.get_history()->add_change(&change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_OPERATION); @@ -575,7 +575,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_OPERATI testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->on_new_cache_change_added(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, &change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); Log::Flush(); @@ -590,9 +590,9 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_EXCEPTI std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_EXCEPTION))); - CacheChange_t* change = new CacheChange_t(); - change->writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; - stateful_reader_.get_history()->add_change(change); + CacheChange_t change; + change.writerGUID.entityId = c_EntityId_TypeLookup_reply_writer; + stateful_reader_.get_history()->add_change(&change); TypeLookup_Reply expectedReply; expectedReply.header().remoteEx(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_EXCEPTION); @@ -601,7 +601,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_REMOTE_EX_UNKNOWN_EXCEPTI testing::Matcher(_))) .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); - reply_listener_->on_new_cache_change_added(&stateful_reader_, change); + reply_listener_->on_new_cache_change_added(&stateful_reader_, &change); EXPECT_EQ(reply_listener_->get_replies_queue()->size(), 0); Log::Flush(); From e7c0a000515c51fd87696c899e73601d91838d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 24 Sep 2024 07:51:44 +0200 Subject: [PATCH 42/45] Refs #20165. Apply suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../type_lookup_service/TypeLookupManager.cpp | 9 +- .../type_lookup_service/TypeLookupManager.hpp | 7 +- .../TypeLookupReplyListener.cpp | 151 +++++++++--------- .../TypeLookupReplyListener.hpp | 2 + .../TypeLookupRequestListener.cpp | 2 +- .../discovery/endpoint/EDPSimpleListeners.cpp | 24 ++- .../discovery/participant/PDPServer.cpp | 12 +- .../type_lookup_service/TypeLookupManager.hpp | 3 +- 8 files changed, 116 insertions(+), 94 deletions(-) diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp index cefce417707..a0ca795f5f3 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp @@ -365,7 +365,7 @@ ReturnCode_t TypeLookupManager::check_type_identifier_received( is_type_identifier_known(type_identifier_with_size)) { // The type is already known, invoke the callback - callback(temp_proxy_data.get()); + callback(RETCODE_OK, temp_proxy_data.get()); return RETCODE_OK; } @@ -408,7 +408,8 @@ ReturnCode_t TypeLookupManager::check_type_identifier_received( } void TypeLookupManager::notify_callbacks( - xtypes::TypeIdentfierWithSize type_identifier_with_size) + ReturnCode_t request_ret_status, + const xtypes::TypeIdentfierWithSize& type_identifier_with_size) { bool removed = false; // Check that type is pending to be resolved @@ -417,7 +418,7 @@ void TypeLookupManager::notify_callbacks( { for (auto& proxy_callback_pair : writer_callbacks_it->second) { - proxy_callback_pair.second(proxy_callback_pair.first); + proxy_callback_pair.second(request_ret_status, proxy_callback_pair.first); } removed = true; } @@ -427,7 +428,7 @@ void TypeLookupManager::notify_callbacks( { for (auto& proxy_callback_pair : reader_callbacks_it->second) { - proxy_callback_pair.second(proxy_callback_pair.first); + proxy_callback_pair.second(request_ret_status, proxy_callback_pair.first); } removed = true; } diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp index 3b72c54320d..b7d18e5ea22 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp @@ -105,9 +105,9 @@ namespace builtin { const SampleIdentity INVALID_SAMPLE_IDENTITY; using AsyncGetTypeWriterCallback = std::function< - void (eprosima::fastdds::rtps::WriterProxyData*)>; + void (eprosima::fastdds::dds::ReturnCode_t, eprosima::fastdds::rtps::WriterProxyData*)>; using AsyncGetTypeReaderCallback = std::function< - void (eprosima::fastdds::rtps::ReaderProxyData*)>; + void (eprosima::fastdds::dds::ReturnCode_t, eprosima::fastdds::rtps::ReaderProxyData*)>; /** * Class TypeLookupManager that implements the TypeLookup Service described in the DDS-XTYPES 1.3 specification. @@ -229,7 +229,8 @@ class TypeLookupManager * @param type_identifier_with_size[in] TypeIdentfierWithSize of the callbacks to notify. */ void notify_callbacks( - xtypes::TypeIdentfierWithSize type_identifier_with_size); + ReturnCode_t request_ret_status, + const xtypes::TypeIdentfierWithSize& type_identifier_with_size); /** * Adds a callback to the async_get_type_callbacks_ entry of the TypeIdentfierWithSize, or creates a new one if diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp index 940cbe0b516..00e6405a053 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp @@ -100,7 +100,13 @@ void TypeLookupReplyListener::process_reply() if (!replies_queue_.empty()) { TypeLookup_Reply& reply = replies_queue_.front().reply; + + // Check if the received reply SampleIdentity corresponds to an outstanding request + auto& request_id {reply.header().relatedRequestId()}; + auto request_it = typelookup_manager_->async_get_type_requests_.find(request_id); + if (request_it != typelookup_manager_->async_get_type_requests_.end()) { + xtypes::TypeIdentfierWithSize type_id {request_it->second}; // Process the TypeLookup_Reply based on its type switch (reply.return_value()._d()) { @@ -108,9 +114,14 @@ void TypeLookupReplyListener::process_reply() { if (RETCODE_OK == reply.return_value().getType()._d()) { - check_get_types_reply(reply.header().relatedRequestId(), + check_get_types_reply(request_id, type_id, reply.return_value().getType().result(), reply.header().relatedRequestId()); } + else + { + typelookup_manager_->notify_callbacks(RETCODE_NO_DATA, type_id); + typelookup_manager_->remove_async_get_type_request(request_id); + } break; } case TypeLookup_getDependencies_HashId: @@ -118,9 +129,14 @@ void TypeLookupReplyListener::process_reply() if (RETCODE_OK == reply.return_value().getTypeDependencies()._d()) { check_get_type_dependencies_reply( - reply.header().relatedRequestId(), replies_queue_.front().type_server, + request_id, type_id, replies_queue_.front().type_server, reply.return_value().getTypeDependencies().result()); } + else + { + typelookup_manager_->notify_callbacks(RETCODE_NO_DATA, type_id); + typelookup_manager_->remove_async_get_type_request(request_id); + } break; } default: @@ -138,96 +154,85 @@ void TypeLookupReplyListener::process_reply() void TypeLookupReplyListener::check_get_types_reply( const SampleIdentity& request_id, + const xtypes::TypeIdentfierWithSize& type_id, const TypeLookup_getTypes_Out& reply, SampleIdentity related_request) { - // Check if the received reply SampleIdentity corresponds to an outstanding request - auto requests_it = typelookup_manager_->async_get_type_requests_.find(request_id); - if (requests_it != typelookup_manager_->async_get_type_requests_.end()) - { - ReturnCode_t register_result = RETCODE_OK; + ReturnCode_t register_result = RETCODE_OK; - if (0 != reply.types().size()) + if (0 != reply.types().size()) + { + for (xtypes::TypeIdentifierTypeObjectPair pair : reply.types()) { - for (xtypes::TypeIdentifierTypeObjectPair pair : reply.types()) + xtypes::TypeIdentifierPair type_ids; + type_ids.type_identifier1(pair.type_identifier()); + if (RETCODE_OK != fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). + register_type_object(pair.type_object(), type_ids, false)) { - xtypes::TypeIdentifierPair type_ids; - type_ids.type_identifier1(pair.type_identifier()); - if (RETCODE_OK != fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). - register_type_object(pair.type_object(), type_ids, false)) - { - // If any of the types is not registered, log error - EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, - "Error registering remote type."); - register_result = RETCODE_ERROR; - } + // If any of the types is not registered, log error + EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, + "Error registering remote type."); + register_result = RETCODE_ERROR; } + } - if (RETCODE_OK == register_result) + if (RETCODE_OK == register_result) + { + // Check if the get_type_dependencies related to this reply required a continuation_point + std::unique_lock guard(replies_with_continuation_mutex_); + auto it = std::find(replies_with_continuation_.begin(), + replies_with_continuation_.end(), related_request); + if (it != replies_with_continuation_.end()) { - // Check if the get_type_dependencies related to this reply required a continuation_point - std::unique_lock guard(replies_with_continuation_mutex_); - auto it = std::find(replies_with_continuation_.begin(), - replies_with_continuation_.end(), related_request); - if (it != replies_with_continuation_.end()) - { - // If it did, remove it from the list and continue - replies_with_continuation_.erase(it); - } - else + // If it did, remove it from the list and continue + replies_with_continuation_.erase(it); + } + else + { + // If it did not, check that the type that originated the request is consistent + // before notifying the callbacks associated with the request + try { - // If it did not, check that the type that originated the request is consistent - // before notifying the callbacks associated with the request - try - { - xtypes::TypeObject type_object; - fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().get_type_object( - requests_it->second.type_id(), type_object); - xtypes::TypeObjectUtils::type_object_consistency(type_object); - xtypes::TypeIdentifierPair type_ids; - if (RETCODE_OK != - fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). - register_type_object(type_object, type_ids, true)) - { - EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, - "Cannot register minimal of remote type"); - } - - typelookup_manager_->notify_callbacks(requests_it->second); - } - catch (const std::exception& exception) + xtypes::TypeObject type_object; + fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().get_type_object( + type_id.type_id(), type_object); + xtypes::TypeObjectUtils::type_object_consistency(type_object); + xtypes::TypeIdentifierPair type_ids; + if (RETCODE_OK != + fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). + register_type_object(type_object, type_ids, true)) { - EPROSIMA_LOG_ERROR(TYPELOOKUP_SERVICE_REPLY_LISTENER, - "Error registering remote type: " << exception.what()); + EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, + "Cannot register minimal of remote type"); } + + typelookup_manager_->notify_callbacks(RETCODE_OK, type_id); + } + catch (const std::exception& exception) + { + EPROSIMA_LOG_ERROR(TYPELOOKUP_SERVICE_REPLY_LISTENER, + "Error registering remote type: " << exception.what()); } } } - else - { - EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, - "Reply no contains any type."); - register_result = RETCODE_ERROR; - } - - // Remove the processed SampleIdentity from the outstanding requests - typelookup_manager_->remove_async_get_type_request(request_id); } + else + { + EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, + "Received reply with no types."); + register_result = RETCODE_ERROR; + } + + // Remove the processed SampleIdentity from the outstanding requests + typelookup_manager_->remove_async_get_type_request(request_id); } void TypeLookupReplyListener::check_get_type_dependencies_reply( const SampleIdentity& request_id, + const xtypes::TypeIdentfierWithSize& type_id, const fastdds::rtps::GUID_t type_server, const TypeLookup_getTypeDependencies_Out& reply) { - // Check if the received reply SampleIdentity corresponds to an outstanding request - auto requests_it = typelookup_manager_->async_get_type_requests_.find(request_id); - if (requests_it == typelookup_manager_->async_get_type_requests_.end()) - { - // The reply is not associated with any outstanding request, ignore it - return; - } - // Add the dependent types to the list for the get_type request xtypes::TypeIdentifierSeq needed_types; std::unordered_set unique_types; @@ -251,18 +256,18 @@ void TypeLookupReplyListener::check_get_type_dependencies_reply( // If there is no continuation point, add the parent type if (reply.continuation_point().empty()) { - needed_types.push_back(requests_it->second.type_id()); + needed_types.push_back(type_id.type_id()); } // Make a new request with the continuation point else { SampleIdentity next_request_id = typelookup_manager_-> - get_type_dependencies({requests_it->second.type_id()}, type_server, + get_type_dependencies({type_id.type_id()}, type_server, reply.continuation_point()); if (INVALID_SAMPLE_IDENTITY != next_request_id) { // Store the sent requests and associated TypeIdentfierWithSize - typelookup_manager_->add_async_get_type_request(next_request_id, requests_it->second); + typelookup_manager_->add_async_get_type_request(next_request_id, type_id); } else { @@ -277,7 +282,7 @@ void TypeLookupReplyListener::check_get_type_dependencies_reply( if (INVALID_SAMPLE_IDENTITY != get_types_request) { // Store the type request - typelookup_manager_->add_async_get_type_request(get_types_request, requests_it->second); + typelookup_manager_->add_async_get_type_request(get_types_request, type_id); // If this get_types request has a continuation_point, store it in the list if (!reply.continuation_point().empty()) diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.hpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.hpp index 5a15b7264a5..95bb4cdd776 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.hpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.hpp @@ -100,6 +100,7 @@ class TypeLookupReplyListener : public fastdds::rtps::ReaderListener, public fas */ void check_get_types_reply( const SampleIdentity& request_id, + const xtypes::TypeIdentfierWithSize& type_id, const TypeLookup_getTypes_Out& reply, SampleIdentity related_request); @@ -114,6 +115,7 @@ class TypeLookupReplyListener : public fastdds::rtps::ReaderListener, public fas */ void check_get_type_dependencies_reply( const SampleIdentity& request_id, + const xtypes::TypeIdentfierWithSize& type_id, const fastdds::rtps::GUID_t type_server, const TypeLookup_getTypeDependencies_Out& reply); diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp index 2cd8c846374..705464e8a73 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp @@ -210,7 +210,7 @@ void TypeLookupRequestListener::check_get_types_request( if (0 == request.type_ids().size()) { EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REQUEST_LISTENER, - "Request no contains any type identifier."); + "Received request with no type identifiers."); } // Iterate through requested type_ids diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp index c133fb3950c..dd81e438fdb 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp @@ -86,10 +86,11 @@ void EDPBasePUBListener::add_writer_from_change( // Callback function to continue after typelookup is complete fastdds::dds::builtin::AsyncGetTypeWriterCallback after_typelookup_callback = [reader, change, edp, &network, writer_added_callback] - (eprosima::fastdds::rtps::WriterProxyData* temp_writer_data) + (eprosima::fastdds::dds::ReturnCode_t request_ret_status, + eprosima::fastdds::rtps::WriterProxyData* temp_writer_data) { //LOAD INFORMATION IN DESTINATION WRITER PROXY DATA - auto copy_data_fun = [&temp_writer_data, &network]( + auto copy_data_fun = [&request_ret_status, &temp_writer_data, &network]( WriterProxyData* data, bool updating, const ParticipantProxyData& participant_data) @@ -107,6 +108,11 @@ void EDPBasePUBListener::add_writer_from_change( data->guid()); } *data = *temp_writer_data; + + if (request_ret_status != fastdds::dds::RETCODE_OK) + { + data->type_information().clear(); + } return true; }; @@ -149,7 +155,7 @@ void EDPBasePUBListener::add_writer_from_change( { EPROSIMA_LOG_INFO( RTPS_EDP, "EDPSimpleListener: No TypeLookupManager or TypeInformation. Trying fallback mechanism"); - after_typelookup_callback(temp_writer_data.get()); + after_typelookup_callback(fastdds::dds::RETCODE_NO_DATA, temp_writer_data.get()); } // Release temporary proxy temp_writer_data.reset(); @@ -230,10 +236,11 @@ void EDPBaseSUBListener::add_reader_from_change( // Callback function to continue after typelookup is complete fastdds::dds::builtin::AsyncGetTypeReaderCallback after_typelookup_callback = [reader, change, edp, &network, reader_added_callback] - (eprosima::fastdds::rtps::ReaderProxyData* temp_reader_data) + (eprosima::fastdds::dds::ReturnCode_t request_ret_status, + eprosima::fastdds::rtps::ReaderProxyData* temp_reader_data) { //LOAD INFORMATION IN DESTINATION READER PROXY DATA - auto copy_data_fun = [&temp_reader_data, &network]( + auto copy_data_fun = [&request_ret_status, &temp_reader_data, &network]( ReaderProxyData* data, bool updating, const ParticipantProxyData& participant_data) @@ -251,6 +258,11 @@ void EDPBaseSUBListener::add_reader_from_change( data->guid()); } *data = *temp_reader_data; + + if (request_ret_status != fastdds::dds::RETCODE_OK) + { + data->type_information().clear(); + } return true; }; @@ -294,7 +306,7 @@ void EDPBaseSUBListener::add_reader_from_change( { EPROSIMA_LOG_INFO( RTPS_EDP, "EDPSimpleListener: No TypeLookupManager or TypeInformation. Trying fallback mechanism"); - after_typelookup_callback(temp_reader_data.get()); + after_typelookup_callback(fastdds::dds::RETCODE_NO_DATA, temp_reader_data.get()); } // Release the temporary proxy temp_reader_data.reset(); diff --git a/src/cpp/rtps/builtin/discovery/participant/PDPServer.cpp b/src/cpp/rtps/builtin/discovery/participant/PDPServer.cpp index 90871fff974..6d74f6265ca 100644 --- a/src/cpp/rtps/builtin/discovery/participant/PDPServer.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/PDPServer.cpp @@ -708,12 +708,6 @@ bool PDPServer::pairing_remote_reader_with_local_writer_after_security( void PDPServer::perform_builtin_endpoints_matching( const ParticipantProxyData& pdata) { - // Inform EDP of new RTPSParticipant data: - if (mp_EDP != nullptr) - { - mp_EDP->assignRemoteEndpoints(pdata, true); - } - if (mp_builtin->mp_WLP != nullptr) { mp_builtin->mp_WLP->assignRemoteEndpoints(pdata, true); @@ -723,6 +717,12 @@ void PDPServer::perform_builtin_endpoints_matching( { mp_builtin->typelookup_manager_->assign_remote_endpoints(pdata); } + + // Inform EDP of new RTPSParticipant data: + if (mp_EDP != nullptr) + { + mp_EDP->assignRemoteEndpoints(pdata, true); + } } void PDPServer::removeRemoteEndpoints( diff --git a/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp b/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp index 74c32cb751d..fdf8a870ae7 100644 --- a/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp +++ b/test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp @@ -151,7 +151,8 @@ class TypeLookupManager eprosima::ProxyPool::smart_ptr&, const AsyncGetTypeReaderCallback&)); - MOCK_METHOD1(notify_callbacks, void( + MOCK_METHOD2(notify_callbacks, void( + ReturnCode_t, const xtypes::TypeIdentfierWithSize&)); MOCK_METHOD2(add_async_get_type_request, bool( From 5b5eaeb3d46b34761d31c67748b352e476037b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 24 Sep 2024 11:10:33 +0200 Subject: [PATCH 43/45] Refs #20165. Fix minimal type_id built MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../TypeObjectRegistry.cpp | 47 +++++++++++++++---- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp index cd674a3fc70..44507843338 100644 --- a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp +++ b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp @@ -918,11 +918,47 @@ const TypeIdentifier TypeObjectRegistry::get_complementary_type_identifier( { if (TypeObjectUtils::is_direct_hash_type_identifier(type_id)) { - std::lock_guard data_guard(type_object_registry_mutex_); + std::unique_lock lock(type_object_registry_mutex_); auto it = type_registry_entries_.find(type_id); if (type_registry_entries_.end() != it) { - return it->second.complementary_type_id; + if (TK_NONE != it->second.complementary_type_id._d()) + { + return it->second.complementary_type_id; + } + else + { + TypeRegistryEntry minimal_entry; + CompleteTypeObject complete_type_object = it->second.type_object.complete(); + lock.unlock(); + minimal_entry.type_object = build_minimal_from_complete_type_object(complete_type_object); + minimal_entry.complementary_type_id = type_id; + TypeIdentifier minimal_type_id = calculate_type_identifier( + minimal_entry.type_object, + minimal_entry.type_object_serialized_size); + + lock.lock(); + auto min_entry_result {type_registry_entries_.insert( + {minimal_type_id, minimal_entry})}; + if (!min_entry_result.second) + { + EPROSIMA_LOG_INFO( + XTYPES_TYPE_REPRESENTATION, + "Minimal type identifier already registered his EK_MINIMAL remotely."); + } + it = type_registry_entries_.find(type_id); + assert(type_registry_entries_.end() != it); + it->second.complementary_type_id = minimal_type_id; + + return minimal_type_id; + } + } + else + { + EPROSIMA_LOG_WARNING( + XTYPES_TYPE_REPRESENTATION, + "Complete type identifier was not registered previously."); + } } return type_id; @@ -1375,12 +1411,7 @@ const TypeIdentifier TypeObjectRegistry::minimal_from_complete_type_identifier( switch (type_id._d()){ case EK_COMPLETE: { - std::lock_guard data_guard(type_object_registry_mutex_); - auto it = type_registry_entries_.find(type_id); - if (type_registry_entries_.end() != it) - { - return it->second.complementary_type_id; - } + return get_complementary_type_identifier(type_id); } break; case TI_PLAIN_SEQUENCE_SMALL: From b5481185b4c76e0a6a171fbee5184de396daa775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 24 Sep 2024 11:20:14 +0200 Subject: [PATCH 44/45] Refs #20165. Apply suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../builtin/type_lookup_service/TypeLookupReplyListener.cpp | 1 + .../xtypes/type_lookup_service/TypeLookupServiceTests.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp index 00e6405a053..98270635c1e 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp @@ -218,6 +218,7 @@ void TypeLookupReplyListener::check_get_types_reply( } else { + typelookup_manager_->notify_callbacks(RETCODE_NO_DATA, type_id); EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, "Received reply with no types."); register_result = RETCODE_ERROR; diff --git a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp index acce49daf0c..7defb76b026 100644 --- a/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp +++ b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp @@ -618,6 +618,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_replyid) tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); reply.return_value()._default(); ReplyWithServerGUID reply_with_guid; reply_with_guid.reply = reply; @@ -632,7 +633,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_replyid) TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_empty) { MockLogConsumer* log_consumer = - setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Reply no contains any type."); + setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received reply with no types."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); @@ -852,7 +853,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_empty) { MockLogConsumer* log_consumer = setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER", - "Request no contains any type identifier."); + "Received request with no type identifiers."); TypeIdentfierWithSize tidws; tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); From 29daa05b9aa00b22a497476e19dc0844b14b8e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 24 Sep 2024 12:21:52 +0200 Subject: [PATCH 45/45] Refs #20165. Apply suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../fastdds/xtypes/type_representation/TypeObjectRegistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp index 44507843338..c51ef8eb1ce 100644 --- a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp +++ b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp @@ -926,7 +926,7 @@ const TypeIdentifier TypeObjectRegistry::get_complementary_type_identifier( { return it->second.complementary_type_id; } - else + else if (EK_COMPLETE == type_id._d()) // From EK_COMPLETE its EK_MINIMAL complementary can be built. { TypeRegistryEntry minimal_entry; CompleteTypeObject complete_type_object = it->second.type_object.complete();